]> git.sur5r.net Git - freertos/commitdiff
Continued work on the RX62N GCC demo - just a work in progress currently.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 26 Aug 2010 16:01:58 +0000 (16:01 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 26 Aug 2010 16:01:58 +0000 (16:01 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1062 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

14 files changed:
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/DefaultSession.hsf
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/FreeRTOSConfig.h [new file with mode: 0644]
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/GNU-Files/start.asm
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/ParTest.c [new file with mode: 0644]
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/RTOSDemo.hwp
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/RTOSDemo.nav
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/RTOSDemo.tps
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/Renesas-Files/hwsetup.c [new file with mode: 0644]
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/include/iodefine.h
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/include/rskrx62ndef.h [new file with mode: 0644]
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main-blinky.c [new file with mode: 0644]
Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main-full.c [new file with mode: 0644]
Demo/RX600_RX62N-MDK_GNURX/RX600_RX62N_MDK_GNURX.hws
Demo/RX600_RX62N-MDK_GNURX/RX600_RX62N_MDK_GNURX.tws

index 9634aecdd8869cd537f5661d8eff6df60fc7f678..187d73a5b6c3fced92f2791455b84a3aa3b50b85 100644 (file)
@@ -8,7 +8,7 @@
 "" \r
 [GENERAL_DATA]\r
 "FIRST_CONNECTION_TAG" "NO" \r
-"MRULABELS_DATAMANAGER_KEY" "00000000\r
+"MRULABELS_DATAMANAGER_KEY" "1710|FFFFFFFF|00000000|14cc\r
 "RESET_CPU_AFTER_DOWNLOAD_TAG" "VARIANT_TRUE_STORE_TAG" \r
 "{0AF60212-1285-4767-AB8A-73DB62CC8DBD}R_ECXOS_0ECXOS_OBJECT01" " " \r
 "{0AF60212-1285-4767-AB8A-73DB62CC8DBD}R_ECXOS_0ECXOS_OBJECT02" " " \r
 "{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlBrowseDirectory" "" \r
 "{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlLogFileName" "" \r
 "{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlSplitterPosition" "242" \r
-"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlViews" "0" \r
+"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlViews" "1" \r
+"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlWindowProperties" "17" \r
+"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineWndInstanceKey0" "{WK_00000001_CmdLine}" \r
 "{313F4FC1-6566-11D5-8BBE-0004E2013C71}TclTkCtrlLogFileName" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_COMPARE_END_ADDRESS" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_COMPARE_START_ADDRESS" "" \r
-"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_DISPLAY_DEST_ADDRESS" "" \r
-"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_DISPLAY_END_ADDRESS" "" \r
-"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_DISPLAY_START_ADDRESS" "" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_DISPLAY_DEST_ADDRESS" "14cc\r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_DISPLAY_END_ADDRESS" "FFFFFFFF\r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_DISPLAY_START_ADDRESS" "00000000\r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_FILL_END_ADDRESS" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_FILL_START_ADDRESS" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_MOVE_END_ADDRESS" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_TEST_END_ADDRESS" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}ECX_MEMORY_TEST_START_ADDRESS" "" \r
 "{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryCtrlViews" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0AutoRefreshEnableTopPane" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0AutoRefreshIntervalTopPane" "100" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0DataLength" "4" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0DispAddressTopPane" "5904" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0DispCode" "42208" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0DispColumnCount" "4" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0IsDispCode" "1" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0IsDispFloat" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0IsDispLabel" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0IsDispRegister" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0IsRegFollowEnableTopPane" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0LabelWidth" "96" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0Radix" "16" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0RegFollowRegTblIDTopPane" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0RegisterWidth" "96" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0ScrollEndAddress" "-1" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0ScrollStartAddress" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewA0StartUpSymbolTopPane" "" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewAInstanceKey0" "{WK_00000001_MEMORY}RTOSDemoDefaultSession" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0AutoRefreshEnableTopPane" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0AutoRefreshIntervalTopPane" "100" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0DataLength" "4" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0DispAddressTopPane" "5324" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0DispCode" "42208" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0DispColumnCount" "4" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0IsDispCode" "1" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0IsDispFloat" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0IsDispLabel" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0IsDispRegister" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0IsRegFollowEnableTopPane" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0LabelWidth" "96" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0Radix" "16" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0RegFollowRegTblIDTopPane" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0RegisterWidth" "96" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0ScrollEndAddress" "-1" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0ScrollStartAddress" "0" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewB0StartUpSymbolTopPane" "" \r
+"{313F4FC2-6566-11D5-8BBE-0004E2013C71}MemoryWndViewBInstanceKey0" "{WK_00000001_MEMORY}RTOSDemoDefaultSessionViewB" \r
 "{4F025ABC-BE66-4CB6-9CEE-06C61418278E}Trace2CtrlSaveFileDir" "" \r
 "{4F025ABC-BE66-4CB6-9CEE-06C61418278E}Trace2CtrlSaveFileName" "" \r
 "{4F025ABC-BE66-4CB6-9CEE-06C61418278E}Trace2CtrlViews" "0" \r
 "{5F75FDA0-6FF0-11D5-B7CE-00E029352378}PACtrlViews" "0" \r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_EVAL_DENORMAL_MODE" "16777216" \r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_EVAL_ROUND_MODE" "768" \r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_0" "0000000000001700\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_1" "00000000FFFF8061\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_10" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_11" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_12" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_13" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_14" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_15" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "0000000000001700\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_17" "0000000000001808\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000130000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "00000000FFFF84C4\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "00000000FFFF84C8\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_0" "00000000000016E4\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_1" "0000000000000000\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_10" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_11" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_12" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_13" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_14" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_15" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_16" "00000000000016E4\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_17" "0000000000017F84\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_18" "0000000000030001\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_19" "00000000FFF829B5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_2" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_20" "00000000FFF833BC\r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_21" "0000000000000000" \r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_22" "0000000000000000" \r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_23" "0000000000000000" \r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_24" "0000000000000100" \r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_25" "0000000000000000" \r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_3" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "0000000000001700\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_7" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_8" "0000000000000000\r
-"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_9" "0000000000000000\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_25" "1234567887650000" \r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_3" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_4" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_5" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_6" "00000000000016E4\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_7" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_8" "00000000A5A5A5A5\r
+"{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_9" "00000000A5A5A5A5\r
 "{64753FED-D387-4B8C-A91D-D3419C869C07}C_REGISTER_REG_COUNT" "26" \r
 "{6C4D5B81-FD67-46A9-A089-EA44DCDE47FD}RAMMonitorManagerCtrlBlockInfoFileDir" "" \r
 "{6C4D5B81-FD67-46A9-A089-EA44DCDE47FD}RAMMonitorManagerCtrlBlockInfoFileName" "" \r
 "{8A898260-6F1D-11D5-8EB6-00004CC34E9D}ECX_WAVE_COMB_BUFFER" ",,,," \r
 "{8A898260-6F1D-11D5-8EB6-00004CC34E9D}ECX_WAVE_SAMPLING_RATE" "1000" \r
 "{8A898260-6F1D-11D5-8EB6-00004CC34E9D}WaveformCtrlViews" "0" \r
-"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersCtrlViews" "0" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersCtrlViews" "1" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0ColumnWidth" "47,153,35" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0ECX_REGISTER_COUNT" "33" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0ECX_REGISTER_DISPLAYED" "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0HideFLAGs" "0" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0HideRadix" "0" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0LastFileName" "" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWnd0RadixList" "16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,2,16,16,16,16,16,16,16," \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndInstanceKey0" "{WK_00000001_REGISTERS}RTOSDemoDefaultSession" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0ColumnWidth" "47,153,35" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0ECX_REGISTER_COUNT" "33" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0ECX_REGISTER_DISPLAYED" "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0HideFLAGs" "0" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0HideRadix" "0" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0LastFileName" "" \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewB0RadixList" "16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,2,16,16,16,16,16,16,16," \r
+"{95A081A1-7001-11D5-B1FD-00A0C9E23A58}RegistersWndViewBInstanceKey0" "{WK_00000001_REGISTERS}RTOSDemoDefaultSessionViewB" \r
 "{AC411480-6F0A-11D5-8EB6-00004CC34E9D}ECX_IMAGE_ADDRESS_NAME" "" \r
 "{AC411480-6F0A-11D5-8EB6-00004CC34E9D}ECX_IMAGE_BUFFER" "00000000,00000000,0,0" \r
 "{AC411480-6F0A-11D5-8EB6-00004CC34E9D}ECX_IMAGE_COLOR" "0,0,0,0" \r
 "{AC411480-6F0A-11D5-8EB6-00004CC34E9D}ECX_IMAGE_SAMPLEING_RATE" "1000" \r
 "{AC411480-6F0A-11D5-8EB6-00004CC34E9D}ECX_IMAGE_VIEW" "0,0,0,0,0,0" \r
 "{AC411480-6F0A-11D5-8EB6-00004CC34E9D}ImageCtrlViews" "0" \r
-"{B266D880-6FA1-11D5-8613-00A024591A38}WatchCtrlViews" "0" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchCtrlViews" "4" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth0" "255" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth1" "150" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth12" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth2" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ColWidth3" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000" "pxBlock->xBlockSize, 10, 0, P, Col, Hex, N" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0000_SCOPE" "Current Scope," \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001" "pxBlock->pxNextFreeBlock, 10, 0, P, Col, Hex, N" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0001_SCOPE" "Current Scope," \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002" "xStart, 10, 0, P, Col, Hex, N" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0002_SCOPE" "Current Scope," \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003" "xEnd, 10, 0, P, Col, Hex, N" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0003_SCOPE" "Current Scope," \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004" "pxNewBlockLink, 10, 0, P, Col, Hex, N" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEM0004_SCOPE" "Current Scope," \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd0ECX_WATCH_ITEMCnt" "0" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth0" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth1" "150" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth12" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth2" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ColWidth3" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd1ECX_WATCH_ITEMCnt" "0" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd2ColWidth0" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd2ColWidth1" "150" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd2ColWidth12" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd2ColWidth2" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd2ColWidth3" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd2ECX_WATCH_ITEMCnt" "0" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd3ColWidth0" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd3ColWidth1" "150" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd3ColWidth12" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd3ColWidth2" "120" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd3ColWidth3" "200" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWnd3ECX_WATCH_ITEMCnt" "0" \r
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWndInitial_Radix" "0" \r
+"{B266D880-6FA1-11D5-8613-00A024591A38}WatchWndInstanceKey0" "{WK_00000001_WATCH}RTOSDemoDefaultSession" \r
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWndRecentFile_WatchRecord" "" \r
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWndRecentFile_WatchSave" "" \r
 "{B266D880-6FA1-11D5-8613-00A024591A38}WatchWndUpdate_Interval" "100" \r
 "{EEDC9300-6FBE-11D5-8613-00A024591A38}LocalsCtrlViews" "0" \r
 "{EEDC9301-6FBE-11D5-8613-00A024591A38}StackTraceCtrlViews" "0" \r
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOCtrlIOFile" "" \r
-"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOCtrlSaveFileDir" "" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOCtrlSaveFileDir" "$(CONFIGDIR)\r
 "{F866DB60-6186-11D5-8BBE-0004E2013C71}IOCtrlSaveFileName" "" \r
-"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOCtrlViews" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOCtrlViews" "1" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOSelection IOWnd0" "" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ColWidth0" "200" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ColWidth1" "100" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ColWidth2" "100" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ColWidth3" "100" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp0" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp1" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp10" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp11" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp12" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp13" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp14" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp15" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp16" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp17" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp18" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp19" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp2" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp20" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp21" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp22" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp23" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp24" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp25" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp26" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp27" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp28" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp29" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp3" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp30" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp31" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp32" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp33" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp34" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp35" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp36" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp37" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp38" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp39" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp4" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp40" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp41" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp42" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp43" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp44" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp45" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp46" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp47" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp48" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp49" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp5" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp50" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp51" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp52" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp53" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp54" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp55" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp56" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp57" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp58" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp59" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp6" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp60" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp61" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp62" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp63" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp64" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp65" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp66" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp67" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp68" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp69" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp7" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp70" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp71" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp72" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp73" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp74" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp75" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp76" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp77" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp78" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp79" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp8" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0Exp9" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ScrollHorz" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd0ScrollVert" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth0" "200" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth1" "100" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth2" "100" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ColWidth3" "100" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ScrollHorz" "0" \r
+"{F866DB60-6186-11D5-8BBE-0004E2013C71}IOWnd1ScrollVert" "0" \r
 "{F923CED3-3318-4B43-B931-0AE76B289176}TaskTraceCtrlAnalyzeViews" "0" \r
 "{F923CED3-3318-4B43-B931-0AE76B289176}TaskTraceCtrlFileSaveDirectory" "" \r
 "{F923CED3-3318-4B43-B931-0AE76B289176}TaskTraceCtrlTraceViews" "0" \r
 0 \r
 [WINDOW_POSITION_STATE_DATA_VD1]\r
 "Help" "TOOLBAR 0" 59419 1 5 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
+"{WK_00000001_CmdLine}" "WINDOW" 59422 0 2 "0.07" 251 0 0 100 100 17 0 "32771|32772|32778|<<separator>>|32773|32774|<<separator>>" "0.0" \r
 "{WK_00000001_DEBUGCONSOLE}" "WINDOW" 59422 5 0 "1.00" 146 0 0 350 200 17 0 "57634|57637|57633|<<separator>>|32781|32782|<<separator>>|32780|32785|32787" "0.0" \r
-"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "1.00" 222 560 340 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" \r
+"{WK_00000001_IO}RTOSDemoDefaultSession" "WINDOW" 59422 0 3 "0.33" 251 0 0 350 200 17 0 "32817|32826|32819|32820|32821" "0.0" \r
+"{WK_00000001_MEMORY}RTOSDemoDefaultSession" "WINDOW" 59422 0 0 "0.35" 406 0 0 350 200 2065 0 "42202|42203|42204|42233|<<separator>>|42206|42205|42230|42229|42207|<<separator>>|42208|42209|42210|49076|42228|42227|<<separator>>|42231|42232|42234|42235|<<separator>>|42211|<<separator>>" "0.0" \r
+"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "1.00" 251 560 340 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" \r
+"{WK_00000001_REGISTERS}RTOSDemoDefaultSession" "WINDOW" 59421 0 0 "1.00" 307 0 0 350 200 18 0 "" "0.0" \r
+"{WK_00000001_WATCH}RTOSDemoDefaultSession" "WINDOW" 59422 0 1 "0.85" 251 0 0 853 610 17 0 "32781|32783|<<separator>>|32771|32829|32772|32827|32773|<<separator>>|32786|<<separator>>|32810|32811" "0.0" \r
 "{WK_00000002_WORKSPACE}" "WINDOW" 59420 0 0 "1.00" 342 560 340 350 200 18 0 "" "0.0" \r
 "{WK_TB00000001_STANDARD}" "TOOLBAR 0" 59419 0 2 "0.00" 0 0 0 0 0 18 0 "" "0.0" \r
 "{WK_TB00000002_EDITOR}" "TOOLBAR 0" 59419 0 0 "0.00" 0 0 0 0 0 18 0 "" "0.0" \r
 "{WK_TB00000009_VERSIONCONTROL}" "TOOLBAR 0" 59419 1 3 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 "{WK_TB00000011_CPU}" "TOOLBAR 0" 59419 2 2 "0.00" 0 0 0 0 0 18 0 "" "0.0" \r
 "{WK_TB00000012_MAP}" "TOOLBAR 0" 59419 1 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
-"{WK_TB00000013_SYMBOL}" "TOOLBAR 0" 59419 2 3 "0.00" 0 0 0 0 0 18 0 "" "0.0" \r
+"{WK_TB00000013_SYMBOL}" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 18 0 "" "0.0" \r
 "{WK_TB00000014_CODE}" "TOOLBAR 0" 59419 2 9 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 "{WK_TB00000015_PERFORMANCE}" "TOOLBAR 0" 59419 2 10 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 "{WK_TB00000016_GRAPHIC}" "TOOLBAR 0" 59419 2 8 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 "{WK_TB00000025_HELPSYSTEMTOOL}" "TOOLBAR 0" 59419 2 5 "0.00" 0 0 0 0 0 18 0 "" "0.0" \r
 "{WK_TB00000026_MACRO}" "TOOLBAR 0" 59419 1 6 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 "{WK_TB00000027_EVENT}" "TOOLBAR 0" 59419 2 7 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
-"{WK_TB00000028_RTOSDEBUG}" "TOOLBAR 0" 59419 2 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
+"{WK_TB00000028_RTOSDEBUG}" "TOOLBAR 0" 59419 2 3 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 "{WK_TB00000029_SYSTEMTOOL}" "TOOLBAR 0" 59419 2 6 "0.00" 0 0 0 0 0 17 0 "" "0.0" \r
 [WINDOW_POSITION_STATE_DATA_VD2]\r
 [WINDOW_POSITION_STATE_DATA_VD3]\r
 [WINDOW_POSITION_STATE_DATA_VD4]\r
 [WINDOW_Z_ORDER]\r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" \r
 [TARGET_NAME]\r
 "RX600 E1/E20 SYSTEM" "" 0 \r
 [STATUSBAR_STATEINFO_VD1]\r
 "SBK_TAR_EMUE100|Exception" 1 \r
 "SBK_TAR_EMUE100|BreakCondition" 1 \r
 "SBK_TAR_EMUE100|TaskID" 1 \r
-"SBK_TAR_EMUE100|ExecutionTime" 1 \r
 "SBK_TAR_EMUE100|PC" 1 \r
+"SBK_TAR_EMUE100|ExecutionTime" 1 \r
 [STATUSBAR_DEBUGGER_PANESTATE_VD2]\r
 [STATUSBAR_DEBUGGER_PANESTATE_VD3]\r
 [STATUSBAR_DEBUGGER_PANESTATE_VD4]\r
 [DEBUGGER_OPTIONS]\r
 "" \r
 [DOWNLOAD_MODULES]\r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\Debug\RTOSDemo.x" 0 "Elf/Dwarf2_KPIT" 0 1 1 0 \r
+"$(CONFIGDIR)\$(PROJECTNAME).x" 0 "Elf/Dwarf2_KPIT" 0 1 1 0 \r
 [CONNECT_ON_GO]\r
 "FALSE" \r
 [DOWNLOAD_MODULES_AFTER_BUILD]\r
diff --git a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/FreeRTOSConfig.h b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/FreeRTOSConfig.h
new file mode 100644 (file)
index 0000000..722b0c4
--- /dev/null
@@ -0,0 +1,149 @@
+/*\r
+    FreeRTOS V6.0.5 - Copyright (C) 2010 Real Time Engineers Ltd.\r
+\r
+    ***************************************************************************\r
+    *                                                                         *\r
+    * If you are:                                                             *\r
+    *                                                                         *\r
+    *    + New to FreeRTOS,                                                   *\r
+    *    + Wanting to learn FreeRTOS or multitasking in general quickly       *\r
+    *    + Looking for basic training,                                        *\r
+    *    + Wanting to improve your FreeRTOS skills and productivity           *\r
+    *                                                                         *\r
+    * then take a look at the FreeRTOS eBook                                  *\r
+    *                                                                         *\r
+    *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *\r
+    *                  http://www.FreeRTOS.org/Documentation                  *\r
+    *                                                                         *\r
+    * A pdf reference manual is also available.  Both are usually delivered   *\r
+    * to your inbox within 20 minutes to two hours when purchased between 8am *\r
+    * and 8pm GMT (although please allow up to 24 hours in case of            *\r
+    * exceptional circumstances).  Thank you for your support!                *\r
+    *                                                                         *\r
+    ***************************************************************************\r
+\r
+    This file is part of the FreeRTOS distribution.\r
+\r
+    FreeRTOS is free software; you can redistribute it and/or modify it under\r
+    the terms of the GNU General Public License (version 2) as published by the\r
+    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.\r
+    ***NOTE*** The exception to the GPL is included to allow you to distribute\r
+    a combined work that includes FreeRTOS without being obliged to provide the\r
+    source code for proprietary components outside of the FreeRTOS kernel.\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT\r
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\r
+    more details. You should have received a copy of the GNU General Public \r
+    License and the FreeRTOS license exception along with FreeRTOS; if not it \r
+    can be viewed here: http://www.freertos.org/a00114.html and also obtained \r
+    by writing to Richard Barry, contact details for whom are available on the\r
+    FreeRTOS WEB site.\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    http://www.FreeRTOS.org - Documentation, latest information, license and\r
+    contact details.\r
+\r
+    http://www.SafeRTOS.com - A version that is certified for use in safety\r
+    critical systems.\r
+\r
+    http://www.OpenRTOS.com - Commercial support, development, porting,\r
+    licensing and training services.\r
+*/\r
+\r
+#ifndef FREERTOS_CONFIG_H\r
+#define FREERTOS_CONFIG_H\r
+\r
+/* Board specifics. */\r
+#include "rskrx62ndef.h"\r
+\r
+/*-----------------------------------------------------------\r
+ * Application specific definitions.\r
+ *\r
+ * These definitions should be adjusted for your particular hardware and\r
+ * application requirements.\r
+ *\r
+ * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE\r
+ * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.\r
+ *\r
+ * See http://www.freertos.org/a00110.html.\r
+ *----------------------------------------------------------*/\r
+\r
+#define configUSE_PREEMPTION                   1\r
+#define configUSE_IDLE_HOOK                            0\r
+#define configUSE_TICK_HOOK                            0\r
+#define configCPU_CLOCK_HZ                             ( ICLK_FREQUENCY ) /* Set in rskrx62ndef.h. */\r
+#define configPERIPHERAL_CLOCK_HZ              ( PCLK_FREQUENCY ) /* Set in rskrx62ndef.h. */\r
+#define configTICK_RATE_HZ                             ( ( portTickType ) 1000 )\r
+#define configMINIMAL_STACK_SIZE               ( ( unsigned short ) 140 )\r
+#define configTOTAL_HEAP_SIZE                  ( ( size_t ) ( 45 * 1024 ) )\r
+#define configMAX_TASK_NAME_LEN                        ( 12 )\r
+#define configUSE_TRACE_FACILITY               1\r
+#define configUSE_16_BIT_TICKS                 0\r
+#define configIDLE_SHOULD_YIELD                        1\r
+#define configUSE_CO_ROUTINES                  0\r
+#define configUSE_MUTEXES                              1\r
+#define configGENERATE_RUN_TIME_STATS  0\r
+#define configCHECK_FOR_STACK_OVERFLOW 2\r
+#define configUSE_RECURSIVE_MUTEXES            1\r
+#define configQUEUE_REGISTRY_SIZE              0\r
+#define configUSE_MALLOC_FAILED_HOOK   1\r
+#define configUSE_APPLICATION_TASK_TAG 0\r
+\r
+#define configMAX_PRIORITIES                   ( ( unsigned portBASE_TYPE ) 5 )\r
+#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
+\r
+/* The interrupt priority used by the kernel itself for the tick interrupt and\r
+the pended interrupt.  This would normally be the lowest priority. */\r
+#define configKERNEL_INTERRUPT_PRIORITY         1\r
+\r
+/* The maximum interrupt priority from which FreeRTOS API calls can be made.\r
+Interrupts that use a priority above this will not be effected by anything the\r
+kernel is doing. */\r
+#define configMAX_SYSCALL_INTERRUPT_PRIORITY    4\r
+\r
+/* The peripheral used to generate the tick interrupt is configured as part of\r
+the application code.  This constant should be set to the vector number of the\r
+peripheral chosen.  As supplied this is CMT0. */\r
+#define configTICK_VECTOR                                              _CMT0_CMI0\r
+\r
+/* Set the following definitions to 1 to include the API function, or zero\r
+to exclude the API function. */\r
+\r
+#define INCLUDE_vTaskPrioritySet                       1\r
+#define INCLUDE_uxTaskPriorityGet                      1\r
+#define INCLUDE_vTaskDelete                                    1\r
+#define INCLUDE_vTaskCleanUpResources          0\r
+#define INCLUDE_vTaskSuspend                           1\r
+#define INCLUDE_vTaskDelayUntil                                1\r
+#define INCLUDE_vTaskDelay                                     1\r
+#define INCLUDE_uxTaskGetStackHighWaterMark    1\r
+#define INCLUDE_xTaskGetSchedulerState         1\r
+\r
+\r
+\r
+/*-----------------------------------------------------------\r
+ * Ethernet configuration.\r
+ *-----------------------------------------------------------*/\r
+\r
+/* MAC address configuration. */\r
+#define configMAC_ADDR0        0x00\r
+#define configMAC_ADDR1        0x12\r
+#define configMAC_ADDR2        0x13\r
+#define configMAC_ADDR3        0x10\r
+#define configMAC_ADDR4        0x15\r
+#define configMAC_ADDR5        0x11\r
+\r
+/* IP address configuration. */\r
+#define configIP_ADDR0         192\r
+#define configIP_ADDR1         168\r
+#define configIP_ADDR2         0\r
+#define configIP_ADDR3         201\r
+\r
+/* Netmask configuration. */\r
+#define configNET_MASK0                255\r
+#define configNET_MASK1                255\r
+#define configNET_MASK2                255\r
+#define configNET_MASK3                0\r
+\r
+#endif /* FREERTOS_CONFIG_H */\r
index 9afe8fc991b049179585f940145a4b4d9d3119da..677b81f41141ee8f1d16a9ef3137942cc4648d93 100644 (file)
@@ -71,18 +71,18 @@ _start:
        nop\r
 \r
 /* setup PSW */\r
-       mvtc    #10000h, psw                    /* Set Ubit & Ibit for PSW */\r
+//     mvtc    #10000h, psw                    /* Set Ubit & Ibit for PSW */\r
 \r
 /* change PSW PM to user-mode */\r
-       MVFC   PSW,R1\r
-       OR     #00100000h,R1\r
-       PUSH.L R1\r
-       MVFC   PC,R1\r
-       ADD    #10,R1\r
-       PUSH.L R1\r
-       RTE\r
-       NOP\r
-       NOP\r
+//     MVFC   PSW,R1\r
+//     OR     #00100000h,R1\r
+//     PUSH.L R1\r
+//     MVFC   PC,R1\r
+//     ADD    #10,R1\r
+//     PUSH.L R1\r
+//     RTE\r
+//     NOP\r
+//     NOP\r
 \r
 /* start user program */\r
        bsr.a   _main           \r
diff --git a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/ParTest.c b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/ParTest.c
new file mode 100644 (file)
index 0000000..1d6d0c1
--- /dev/null
@@ -0,0 +1,209 @@
+/*\r
+    FreeRTOS V6.0.5 - Copyright (C) 2010 Real Time Engineers Ltd.\r
+\r
+    ***************************************************************************\r
+    *                                                                         *\r
+    * If you are:                                                             *\r
+    *                                                                         *\r
+    *    + New to FreeRTOS,                                                   *\r
+    *    + Wanting to learn FreeRTOS or multitasking in general quickly       *\r
+    *    + Looking for basic training,                                        *\r
+    *    + Wanting to improve your FreeRTOS skills and productivity           *\r
+    *                                                                         *\r
+    * then take a look at the FreeRTOS eBook                                  *\r
+    *                                                                         *\r
+    *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *\r
+    *                  http://www.FreeRTOS.org/Documentation                  *\r
+    *                                                                         *\r
+    * A pdf reference manual is also available.  Both are usually delivered   *\r
+    * to your inbox within 20 minutes to two hours when purchased between 8am *\r
+    * and 8pm GMT (although please allow up to 24 hours in case of            *\r
+    * exceptional circumstances).  Thank you for your support!                *\r
+    *                                                                         *\r
+    ***************************************************************************\r
+\r
+    This file is part of the FreeRTOS distribution.\r
+\r
+    FreeRTOS is free software; you can redistribute it and/or modify it under\r
+    the terms of the GNU General Public License (version 2) as published by the\r
+    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.\r
+    ***NOTE*** The exception to the GPL is included to allow you to distribute\r
+    a combined work that includes FreeRTOS without being obliged to provide the\r
+    source code for proprietary components outside of the FreeRTOS kernel.\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT\r
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\r
+    more details. You should have received a copy of the GNU General Public \r
+    License and the FreeRTOS license exception along with FreeRTOS; if not it \r
+    can be viewed here: http://www.freertos.org/a00114.html and also obtained \r
+    by writing to Richard Barry, contact details for whom are available on the\r
+    FreeRTOS WEB site.\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    http://www.FreeRTOS.org - Documentation, latest information, license and\r
+    contact details.\r
+\r
+    http://www.SafeRTOS.com - A version that is certified for use in safety\r
+    critical systems.\r
+\r
+    http://www.OpenRTOS.com - Commercial support, development, porting,\r
+    licensing and training services.\r
+*/\r
+\r
+/*-----------------------------------------------------------\r
+ * Simple IO routines to control the LEDs.\r
+ *-----------------------------------------------------------*/\r
+\r
+/* Scheduler includes. */\r
+#include "FreeRTOS.h"\r
+#include "task.h"\r
+\r
+/* Demo includes. */\r
+#include "partest.h"\r
+\r
+/* Hardware specifics. */\r
+#include "iodefine.h"\r
+\r
+#define partestNUM_LEDS ( 6 )\r
+\r
+long lParTestGetLEDState( unsigned long ulLED );\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+void vParTestInitialise( void )\r
+{\r
+       /* Port pin configuration is done by the low level set up prior to this \r
+       function being called. */\r
+\r
+       /* Start with all LEDs off. */\r
+       LED0 = LED_OFF;\r
+       LED0 = LED_OFF;\r
+       LED0 = LED_OFF;\r
+       LED0 = LED_OFF;\r
+       LED0 = LED_OFF;\r
+       LED0 = LED_OFF;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vParTestSetLED( unsigned long ulLED, signed long xValue )\r
+{\r
+       if( ulLED < partestNUM_LEDS )\r
+       {\r
+               if( xValue != 0 )\r
+               {\r
+                       /* Turn the LED on. */\r
+                       taskENTER_CRITICAL();\r
+                       {\r
+                               switch( ulLED )\r
+                               {\r
+                                       case 0: LED0 = LED_ON;\r
+                                                       break;\r
+                                       case 1: LED1 = LED_ON;\r
+                                                       break;\r
+                                       case 2: LED2 = LED_ON;\r
+                                                       break;\r
+                                       case 3: LED3 = LED_ON;\r
+                                                       break;\r
+                                       case 4: LED4 = LED_ON;\r
+                                                       break;\r
+                                       case 5: LED5 = LED_ON;\r
+                                                       break;\r
+                               }\r
+                       }\r
+                       taskEXIT_CRITICAL();\r
+               }\r
+               else\r
+               {\r
+                       /* Turn the LED off. */\r
+                       taskENTER_CRITICAL();\r
+                       {\r
+                               switch( ulLED )\r
+                               {\r
+                                       case 0: LED0 = LED_OFF;\r
+                                                       break;\r
+                                       case 1: LED1 = LED_OFF;\r
+                                                       break;\r
+                                       case 2: LED2 = LED_OFF;\r
+                                                       break;\r
+                                       case 3: LED3 = LED_OFF;\r
+                                                       break;\r
+                                       case 4: LED4 = LED_OFF;\r
+                                                       break;\r
+                                       case 5: LED5 = LED_OFF;\r
+                                                       break;\r
+                               }\r
+\r
+                       }\r
+                       taskEXIT_CRITICAL();\r
+               }\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vParTestToggleLED( unsigned long ulLED )\r
+{\r
+       if( ulLED < partestNUM_LEDS )\r
+       {\r
+               taskENTER_CRITICAL();\r
+               {\r
+                       if( lParTestGetLEDState( ulLED ) != 0x00 )\r
+                       {\r
+                               vParTestSetLED( ulLED, 1 );\r
+                       }\r
+                       else\r
+                       {\r
+                               vParTestSetLED( ulLED, 0 );\r
+                       }\r
+               }\r
+               taskEXIT_CRITICAL();\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+                                                       \r
+long lParTestGetLEDState( unsigned long ulLED )\r
+{\r
+long lReturn = pdFALSE;\r
+\r
+       if( ulLED < partestNUM_LEDS )\r
+       {\r
+               switch( ulLED )\r
+               {\r
+                       case 0  :       if( LED0 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdTRUE;\r
+                                               }\r
+                                               break;                                  \r
+                       case 1  :       if( LED1 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdTRUE;\r
+                                               }\r
+                                               break;                                  \r
+                       case 2  :       if( LED2 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdTRUE;\r
+                                               }\r
+                                               break;                                  \r
+                       case 3  :       if( LED3 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdTRUE;\r
+                                               }\r
+                                               break;                                  \r
+                       case 4  :       if( LED4 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdTRUE;\r
+                                               }\r
+                                               break;                                  \r
+                       case 5  :       if( LED5 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdTRUE;\r
+                                               }\r
+                                               break;                                  \r
+               }\r
+       }\r
+       \r
+       return lReturn;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+                                                       
\ No newline at end of file
index 22dc081f2a6ea36c0cc02b7f637382b0d674c74a..59f71085a6b341f9db1166ef2a0cc00d2277f451 100644 (file)
@@ -3,15 +3,16 @@
 [DATABASE_VERSION]\r
 "2.8" \r
 [PROJECT_DETAILS]\r
-"RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\RTOSDemo.hwp" "RX" "KPIT GNURX [ELF]" "C Application" "RX600" "Other" \r
+"RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\RTOSDemo.hwp" "RX" "KPIT GNURX [ELF]" "C Application" "RX600" "Other" \r
 [INFORMATION]\r
 "No project information available" \r
 [TOOL_CHAIN]\r
 "KPIT GNURX [ELF] Toolchain" "v10.02" \r
 [CONFIGURATIONS]\r
-"Debug" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\Debug" \r
-"Debug_RX600_E1_E20_SYSTEM" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\Debug_RX600_E1_E20_SYSTEM" \r
-"Release" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\Release" \r
+"Blinky" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Blinky" \r
+"Debug" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Debug" \r
+"Debug_RX600_E1_E20_SYSTEM" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Debug_RX600_E1_E20_SYSTEM" \r
+"Debug_with_optimisation" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Debug_with_optimisation" \r
 [BUILD_PHASES]\r
 "GNU Assembler" 1 \r
 "GNU Compiler" 1 \r
 "Object file" "GNU Linker" "GNU Assembler" \r
 "Object file" "GNU Linker" "GNU Compiler" \r
 [PROJECT_FILES]\r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "User" "C source file|GNU-Files" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "User" "C source file|GNU-Files" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "User" "Preprocess Assembly file" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\inthandler.h" "User" "C header file" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\iodefine.h" "User" "C header file" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" "User" "C source file" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\typedefine.h" "User" "C header file" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\vects.c" "User" "C source file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "User" "C source file|GNU Files" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "User" "C source file|GNU Files" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "User" "Preprocess Assembly file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\ParTest.c" "User" "C source file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Renesas-Files\hwsetup.c" "User" "C source file|Renesas Files" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\inthandler.h" "User" "C header file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\iodefine.h" "User" "C header file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" "User" "C source file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-full.c" "User" "C source file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\typedefine.h" "User" "C header file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\vects.c" "User" "C source file" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\list.c" "User" "C source file|FreeRTOS Source" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" "User" "C source file|FreeRTOS Source|Portable Layer" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\MemMang\heap_2.c" "User" "C source file|FreeRTOS Source|Portable Layer" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" "User" "C source file|FreeRTOS Source" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" "User" "C source file|FreeRTOS Source" 2 \r
 [FOLDER]\r
 "C header file" "C header file" \r
 "C source file" "C source file" \r
-"C source file|GNU-Files" "" \r
+"C source file|FreeRTOS Source" "" \r
+"C source file|FreeRTOS Source|Portable Layer" "" \r
+"C source file|GNU Files" "" \r
+"C source file|Renesas Files" "" \r
 "Preprocess Assembly file" "Preprocess Assembly file" \r
 [GENERAL_DATA_PROJECT]\r
 "USE_CUSTOM_LINKAGE_ORDER" "0" \r
 [ON_DEMAND_COMPONENTS_LOADED]\r
 [SYNC_SESSION_NAMES]\r
 [SESSIONS]\r
-"DefaultSession" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\DefaultSession.hsf" 0 \r
-"SessionRX600_E1_E20_SYSTEM" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\SessionRX600_E1_E20_SYSTEM.hsf" 0 \r
+"DefaultSession" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\DefaultSession.hsf" 0 \r
+"SessionRX600_E1_E20_SYSTEM" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\SessionRX600_E1_E20_SYSTEM.hsf" 0 \r
 [GENERAL_DATA_SESSION_DefaultSession]\r
 [GENERAL_DATA_SESSION_SessionRX600_E1_E20_SYSTEM]\r
+[OPTIONS_Blinky_GNU Assembler]\r
+"Assembly source file" "0e2d0de05744bc10" 4 \r
+[OPTIONS_Blinky_GNU Compiler]\r
+"C source file" "0bc3b87d9354bc10" 2 \r
+"C++ source file" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "0bc3b87d9354bc10" 3 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\ParTest.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Renesas-Files\hwsetup.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-full.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\vects.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\list.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\MemMang\heap_2.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" "0bc3b87d9354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" "0bc3b87d9354bc10" 2 \r
+"Preprocess Assembly file" "0bc3b87d9354bc10" 3 \r
+[OPTIONS_Blinky_GNU Library Generator]\r
+"Single Shot" "0e2d0de05744bc10" 1 \r
+[OPTIONS_Blinky_GNU Linker]\r
+"Single Shot" "025a8385d354bc10" 5 \r
+[OPTIONS_Blinky]\r
+"" 0 \r
+"[V|VERSION|2] [B|DOEXTF|1] [S|INCDIR|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02^"|^"$(CONFIGDIR)^"] [B|RSARCH|1] [B|FIXUPLIBS|1] [S|ARCHIVE|lib$(PROJECTNAME).a*libgcc.a] [S|OUTFORM|BOTH] [B|MFILEGEN|1] [S|PLMFILE|^"$(CONFIGDIR)\$(PROJECTNAME).map^"] [S|OUTFILE|^"$(CONFIGDIR)\$(PROJECTNAME).x^"] [S|GROUPDET|.fvectors|0|0||1|0xFFFFFF80|0|1|0|.fvectors|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.text|0|0||1|0xFFF80000|0|0|0|.text|All-files|<<FEND>>|0|.text.*|All-files|<<FEND>>|0|P|All-files|<<FEND>>|1|etext|<<FEND>>|<<CEND>>|<<GEND>>|.rvectors|0|0||0||0|1|1|_rvectors_start|<<FEND>>|0|.rvectors|All-files|<<FEND>>|1|_rvectors_end|<<FEND>>|<<CEND>>|<<GEND>>|.init|0|0||0||0|0|0|.init|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.fini|0|0||0||0|0|0|.fini|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.got|0|0||0||0|0|0|.got|All-files|<<FEND>>|0|.got.plt|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.rodata|0|0||0||0|0|0|.rodata|All-files|<<FEND>>|0|.rodata.*|All-files|<<FEND>>|0|C_1|All-files|<<FEND>>|0|C_2|All-files|<<FEND>>|0|C|All-files|<<FEND>>|1|_erodata|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame_hdr|0|0||0||0|0|0|.eh_frame_hdr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame|0|0||0||0|0|0|.eh_frame|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.jcr|0|0||0||0|0|0|.jcr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.tors|0|0||0||0|0|1|__CTOR_LIST__|<<FEND>>|1|___ctors|<<FEND>>|0|.ctors|All-files|<<FEND>>|1|___ctors_end|<<FEND>>|1|__CTOR_END__|<<FEND>>|1|__DTOR_LIST__|<<FEND>>|1|___dtors|<<FEND>>|0|.dtors|All-files|<<FEND>>|1|___dtors_end|<<FEND>>|1|__DTOR_END__|<<FEND>>|1|_mdata|<<FEND>>|<<CEND>>|<<GEND>>|.istack|0|0||1|0x00017FF0|0|0|1|_istack|<<FEND>>|<<CEND>>|<<GEND>>|.ustack|0|0||1|0x00017FF8|0|0|1|_ustack|<<FEND>>|<<CEND>>|<<GEND>>|.data|0|2|_mdata|1|0x00001001|0|0|1|_data|<<FEND>>|0|.data|All-files|<<FEND>>|0|.data.*|All-files|<<FEND>>|0|D|All-files|<<FEND>>|0|D_1|All-files|<<FEND>>|0|D_2|All-files|<<FEND>>|1|_edata|<<FEND>>|<<CEND>>|<<GEND>>|.gcc_exc|0|0||0||0|0|0|.gcc_exc|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.bss|0|0||0||0|0|1|_bss|<<FEND>>|0|.bss|All-files|<<FEND>>|0|.bss.*|All-files|<<FEND>>|0|COMMON|All-files|<<FEND>>|0|B|All-files|<<FEND>>|0|B_1|All-files|<<FEND>>|0|B_2|All-files|<<FEND>>|1|_ebss|<<FEND>>|1|_end|<<FEND>>|<<CEND>>|<<GEND>>|] [S|APPTXT|^"-e _start^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1] [B|DOPROJBUILT|1]\r
+" 5 \r
+"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"|^"$(PROJDIR)\..\..\..\Source\include^"|^"$(PROJDIR)\..\..\..\Source\portable\GCC\RX600^"|^"$(PROJDIR)^"|^"$(PROJDIR)\..\..\Common\include^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|LINCSYM|1] [B|LOMITDD|1] [B|LOMITFP|1] [B|OPTIMIZE|0] [I|OPTLV|2] [B|NOSTDINC|1] [S|APPTXT|^"-Wa,-gdwarf2^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
+" 3 \r
+"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"|^"$(PROJDIR)\..\..\..\Source\include^"|^"$(PROJDIR)\..\..\..\Source\portable\GCC\RX600^"|^"$(PROJDIR)^"|^"$(PROJDIR)\..\..\Common\include^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|LINCSYM|1] [B|LOMITDD|1] [B|LOMITFP|1] [B|OPTIMIZE|0] [I|OPTLV|2] [B|NOSTDINC|1] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
+" 2 \r
+"[V|VERSION|2] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [I|DEBUGLV|2] [B|LINCHLS|1] [B|LINCASS|1] [B|LINCSYM|1] [S|LFILE|^"$(CONFIGDIR)\$(FILELEAF).^"] [S|PROJECTTYPE|CAPPPROJECT] [S|INCDIR|^"$(PROJDIR)^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] " 4 \r
+"[V|VERSION|2] [S|OUTPUTPATH|^"$(CONFIGDIR)\lib$(PROJECTNAME).a^"] [B|OPTIMIZE|1] [I|OPTTYPE|1] [S|MODE|BUILD/CHANGED] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [B|DOPROJBUILT|1] [B|DOOPTLIB|1] [B|MATH|1] [B|STDIO|1] [B|STDLIB|1] [B|STRING|1] " 1 \r
+[EXCLUDED_FILES_Blinky]\r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-full.c" \r
+[LINKAGE_ORDER_Blinky]\r
+[GENERAL_DATA_CONFIGURATION_Blinky]\r
 [OPTIONS_Debug_GNU Assembler]\r
 "Assembly source file" "0e2d0de05744bc10" 4 \r
 [OPTIONS_Debug_GNU Compiler]\r
-"C source file" "0f68da6d5744bc10" 3 \r
-"C++ source file" "0f68da6d5744bc10" 3 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "02a2a3fe5744bc10" 3 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "02a2a3fe5744bc10" 3 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" "0f68da6d5744bc10" 3 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\vects.c" "0f68da6d5744bc10" 3 \r
-"Preprocess Assembly file" "0f68da6d5744bc10" 2 \r
+"C source file" "09d41eb75944bc10" 2 \r
+"C++ source file" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "09d41eb75944bc10" 3 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\ParTest.c" "03e706f2f054bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Renesas-Files\hwsetup.c" "0cca54821354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" "0cf3784c7f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-full.c" "0cf3784c7f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\vects.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\list.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\MemMang\heap_2.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" "09d41eb75944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" "09d41eb75944bc10" 2 \r
+"Preprocess Assembly file" "09d41eb75944bc10" 3 \r
 [OPTIONS_Debug_GNU Library Generator]\r
 "Single Shot" "0e2d0de05744bc10" 1 \r
 [OPTIONS_Debug_GNU Linker]\r
-"Single Shot" "015ee3fe5744bc10" 5 \r
+"Single Shot" "0a3915821354bc10" 5 \r
 [OPTIONS_Debug]\r
 "" 0 \r
-"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|OPTIMIZE|0] [I|OPTLV|2] [B|NOSTDINC|1] [S|APPTXT|^"-Wa,-gdwarf2^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
-" 2 \r
-"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|OPTIMIZE|0] [I|OPTLV|2] [B|NOSTDINC|1] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
+"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"|^"$(PROJDIR)\..\..\..\Source\include^"|^"$(PROJDIR)\..\..\..\Source\portable\GCC\RX600^"|^"$(PROJDIR)^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|OPTIMIZE|0] [I|OPTLV|2] [B|NOSTDINC|1] [S|APPTXT|^"-Wa,-gdwarf2^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
 " 3 \r
+"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"|^"$(PROJDIR)\..\..\..\Source\include^"|^"$(PROJDIR)\..\..\..\Source\portable\GCC\RX600^"|^"$(PROJDIR)^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|OPTIMIZE|0] [I|OPTLV|2] [B|NOSTDINC|1] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
+" 2 \r
 "[V|VERSION|2] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [I|DEBUGLV|2] [B|LINCHLS|1] [B|LINCASS|1] [B|LINCSYM|1] [S|LFILE|^"$(CONFIGDIR)\$(FILELEAF).^"] [S|PROJECTTYPE|CAPPPROJECT] [S|INCDIR|^"$(PROJDIR)^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] " 4 \r
 "[V|VERSION|2] [S|OUTFORM|BOTH] [B|MFILEGEN|1] [S|PLMFILE|^"$(CONFIGDIR)\$(PROJECTNAME).map^"] [S|APPTXT|^"-e _start^"] [S|OUTFILE|^"$(CONFIGDIR)\$(PROJECTNAME).x^"] [B|RSARCH|1] [B|FIXUPLIBS|1] [B|SUBCOMMAND|0] [S|PROJECTTYPE|CAPPPROJECT] [S|ENDIAN|LITTLE] [S|CPUTYPE|RX600] [S|CPU|Other] [B|DOOPTLIB|1] [B|DOPROJBUILT|1] [S|ARCHIVE|libRTOSDemo.a*libgcc.a] [S|INCDIR|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02^"|^"$(CONFIGDIR)^"] [S|GROUPDET|.fvectors|0|0||1|0xFFFFFF80|0|1|0|.fvectors|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.text|0|0||1|0xFFFF8000|0|0|0|.text|All-files|<<FEND>>|0|.text.*|All-files|<<FEND>>|0|P|All-files|<<FEND>>|1|etext|<<FEND>>|<<CEND>>|<<GEND>>|.rvectors|0|0||0||0|1|1|_rvectors_start|<<FEND>>|0|.rvectors|All-files|<<FEND>>|1|_rvectors_end|<<FEND>>|<<CEND>>|<<GEND>>|.init|0|0||0||0|0|0|.init|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.fini|0|0||0||0|0|0|.fini|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.got|0|0||0||0|0|0|.got|All-files|<<FEND>>|0|.got.plt|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.rodata|0|0||0||0|0|0|.rodata|All-files|<<FEND>>|0|.rodata.*|All-files|<<FEND>>|0|C_1|All-files|<<FEND>>|0|C_2|All-files|<<FEND>>|0|C|All-files|<<FEND>>|1|_erodata|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame_hdr|0|0||0||0|0|0|.eh_frame_hdr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame|0|0||0||0|0|0|.eh_frame|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.jcr|0|0||0||0|0|0|.jcr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.tors|0|0||0||0|0|1|__CTOR_LIST__|<<FEND>>|1|___ctors|<<FEND>>|0|.ctors|All-files|<<FEND>>|1|___ctors_end|<<FEND>>|1|__CTOR_END__|<<FEND>>|1|__DTOR_LIST__|<<FEND>>|1|___dtors|<<FEND>>|0|.dtors|All-files|<<FEND>>|1|___dtors_end|<<FEND>>|1|__DTOR_END__|<<FEND>>|1|_mdata|<<FEND>>|<<CEND>>|<<GEND>>|.istack|0|0||1|0x00001808|0|0|1|_istack|<<FEND>>|<<CEND>>|<<GEND>>|.ustack|0|0||1|0x00001708|0|0|1|_ustack|<<FEND>>|<<CEND>>|<<GEND>>|.data|0|2|_mdata|1|0x00001001|0|0|1|_data|<<FEND>>|0|.data|All-files|<<FEND>>|0|.data.*|All-files|<<FEND>>|0|D|All-files|<<FEND>>|0|D_1|All-files|<<FEND>>|0|D_2|All-files|<<FEND>>|1|_edata|<<FEND>>|<<CEND>>|<<GEND>>|.gcc_exc|0|0||0||0|0|0|.gcc_exc|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.bss|0|0||0||0|0|1|_bss|<<FEND>>|0|.bss|All-files|<<FEND>>|0|.bss.*|All-files|<<FEND>>|0|COMMON|All-files|<<FEND>>|0|B|All-files|<<FEND>>|0|B_1|All-files|<<FEND>>|0|B_2|All-files|<<FEND>>|1|_ebss|<<FEND>>|1|_end|<<FEND>>|<<CEND>>|<<GEND>>] " 5 \r
 "[V|VERSION|2] [S|OUTPUTPATH|^"$(CONFIGDIR)\lib$(PROJECTNAME).a^"] [B|OPTIMIZE|1] [I|OPTTYPE|1] [S|MODE|BUILD/CHANGED] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [B|DOPROJBUILT|1] [B|DOOPTLIB|1] [B|MATH|1] [B|STDIO|1] [B|STDLIB|1] [B|STRING|1] " 1 \r
 [EXCLUDED_FILES_Debug]\r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" \r
 [LINKAGE_ORDER_Debug]\r
 [GENERAL_DATA_CONFIGURATION_Debug]\r
 [OPTIONS_Debug_RX600_E1_E20_SYSTEM_GNU Assembler]\r
 [OPTIONS_Debug_RX600_E1_E20_SYSTEM_GNU Compiler]\r
 "C source file" "0e2d0de05744bc10" 2 \r
 "C++ source file" "0e2d0de05744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" "0cec443c5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\vects.c" "0e2d0de05744bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "02a2a3fe5744bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "02a2a3fe5744bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "02a2a3fe5744bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\ParTest.c" "03e706f2f054bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Renesas-Files\hwsetup.c" "0cca54821354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" "0cf3784c7f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-full.c" "0cf3784c7f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\vects.c" "0e2d0de05744bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\list.c" "0d87dc105944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" "020e99825944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\MemMang\heap_2.c" "057912465944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" "0d87dc105944bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" "0d87dc105944bc10" 2 \r
 "Preprocess Assembly file" "0e2d0de05744bc10" 2 \r
 [OPTIONS_Debug_RX600_E1_E20_SYSTEM_GNU Library Generator]\r
 "Single Shot" "0e2d0de05744bc10" 1 \r
 [OPTIONS_Debug_RX600_E1_E20_SYSTEM_GNU Linker]\r
-"Single Shot" "015ee3fe5744bc10" 4 \r
+"Single Shot" "0a3915821354bc10" 4 \r
 [OPTIONS_Debug_RX600_E1_E20_SYSTEM]\r
 "" 0 \r
 "[V|VERSION|2] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [I|DEBUGLV|2] [B|LINCHLS|1] [B|LINCASS|1] [B|LINCSYM|1] [S|LFILE|^"$(CONFIGDIR)\$(FILELEAF).^"] [S|PROJECTTYPE|CAPPPROJECT] [S|INCDIR|^"$(PROJDIR)^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] " 3 \r
 [EXCLUDED_FILES_Debug_RX600_E1_E20_SYSTEM]\r
 [LINKAGE_ORDER_Debug_RX600_E1_E20_SYSTEM]\r
 [GENERAL_DATA_CONFIGURATION_Debug_RX600_E1_E20_SYSTEM]\r
-[OPTIONS_Release_GNU Assembler]\r
-"Assembly source file" "0e2d0de05744bc10" 3 \r
-[OPTIONS_Release_GNU Compiler]\r
-"C source file" "0e2d0de05744bc10" 2 \r
-"C++ source file" "0e2d0de05744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "02a2a3fe5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" "0cec443c5744bc10" 2 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\vects.c" "0e2d0de05744bc10" 2 \r
-"Preprocess Assembly file" "0e2d0de05744bc10" 2 \r
-[OPTIONS_Release_GNU Library Generator]\r
+[OPTIONS_Debug_with_optimisation_GNU Assembler]\r
+"Assembly source file" "0e2d0de05744bc10" 4 \r
+[OPTIONS_Debug_with_optimisation_GNU Compiler]\r
+"C source file" "0ba62ff18f44bc10" 2 \r
+"C++ source file" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\hwinit.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\inthandler.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" "0ba62ff18f44bc10" 3 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\ParTest.c" "03e706f2f054bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\Renesas-Files\hwsetup.c" "0cca54821354bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-full.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\vects.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\list.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\MemMang\heap_2.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" "0ba62ff18f44bc10" 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" "0ba62ff18f44bc10" 2 \r
+"Preprocess Assembly file" "0ba62ff18f44bc10" 3 \r
+[OPTIONS_Debug_with_optimisation_GNU Library Generator]\r
 "Single Shot" "0e2d0de05744bc10" 1 \r
-[OPTIONS_Release_GNU Linker]\r
-"Single Shot" "015ee3fe5744bc10" 4 \r
-[OPTIONS_Release]\r
+[OPTIONS_Debug_with_optimisation_GNU Linker]\r
+"Single Shot" "0a3915821354bc10" 5 \r
+[OPTIONS_Debug_with_optimisation]\r
 "" 0 \r
-"[V|VERSION|2] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [I|DEBUGLV|0] [B|LINCHLS|1] [B|LINCASS|1] [B|LINCSYM|1] [S|LFILE|^"$(CONFIGDIR)\$(FILELEAF).^"] [S|PROJECTTYPE|CAPPPROJECT] [S|INCDIR|^"$(PROJDIR)^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] " 3 \r
-"[V|VERSION|2] [S|OUTFORM|BOTH] [B|MFILEGEN|1] [S|PLMFILE|^"$(CONFIGDIR)\$(PROJECTNAME).map^"] [S|APPTXT|^"-e _start^"] [S|OUTFILE|^"$(CONFIGDIR)\$(PROJECTNAME).x^"] [B|RSARCH|1] [B|OPTMEM|1] [B|ODEBSYM|1] [B|FIXUPLIBS|1] [B|SUBCOMMAND|0] [S|PROJECTTYPE|CAPPPROJECT] [S|ENDIAN|LITTLE] [S|CPUTYPE|RX600] [S|CPU|Other] [B|DOOPTLIB|1] [B|DOPROJBUILT|1] [S|ARCHIVE|libRTOSDemo.a*libgcc.a] [S|INCDIR|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02^"|^"$(CONFIGDIR)^"] [S|GROUPDET|.fvectors|0|0||1|0xFFFFFF80|0|1|0|.fvectors|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.text|0|0||1|0xFFFF8000|0|0|0|.text|All-files|<<FEND>>|0|.text.*|All-files|<<FEND>>|0|P|All-files|<<FEND>>|1|etext|<<FEND>>|<<CEND>>|<<GEND>>|.rvectors|0|0||0||0|1|1|_rvectors_start|<<FEND>>|0|.rvectors|All-files|<<FEND>>|1|_rvectors_end|<<FEND>>|<<CEND>>|<<GEND>>|.init|0|0||0||0|0|0|.init|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.fini|0|0||0||0|0|0|.fini|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.got|0|0||0||0|0|0|.got|All-files|<<FEND>>|0|.got.plt|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.rodata|0|0||0||0|0|0|.rodata|All-files|<<FEND>>|0|.rodata.*|All-files|<<FEND>>|0|C_1|All-files|<<FEND>>|0|C_2|All-files|<<FEND>>|0|C|All-files|<<FEND>>|1|_erodata|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame_hdr|0|0||0||0|0|0|.eh_frame_hdr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame|0|0||0||0|0|0|.eh_frame|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.jcr|0|0||0||0|0|0|.jcr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.tors|0|0||0||0|0|1|__CTOR_LIST__|<<FEND>>|1|___ctors|<<FEND>>|0|.ctors|All-files|<<FEND>>|1|___ctors_end|<<FEND>>|1|__CTOR_END__|<<FEND>>|1|__DTOR_LIST__|<<FEND>>|1|___dtors|<<FEND>>|0|.dtors|All-files|<<FEND>>|1|___dtors_end|<<FEND>>|1|__DTOR_END__|<<FEND>>|1|_mdata|<<FEND>>|<<CEND>>|<<GEND>>|.istack|0|0||1|0x00001808|0|0|1|_istack|<<FEND>>|<<CEND>>|<<GEND>>|.ustack|0|0||1|0x00001708|0|0|1|_ustack|<<FEND>>|<<CEND>>|<<GEND>>|.data|0|2|_mdata|1|0x00001001|0|0|1|_data|<<FEND>>|0|.data|All-files|<<FEND>>|0|.data.*|All-files|<<FEND>>|0|D|All-files|<<FEND>>|0|D_1|All-files|<<FEND>>|0|D_2|All-files|<<FEND>>|1|_edata|<<FEND>>|<<CEND>>|<<GEND>>|.gcc_exc|0|0||0||0|0|0|.gcc_exc|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.bss|0|0||0||0|0|1|_bss|<<FEND>>|0|.bss|All-files|<<FEND>>|0|.bss.*|All-files|<<FEND>>|0|COMMON|All-files|<<FEND>>|0|B|All-files|<<FEND>>|0|B_1|All-files|<<FEND>>|0|B_2|All-files|<<FEND>>|1|_ebss|<<FEND>>|1|_end|<<FEND>>|<<CEND>>|<<GEND>>] " 4 \r
+"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"|^"$(PROJDIR)\..\..\..\Source\include^"|^"$(PROJDIR)\..\..\..\Source\portable\GCC\RX600^"|^"$(PROJDIR)^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|OPTIMIZE|1] [I|OPTLV|3] [B|NOSTDINC|1] [S|APPTXT|^"-Wa,-gdwarf2^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
+" 3 \r
+"[V|VERSION|2] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"|^"$(PROJDIR)\include^"|^"$(PROJDIR)\..\..\..\Source\include^"|^"$(PROJDIR)\..\..\..\Source\portable\GCC\RX600^"|^"$(PROJDIR)^"] [S|DEFINES|DEBUG] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|DEBUG|1] [S|DEBUGFT|Native] [I|DEBUGLV|2] [S|ALIGN4|ALL] [B|OPTIMIZE|1] [I|OPTLV|3] [B|NOSTDINC|1] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [I|RMINTREGVAL|0] [I|RMMAXCONSTVAL|0] [I|RMMAXVARSVAL|0] [S|PROJECTTYPE|CAPPPROJECT] [B|DOOPTLIB|1]\r
+" 2 \r
+"[V|VERSION|2] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [I|DEBUGLV|2] [B|LINCHLS|1] [B|LINCASS|1] [B|LINCSYM|1] [S|LFILE|^"$(CONFIGDIR)\$(FILELEAF).^"] [S|PROJECTTYPE|CAPPPROJECT] [S|INCDIR|^"$(PROJDIR)^"] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] " 4 \r
+"[V|VERSION|2] [S|OUTFORM|BOTH] [B|MFILEGEN|1] [S|PLMFILE|^"$(CONFIGDIR)\$(PROJECTNAME).map^"] [S|APPTXT|^"-e _start^"] [S|OUTFILE|^"$(CONFIGDIR)\$(PROJECTNAME).x^"] [B|RSARCH|1] [B|FIXUPLIBS|1] [B|SUBCOMMAND|0] [S|PROJECTTYPE|CAPPPROJECT] [S|ENDIAN|LITTLE] [S|CPUTYPE|RX600] [S|CPU|Other] [B|DOOPTLIB|1] [B|DOPROJBUILT|1] [S|ARCHIVE|libRTOSDemo.a*libgcc.a] [S|INCDIR|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02^"|^"$(CONFIGDIR)^"] [S|GROUPDET|.fvectors|0|0||1|0xFFFFFF80|0|1|0|.fvectors|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.text|0|0||1|0xFFFF8000|0|0|0|.text|All-files|<<FEND>>|0|.text.*|All-files|<<FEND>>|0|P|All-files|<<FEND>>|1|etext|<<FEND>>|<<CEND>>|<<GEND>>|.rvectors|0|0||0||0|1|1|_rvectors_start|<<FEND>>|0|.rvectors|All-files|<<FEND>>|1|_rvectors_end|<<FEND>>|<<CEND>>|<<GEND>>|.init|0|0||0||0|0|0|.init|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.fini|0|0||0||0|0|0|.fini|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.got|0|0||0||0|0|0|.got|All-files|<<FEND>>|0|.got.plt|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.rodata|0|0||0||0|0|0|.rodata|All-files|<<FEND>>|0|.rodata.*|All-files|<<FEND>>|0|C_1|All-files|<<FEND>>|0|C_2|All-files|<<FEND>>|0|C|All-files|<<FEND>>|1|_erodata|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame_hdr|0|0||0||0|0|0|.eh_frame_hdr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.eh_frame|0|0||0||0|0|0|.eh_frame|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.jcr|0|0||0||0|0|0|.jcr|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.tors|0|0||0||0|0|1|__CTOR_LIST__|<<FEND>>|1|___ctors|<<FEND>>|0|.ctors|All-files|<<FEND>>|1|___ctors_end|<<FEND>>|1|__CTOR_END__|<<FEND>>|1|__DTOR_LIST__|<<FEND>>|1|___dtors|<<FEND>>|0|.dtors|All-files|<<FEND>>|1|___dtors_end|<<FEND>>|1|__DTOR_END__|<<FEND>>|1|_mdata|<<FEND>>|<<CEND>>|<<GEND>>|.istack|0|0||1|0x00001808|0|0|1|_istack|<<FEND>>|<<CEND>>|<<GEND>>|.ustack|0|0||1|0x00001708|0|0|1|_ustack|<<FEND>>|<<CEND>>|<<GEND>>|.data|0|2|_mdata|1|0x00001001|0|0|1|_data|<<FEND>>|0|.data|All-files|<<FEND>>|0|.data.*|All-files|<<FEND>>|0|D|All-files|<<FEND>>|0|D_1|All-files|<<FEND>>|0|D_2|All-files|<<FEND>>|1|_edata|<<FEND>>|<<CEND>>|<<GEND>>|.gcc_exc|0|0||0||0|0|0|.gcc_exc|All-files|<<FEND>>|<<CEND>>|<<GEND>>|.bss|0|0||0||0|0|1|_bss|<<FEND>>|0|.bss|All-files|<<FEND>>|0|.bss.*|All-files|<<FEND>>|0|COMMON|All-files|<<FEND>>|0|B|All-files|<<FEND>>|0|B_1|All-files|<<FEND>>|0|B_2|All-files|<<FEND>>|1|_ebss|<<FEND>>|1|_end|<<FEND>>|<<CEND>>|<<GEND>>] " 5 \r
 "[V|VERSION|2] [S|OUTPUTPATH|^"$(CONFIGDIR)\lib$(PROJECTNAME).a^"] [B|OPTIMIZE|1] [I|OPTTYPE|1] [S|MODE|BUILD/CHANGED] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [B|DOPROJBUILT|1] [B|DOOPTLIB|1] [B|MATH|1] [B|STDIO|1] [B|STDLIB|1] [B|STRING|1] " 1 \r
-"[V|VERSION|2] [S|OUTPUT|OBJECT] [S|OBJPATH|^"$(CONFIGDIR)\$(FILELEAF).o^"] [B|OPTIMIZE|1] [I|OPTLV|2] [B|DEBUG|0] [I|DEBUGLV|2] [S|DEBUGFT|Native] [S|DEFINES|RELEASE] [S|PROJECTTYPE|CAPPPROJECT] [S|CPUTYPE|RX600] [S|ENDIAN|LITTLE] [S|CPU|Other] [B|DOOPTLIB|1] [S|INCDIR|^"$(TCINSTALL)\rx-elf\rx-elf\optlibinc^"|^"$(TCINSTALL)\rx-elf\lib\gcc\rx-elf\4.5-GNURX_v10.02\optlibinc^"] [B|NOSTDINC|1] " 2 \r
-[EXCLUDED_FILES_Release]\r
-[LINKAGE_ORDER_Release]\r
-[GENERAL_DATA_CONFIGURATION_Release]\r
+[EXCLUDED_FILES_Debug_with_optimisation]\r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" \r
+[LINKAGE_ORDER_Debug_with_optimisation]\r
+[GENERAL_DATA_CONFIGURATION_Debug_with_optimisation]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Blinky_DefaultSession]\r
+[SESSION_DATA_CONFIGURATION_SESSION_Blinky_DefaultSession]\r
+"MEMORY_MAPPING_OPTIONS" "" \r
+[GENERAL_DATA_CONFIGURATION_SESSION_Blinky_SessionRX600_E1_E20_SYSTEM]\r
+[SESSION_DATA_CONFIGURATION_SESSION_Blinky_SessionRX600_E1_E20_SYSTEM]\r
+"MEMORY_MAPPING_OPTIONS" "Unknown Options" \r
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]\r
 [SESSION_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]\r
 "MEMORY_MAPPING_OPTIONS" "" \r
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_RX600_E1_E20_SYSTEM_SessionRX600_E1_E20_SYSTEM]\r
 [SESSION_DATA_CONFIGURATION_SESSION_Debug_RX600_E1_E20_SYSTEM_SessionRX600_E1_E20_SYSTEM]\r
 "MEMORY_MAPPING_OPTIONS" "Unknown Options" \r
-[GENERAL_DATA_CONFIGURATION_SESSION_Release_DefaultSession]\r
-[SESSION_DATA_CONFIGURATION_SESSION_Release_DefaultSession]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Debug_with_optimisation_DefaultSession]\r
+[SESSION_DATA_CONFIGURATION_SESSION_Debug_with_optimisation_DefaultSession]\r
 "MEMORY_MAPPING_OPTIONS" "" \r
-[GENERAL_DATA_CONFIGURATION_SESSION_Release_SessionRX600_E1_E20_SYSTEM]\r
-[SESSION_DATA_CONFIGURATION_SESSION_Release_SessionRX600_E1_E20_SYSTEM]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Debug_with_optimisation_SessionRX600_E1_E20_SYSTEM]\r
+[SESSION_DATA_CONFIGURATION_SESSION_Debug_with_optimisation_SessionRX600_E1_E20_SYSTEM]\r
 "MEMORY_MAPPING_OPTIONS" "Unknown Options" \r
 [EXT_DEBUGGER_INFO]\r
 0 "" "" "" "" \r
index 7fc11c60b1e3768d15cdc515c5de992e59d74fc0..af7b27823272f571244b3faefd0636550faaf396 100644 (file)
Binary files a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/RTOSDemo.nav and b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/RTOSDemo.nav differ
index 31a97de288a2077838f4cddb04540514d77da573..d83fe47029ff776d6f9aa94769d1808b23ba49e1 100644 (file)
@@ -6,16 +6,22 @@
 "DefaultSession" \r
 "SessionRX600_E1_E20_SYSTEM" \r
 [CONFIGURATIONS]\r
+"Blinky" \r
 "Debug" \r
 "Debug_RX600_E1_E20_SYSTEM" \r
-"Release\r
+"Debug_with_optimisation\r
 [CURRENT_CONFIGURATION]\r
-"Debug\r
+"Blinky\r
 [CURRENT_SESSION]\r
 "DefaultSession" \r
 [GENERAL_DATA_PROJECT]\r
-[GENERAL_DATA_CONFIGURATION_Debug]\r
+[GENERAL_DATA_CONFIGURATION_Blinky]\r
 "PROJECT_FILES_MODIFIED_DATA_TAG" "FALSE" \r
+[SESSIONS_Blinky]\r
+"DefaultSession" \r
+"SessionRX600_E1_E20_SYSTEM" \r
+[GENERAL_DATA_CONFIGURATION_Debug]\r
+"PROJECT_FILES_MODIFIED_DATA_TAG" "TRUE" \r
 [SESSIONS_Debug]\r
 "DefaultSession" \r
 "SessionRX600_E1_E20_SYSTEM" \r
 [SESSIONS_Debug_RX600_E1_E20_SYSTEM]\r
 "DefaultSession" \r
 "SessionRX600_E1_E20_SYSTEM" \r
-[GENERAL_DATA_CONFIGURATION_Release]\r
+[GENERAL_DATA_CONFIGURATION_Debug_with_optimisation]\r
 "PROJECT_FILES_MODIFIED_DATA_TAG" "TRUE" \r
-[SESSIONS_Release]\r
+[SESSIONS_Debug_with_optimisation]\r
 "DefaultSession" \r
 "SessionRX600_E1_E20_SYSTEM" \r
-[GENERAL_DATA_CONFIGURATION_SESSION_Release_SessionRX600_E1_E20_SYSTEM]\r
 [GENERAL_DATA_SESSION_DefaultSession]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Blinky_SessionRX600_E1_E20_SYSTEM]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Blinky_DefaultSession]\r
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_RX600_E1_E20_SYSTEM_SessionRX600_E1_E20_SYSTEM]\r
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]\r
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_RX600_E1_E20_SYSTEM_DefaultSession]\r
 [GENERAL_DATA_CONFIGURATION_SESSION_Debug_SessionRX600_E1_E20_SYSTEM]\r
-[GENERAL_DATA_CONFIGURATION_SESSION_Release_DefaultSession]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Debug_with_optimisation_DefaultSession]\r
+[GENERAL_DATA_CONFIGURATION_SESSION_Debug_with_optimisation_SessionRX600_E1_E20_SYSTEM]\r
 [GENERAL_DATA_SESSION_SessionRX600_E1_E20_SYSTEM]\r
 [END]\r
diff --git a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/Renesas-Files/hwsetup.c b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/Renesas-Files/hwsetup.c
new file mode 100644 (file)
index 0000000..59349ea
--- /dev/null
@@ -0,0 +1,115 @@
+/******************************************************************************\r
+* DISCLAIMER\r
+\r
+* This software is supplied by Renesas Technology Corp. and is only \r
+* intended for use with Renesas products. No other uses are authorized.\r
+\r
+* This software is owned by Renesas Technology Corp. and is protected under \r
+* all applicable laws, including copyright laws.\r
+\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES\r
+* REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, \r
+* INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A \r
+* PARTICULAR PURPOSE AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY \r
+* DISCLAIMED.\r
+\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* TECHNOLOGY CORP. NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES \r
+* FOR ANY REASON RELATED TO THE THIS SOFTWARE, EVEN IF RENESAS OR ITS \r
+* AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+\r
+* Renesas reserves the right, without notice, to make changes to this \r
+* software and to discontinue the availability of this software.  \r
+* By using this software, you agree to the additional terms and \r
+* conditions found by accessing the following link:\r
+* http://www.renesas.com/disclaimer\r
+******************************************************************************\r
+* Copyright (C) 2008. Renesas Technology Corp., All Rights Reserved.\r
+*******************************************************************************        \r
+* File Name    : hwsetup.c\r
+* Version        : 1.00\r
+* Description  : Power up hardware initializations\r
+******************************************************************************\r
+* History : DD.MM.YYYY Version Description\r
+*               : 15.02.2010 1.00      First Release\r
+******************************************************************************/\r
+\r
+\r
+/******************************************************************************\r
+Includes   <System Includes> , "Project Includes"\r
+******************************************************************************/\r
+#include "iodefine.h"\r
+#include "rskrx62ndef.h"\r
+// #include "lcd.h" Uncomment this if an LCD is present.\r
+\r
+/******************************************************************************\r
+Typedef definitions\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Macro definitions\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Imported global variables and functions (from other files)\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Exported global variables and functions (to be accessed by other files)\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Private global variables and functions\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+* Function Name: HardwareSetup\r
+* Description  : This function does initial setting for CPG port pins used in\r
+*                        : the Demo including the MII pins of the Ethernet PHY connection.\r
+* Arguments    : none\r
+* Return Value : none\r
+******************************************************************************/\r
+void HardwareSetup(void)\r
+{\r
+\r
+       unsigned long sckcr = 0;\r
+\r
+       /* Configure system clocks based on header */\r
+       sckcr += (ICLK_MUL==8) ? (0ul << 24) : (ICLK_MUL==4) ? (1ul << 24) : (ICLK_MUL==2) ? (2ul << 24) : (3ul << 24);\r
+       sckcr += (BCLK_MUL==8) ? (0ul << 16) : (BCLK_MUL==4) ? (1ul << 16) : (BCLK_MUL==2) ? (2ul << 16) : (3ul << 16);\r
+       sckcr += (PCLK_MUL==8) ? (0ul <<  8) : (PCLK_MUL==4) ? (1ul <<  8) : (PCLK_MUL==2) ? (2ul <<  8) : (3ul <<  8);\r
+       SYSTEM.SCKCR.LONG = sckcr;\r
+\r
+       /* Configure LED 0-5 pins as outputs */\r
+       LED0 = LED_OFF; \r
+       LED1 = LED_OFF;\r
+       LED2 = LED_OFF;\r
+       LED3 = LED_OFF;\r
+       LED4 = LED_OFF;\r
+       LED5 = LED_OFF;\r
+       LED0_DDR = 1; \r
+       LED1_DDR = 1;\r
+       LED2_DDR = 1;\r
+       LED3_DDR = 1;\r
+       LED4_DDR = 1;\r
+       LED5_DDR = 1;\r
+\r
+       /* Configure SW 1-3 pins as inputs */\r
+       SW1_DDR = 0;\r
+       SW2_DDR = 0;\r
+       SW3_DDR = 0;\r
+       SW1_ICR = 1;\r
+       SW2_ICR = 1;\r
+       SW3_ICR = 1;\r
+\r
+       \r
+       /* Configure LCD pins as outputs - uncomment this if an LCD is present.\r
+       LCD_RS_DDR = 1;\r
+       LCD_EN_DDR = 1;\r
+       LCD_DATA_DDR = 0xF0; */\r
+\r
+       /* Initialize display - uncomment this if an LCD is present.\r
+       InitialiseDisplay(); */\r
+}\r
+\r
index 05c3a1937a14a97e2340d02176b58814607b5e86..bdff17965a7e5c6cc12046bb155e3a569e53dd5d 100644 (file)
-/***********************************************************************/\r
-/*                                                                     */\r
-/*  FILE        :iodefine.h                                            */\r
-/*  DATE        :Wed, Aug 25, 2010                                     */\r
-/*  DESCRIPTION :Definition of I/O Register                            */\r
-/*  CPU TYPE    :Other                                                 */\r
-/*                                                                     */\r
-/*  This file is generated by KPIT GNU Project Generator.              */\r
-/*                                                                     */\r
-/***********************************************************************/\r
+/********************************************************************************/\r
+/*                                                                              */\r
+/* Summary    : Definition of I/O Register.                                     */\r
+/* Version    : V1.1  (2010-04-21)  [Hardware Manual Revision : 0.50]           */\r
+/* File Name  : iodefine.h for KPIT GNURX                                       */\r
+/* Device     : RX/RX600/RX62N                                                  */\r
+/*                                                                              */\r
+/*  Copyright(c) 2010 Renesas Electronics Corp.                                 */\r
+/*                  And Renesas Solutions Corp. ,All Rights Reserved.           */\r
+/*                                                                              */\r
+/********************************************************************************/\r
+/*                                                                              */\r
+/*  CPU TYPE    : RX62N                                                         */\r
+/*  DESCRIPTION : Definition of ICU Register                                    */\r
+/*                                                                              */\r
+/*  Usage : IR,DTCER,IER,IPR of ICU Register                                    */\r
+/*     The following IR, DTCE, IEN, IPR macro functions simplify usage.         */\r
+/*     The bit access operation is "Bit_Name(interrupt source,name)".           */\r
+/*     A part of the name can be omitted.                                       */\r
+/*       IR(MTU0,TGIA0) = 0;     expands to :                                   */\r
+/*     for example :                                                            */\r
+/*         ICU.IR[114].BIT.IR = 0;                                              */\r
+/*                                                                              */\r
+/*       DTCE(ICU,IRQ0) = 1;     expands to :                                   */\r
+/*         ICU.DTCER[64].BIT.DTCE = 1;                                          */\r
+/*                                                                              */\r
+/*       IEN(CMT0,CMI0) = 1;     expands to :                                   */\r
+/*         ICU.IER[0x03].BIT.IEN4 = 1;                                          */\r
+/*                                                                              */\r
+/*       IPR(MTU1,TGIA1) = 2;    expands to :                                   */\r
+/*       IPR(MTU1,TGI  ) = 2;    // TGIA1,TGIB1 share IPR level.                */\r
+/*         ICU.IPR[0x53].BIT.IPR = 2;                                           */\r
+/*                                                                              */\r
+/*       IPR(SCI0,ERI0) = 3;     expands to :                                   */\r
+/*       IPR(SCI0,    ) = 3;     // SCI0 uses single IPR for all sources.       */\r
+/*         ICU.IPR[0x80].BIT.IPR = 3;                                           */\r
+/*                                                                              */\r
+/*  Usage : #pragma interrupt Function_Identifier(vect=**)                      */\r
+/*     The number of vector is "(interrupt source, name)".                      */\r
+/*       #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0))          expands to :  */\r
+/*     for example :                                                            */\r
+/*       #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0))    expands to :  */\r
+/*       #pragma interrupt INT_MTU0_TGIA0(vect=VECT(MTU0,TGIA0))  expands to :  */\r
+/*                                                                              */\r
+/*  Usage : MSTPCRA,MSTPCRB,MSTPCRC of SYSTEM Register                          */\r
+/*     The bit access operation is "MSTP(name)".                                */\r
+/*     The name that can be used is a macro name defined with "iodefine.h".     */\r
+/*       MSTP(TMR2) = 0;    // TMR2,TMR3,TMR23                    expands to :  */\r
+/*     for example :                                                            */\r
+/*         SYSTEM.MSTPCRA.BIT.MSTPA4  = 0;                                      */\r
+/*       MSTP(SCI0) = 0;    // SCI0,SMCI0                         expands to :  */\r
+/*         SYSTEM.MSTPCRB.BIT.MSTPB31 = 0;                                      */\r
+/*       MSTP(MTU4) = 0;    // MTUA,MTU0,MTU1,MTU2,MTU3,MTU4,MTU5 expands to :  */\r
+/*         SYSTEM.MSTPCRA.BIT.MSTPA9  = 0;                                      */\r
+/*       MSTP(CMT3) = 0;    // CMT2,CMT3                          expands to :  */\r
+/*         SYSTEM.MSTPCRA.BIT.MSTPA14 = 0;                                      */\r
+/*                                                                              */\r
+/********************************************************************************/\r
+\r
+#ifndef IODEFINE_H \r
+#define IODEFINE_H\r
+\r
+#ifdef __RX_LITTLE_ENDIAN__            /*Little endian*/\r
+\r
+struct st_system {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MD0:1;\r
+            unsigned short MD1:1;\r
+            unsigned short :5;\r
+            unsigned short MDE:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } MDMONR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short IROM:1;\r
+            unsigned short EXB:1;\r
+            unsigned short BSW:2;\r
+            unsigned short BOTS:1;\r
+            unsigned short :1;\r
+            unsigned short UBTS:1;\r
+            unsigned short :9;\r
+        } BIT;\r
+    } MDSR;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ROME:1;\r
+            unsigned short EXBE:1;\r
+            unsigned short :6;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } SYSCR0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RAME:1;\r
+            unsigned short :15;\r
+        } BIT;\r
+    } SYSCR1;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short STS:5;\r
+            unsigned short :1;\r
+            unsigned short OPE:1;\r
+            unsigned short SSBY:1;\r
+        } BIT;\r
+    } SBYCR;\r
+    unsigned char wk2[2];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :4;\r
+            unsigned long MSTPA4:1;\r
+            unsigned long MSTPA5:1;\r
+            unsigned long :2;\r
+            unsigned long MSTPA8:1;\r
+            unsigned long MSTPA9:1;\r
+            unsigned long MSTPA10:1;\r
+            unsigned long MSTPA11:1;\r
+            unsigned long :2;\r
+            unsigned long MSTPA14:1;\r
+            unsigned long MSTPA15:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPA17:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPA19:1;\r
+            unsigned long :2;\r
+            unsigned long MSTPA22:1;\r
+            unsigned long MSTPA23:1;\r
+            unsigned long :4;\r
+            unsigned long MSTPA28:1;\r
+            unsigned long MSTPA29:1;\r
+            unsigned long :1;\r
+            unsigned long ACSE:1;\r
+        } BIT;\r
+    } MSTPCRA;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MSTPB0:1;\r
+            unsigned long :14;\r
+            unsigned long MSTPB15:1;\r
+            unsigned long MSTPB16:1;\r
+            unsigned long MSTPB17:1;\r
+            unsigned long MSTPB18:1;\r
+            unsigned long MSTPB19:1;\r
+            unsigned long MSTPB20:1;\r
+            unsigned long MSTPB21:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPB23:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPB25:1;\r
+            unsigned long MSTPB26:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPB28:1;\r
+            unsigned long MSTPB29:1;\r
+            unsigned long MSTPB30:1;\r
+            unsigned long MSTPB31:1;\r
+        } BIT;\r
+    } MSTPCRB;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MSTPC0:1;\r
+            unsigned long MSTPC1:1;\r
+            unsigned long :30;\r
+        } BIT;\r
+    } MSTPCRC;\r
+    unsigned char wk3[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :8;\r
+            unsigned long PCK:4;\r
+            unsigned long :4;\r
+            unsigned long BCK:4;\r
+            unsigned long :2;\r
+            unsigned long PSTOP0:1;\r
+            unsigned long PSTOP1:1;\r
+            unsigned long ICK:4;\r
+            unsigned long :4;\r
+        } BIT;\r
+    } SCKCR;\r
+    unsigned char wk4[12];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BCLKDIV:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } BCKCR;\r
+    unsigned char wk5[15];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short OSTDF:1;\r
+            unsigned short OSTDE:1;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } OSTDCR;\r
+    unsigned char wk6[49726];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RAMCUT0:1;\r
+            unsigned char :3;\r
+            unsigned char RAMCUT1:1;\r
+            unsigned char RAMCUT2:1;\r
+            unsigned char IOKEEP:1;\r
+            unsigned char DPSBY:1;\r
+        } BIT;\r
+    } DPSBYCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char WTSTS:6;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } DPSWCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DIRQ0E:1;\r
+            unsigned char DIRQ1E:1;\r
+            unsigned char DIRQ2E:1;\r
+            unsigned char DIRQ3E:1;\r
+            unsigned char DLVDE:1;\r
+            unsigned char DRTCE:1;\r
+            unsigned char DUSBE:1;\r
+            unsigned char DNMIE:1;\r
+        } BIT;\r
+    } DPSIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DIRQ0F:1;\r
+            unsigned char DIRQ1F:1;\r
+            unsigned char DIRQ2F:1;\r
+            unsigned char DIRQ3F:1;\r
+            unsigned char DLVDF:1;\r
+            unsigned char DRTCFF:1;\r
+            unsigned char DUSBF:1;\r
+            unsigned char DNMIF:1;\r
+        } BIT;\r
+    } DPSIFR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DIRQ0EG:1;\r
+            unsigned char DIRQ1EG:1;\r
+            unsigned char DIRQ2EG:1;\r
+            unsigned char DIRQ3EG:1;\r
+            unsigned char :3;\r
+            unsigned char DNMIEG:1;\r
+        } BIT;\r
+    } DPSIEGR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char PORF:1;\r
+            unsigned char LVD1F:1;\r
+            unsigned char LVD2F:1;\r
+            unsigned char :4;\r
+            unsigned char DPSRSTF:1;\r
+        } BIT;\r
+    } RSTSR;\r
+    unsigned char wk7[4];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SUBSTOP:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SUBOSCCR;\r
+    unsigned char wk8[1];\r
+    unsigned char LVDKEYR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char LVD1RI:1;\r
+            unsigned char LVD1E:1;\r
+            unsigned char :2;\r
+            unsigned char LVD2RI:1;\r
+            unsigned char LVD2E:1;\r
+        } BIT;\r
+    } LVDCR;\r
+    unsigned char wk9[2];\r
+    unsigned char DPSBKR[32];\r
+};\r
+\r
+struct st_bsc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char STSCLR:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } BERCLR;\r
+    unsigned char wk0[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IGAEN:1;\r
+            unsigned char TOEN:1;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } BEREN;\r
+    unsigned char wk1[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IA:1;\r
+            unsigned char TO:1;\r
+            unsigned char :2;\r
+            unsigned char MST:3;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } BERSR1;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :3;\r
+            unsigned short ADDR:13;\r
+        } BIT;\r
+    } BERSR2;\r
+    unsigned char wk3[7414];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS0MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS0WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS0WCR2;\r
+    unsigned char wk4[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS1MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS1WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS1WCR2;\r
+    unsigned char wk5[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS2MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS2WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS2WCR2;\r
+    unsigned char wk6[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS3MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS3WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS3WCR2;\r
+    unsigned char wk7[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS4MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS4WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS4WCR2;\r
+    unsigned char wk8[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS5MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS5WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS5WCR2;\r
+    unsigned char wk9[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS6MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS6WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS6WCR2;\r
+    unsigned char wk10[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short WRMOD:1;\r
+            unsigned short :2;\r
+            unsigned short EWENB:1;\r
+            unsigned short :4;\r
+            unsigned short PRENB:1;\r
+            unsigned short PWENB:1;\r
+            unsigned short :5;\r
+            unsigned short PRMOD:1;\r
+        } BIT;\r
+    } CS7MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSPWWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } CS7WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CSROFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :5;\r
+            unsigned long RDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } CS7WCR2;\r
+    unsigned char wk11[1926];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS0CR;\r
+    unsigned char wk12[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS0REC;\r
+    unsigned char wk13[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS1CR;\r
+    unsigned char wk14[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS1REC;\r
+    unsigned char wk15[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS2CR;\r
+    unsigned char wk16[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS2REC;\r
+    unsigned char wk17[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS3CR;\r
+    unsigned char wk18[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS3REC;\r
+    unsigned char wk19[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS4CR;\r
+    unsigned char wk20[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS4REC;\r
+    unsigned char wk21[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS5CR;\r
+    unsigned char wk22[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS5REC;\r
+    unsigned char wk23[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS6CR;\r
+    unsigned char wk24[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS6REC;\r
+    unsigned char wk25[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EXENB:1;\r
+            unsigned short :3;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :2;\r
+            unsigned short EMODE:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } CS7CR;\r
+    unsigned char wk26[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RRCV:4;\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } CS7REC;\r
+    unsigned char wk27[900];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EXENB:1;\r
+            unsigned char :3;\r
+            unsigned char BSIZE:2;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } SDCCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EMODE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SDCMOD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SDAMOD;\r
+    unsigned char wk28[13];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SFEN:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SDSELF;\r
+    unsigned char wk29[3];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RFC:12;\r
+            unsigned short REFW:4;\r
+        } BIT;\r
+    } SDRFCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RFEN:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SDRFEN;\r
+    unsigned char wk30[9];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char INIRQ:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SDICR;\r
+    unsigned char wk31[3];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ARFI:4;\r
+            unsigned short ARFC:4;\r
+            unsigned short PRC:3;\r
+            unsigned short :5;\r
+        } BIT;\r
+    } SDIR;\r
+    unsigned char wk32[26];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MXC:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } SDADR;\r
+    unsigned char wk33[3];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CL:3;\r
+            unsigned long :5;\r
+            unsigned long WR:1;\r
+            unsigned long RP:3;\r
+            unsigned long RCD:2;\r
+            unsigned long :2;\r
+            unsigned long RAS:3;\r
+            unsigned long :13;\r
+        } BIT;\r
+    } SDTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MR:15;\r
+            unsigned short :1;\r
+        } BIT;\r
+    } SDMOD;\r
+    unsigned char wk34[6];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MRSST:1;\r
+            unsigned char :2;\r
+            unsigned char INIST:1;\r
+            unsigned char SRFST:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } SDSR;\r
+};\r
+\r
+struct st_dmac0 {\r
+    void *DMSAR;\r
+    void *DMDAR;\r
+    unsigned long DMCRA;\r
+    unsigned short DMCRB;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DCTG:2;\r
+            unsigned short :6;\r
+            unsigned short SZ:2;\r
+            unsigned short :2;\r
+            unsigned short DTS:2;\r
+            unsigned short MD:2;\r
+        } BIT;\r
+    } DMTMD;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DARIE:1;\r
+            unsigned char SARIE:1;\r
+            unsigned char RPTIE:1;\r
+            unsigned char ESIE:1;\r
+            unsigned char DTIE:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DMINT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DARA:5;\r
+            unsigned short :1;\r
+            unsigned short DM:2;\r
+            unsigned short SARA:5;\r
+            unsigned short :1;\r
+            unsigned short SM:2;\r
+        } BIT;\r
+    } DMAMD;\r
+    unsigned char wk2[2];\r
+    unsigned long DMOFR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DTE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DMCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SWREQ:1;\r
+            unsigned char :3;\r
+            unsigned char CLRS:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DMREQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ESIF:1;\r
+            unsigned char :3;\r
+            unsigned char DTIF:1;\r
+            unsigned char :2;\r
+            unsigned char ACT:1;\r
+        } BIT;\r
+    } DMSTS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DISEL:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DMCSL;\r
+};\r
+\r
+struct st_dmac1 {\r
+    void *DMSAR;\r
+    void *DMDAR;\r
+    unsigned long DMCRA;\r
+    unsigned short DMCRB;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DCTG:2;\r
+            unsigned short :6;\r
+            unsigned short SZ:2;\r
+            unsigned short :2;\r
+            unsigned short DTS:2;\r
+            unsigned short MD:2;\r
+        } BIT;\r
+    } DMTMD;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DARIE:1;\r
+            unsigned char SARIE:1;\r
+            unsigned char RPTIE:1;\r
+            unsigned char ESIE:1;\r
+            unsigned char DTIE:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DMINT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DARA:5;\r
+            unsigned short :1;\r
+            unsigned short DM:2;\r
+            unsigned short SARA:5;\r
+            unsigned short :1;\r
+            unsigned short SM:2;\r
+        } BIT;\r
+    } DMAMD;\r
+    unsigned char wk2[6];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DTE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DMCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SWREQ:1;\r
+            unsigned char :3;\r
+            unsigned char CLRS:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DMREQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ESIF:1;\r
+            unsigned char :3;\r
+            unsigned char DTIF:1;\r
+            unsigned char :2;\r
+            unsigned char ACT:1;\r
+        } BIT;\r
+    } DMSTS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DISEL:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DMCSL;\r
+};\r
+\r
+struct st_dmac {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DMST:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DMAST;\r
+};\r
+\r
+struct st_dtc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char RRS:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DTCCR;\r
+    unsigned char wk0[3];\r
+    void *DTCVBR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SHORT:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DTCADMOD;\r
+    unsigned char wk1[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DTCST:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DTCST;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short VECN:8;\r
+            unsigned short :7;\r
+            unsigned short ACT:1;\r
+        } BIT;\r
+    } DTCSTS;\r
+};\r
+\r
+struct st_exdmac0 {\r
+    void *EDMSAR;\r
+    void *EDMDAR;\r
+    unsigned long EDMCRA;\r
+    unsigned short EDMCRB;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DCTG:2;\r
+            unsigned short :6;\r
+            unsigned short SZ:2;\r
+            unsigned short :2;\r
+            unsigned short DTS:2;\r
+            unsigned short MD:2;\r
+        } BIT;\r
+    } EDMTMD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char DACKW:1;\r
+            unsigned char DACKE:1;\r
+            unsigned char DACKS:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } EDMOMD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DARIE:1;\r
+            unsigned char SARIE:1;\r
+            unsigned char RPTIE:1;\r
+            unsigned char ESIE:1;\r
+            unsigned char DTIE:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } EDMINT;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long DARA:5;\r
+            unsigned long :1;\r
+            unsigned long DM:2;\r
+            unsigned long SARA:5;\r
+            unsigned long :1;\r
+            unsigned long SM:2;\r
+            unsigned long DIR:1;\r
+            unsigned long AMS:1;\r
+            unsigned long :14;\r
+        } BIT;\r
+    } EDMAMD;\r
+    unsigned long EDMOFR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DTE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } EDMCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SWREQ:1;\r
+            unsigned char :3;\r
+            unsigned char CLRS:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } EDMREQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ESIF:1;\r
+            unsigned char :3;\r
+            unsigned char DTIF:1;\r
+            unsigned char :2;\r
+            unsigned char ACT:1;\r
+        } BIT;\r
+    } EDMSTS;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DREQS:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } EDMRMD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EREQ:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } EDMERF;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char PREQ:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } EDMPRF;\r
+};\r
+\r
+struct st_exdmac {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DMST:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } EDMAST;\r
+    unsigned char wk0[479];\r
+    unsigned long CLSBR0;\r
+    unsigned long CLSBR1;\r
+    unsigned long CLSBR2;\r
+    unsigned long CLSBR3;\r
+    unsigned long CLSBR4;\r
+    unsigned long CLSBR5;\r
+    unsigned long CLSBR6;\r
+    unsigned long CLSBR7;\r
+};\r
+\r
+struct st_icu {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IR:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } IR[254];\r
+    unsigned char wk17[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DTCE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DTCER[254];\r
+    unsigned char wk47[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IEN0:1;\r
+            unsigned char IEN1:1;\r
+            unsigned char IEN2:1;\r
+            unsigned char IEN3:1;\r
+            unsigned char IEN4:1;\r
+            unsigned char IEN5:1;\r
+            unsigned char IEN6:1;\r
+            unsigned char IEN7:1;\r
+        } BIT;\r
+    } IER[32];\r
+    unsigned char wk50[192];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SWINT:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } SWINTR;\r
+    unsigned char wk51[15];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FVCT:8;\r
+            unsigned short :7;\r
+            unsigned short FIEN:1;\r
+        } BIT;\r
+    } FIR;\r
+    unsigned char wk52[14];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IPR:4;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } IPR[144];\r
+    unsigned char wk67[112];\r
+    unsigned char DMRSR0;\r
+    unsigned char wk68[3];\r
+    unsigned char DMRSR1;\r
+    unsigned char wk69[3];\r
+    unsigned char DMRSR2;\r
+    unsigned char wk70[3];\r
+    unsigned char DMRSR3;\r
+    unsigned char wk71[243];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char IRQMD:2;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } IRQCR[16];\r
+    unsigned char wk72[112];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NMIST:1;\r
+            unsigned char LVDST:1;\r
+            unsigned char OSTST:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } NMISR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NMIEN:1;\r
+            unsigned char LVDEN:1;\r
+            unsigned char OSTEN:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } NMIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NMICLR:1;\r
+            unsigned char :1;\r
+            unsigned char OSTCLR:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } NMICLR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char NMIMD:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } NMICR;\r
+};\r
+\r
+struct st_cmt {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short STR0:1;\r
+            unsigned short STR1:1;\r
+            unsigned short :14;\r
+        } BIT;\r
+    } CMSTR0;\r
+    unsigned char wk0[14];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short STR2:1;\r
+            unsigned short STR3:1;\r
+            unsigned short :14;\r
+        } BIT;\r
+    } CMSTR1;\r
+};\r
+\r
+struct st_cmt0 {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CKS:2;\r
+            unsigned short :4;\r
+            unsigned short CMIE:1;\r
+            unsigned short :9;\r
+        } BIT;\r
+    } CMCR;\r
+    unsigned short CMCNT;\r
+    unsigned short CMCOR;\r
+};\r
+\r
+union un_wdt {\r
+    struct {\r
+        union {\r
+            unsigned char BYTE;\r
+            struct {\r
+                unsigned char CKS:3;\r
+                unsigned char :2;\r
+                unsigned char TME:1;\r
+                unsigned char TMS:1;\r
+                unsigned char :1;\r
+            } BIT;\r
+        } TCSR;\r
+        unsigned char TCNT;\r
+        unsigned char wk0[1];\r
+        union {\r
+            unsigned char BYTE;\r
+            struct {\r
+                unsigned char :6;\r
+                unsigned char RSTE:1;\r
+                unsigned char WOVF:1;\r
+            } BIT;\r
+        } RSTCSR;\r
+    } READ;\r
+    struct {\r
+        unsigned short WINA;\r
+        unsigned short WINB;\r
+    } WRITE;\r
+};\r
+\r
+struct st_iwdt {\r
+    unsigned char IWDTRR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short TOPS:2;\r
+            unsigned short :2;\r
+            unsigned short CKS:4;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } IWDTCR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CNTVAL:14;\r
+            unsigned short UNDFF:1;\r
+            unsigned short :1;\r
+        } BIT;\r
+    } IWDTSR;\r
+};\r
+\r
+struct st_ad {\r
+    unsigned short ADDRA;\r
+    unsigned short ADDRB;\r
+    unsigned short ADDRC;\r
+    unsigned short ADDRD;\r
+    unsigned char wk0[8];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CH:4;\r
+            unsigned char :1;\r
+            unsigned char ADST:1;\r
+            unsigned char ADIE:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } ADCSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MODE:2;\r
+            unsigned char CKS:2;\r
+            unsigned char :1;\r
+            unsigned char TRGS:3;\r
+        } BIT;\r
+    } ADCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DPSEL:1;\r
+        } BIT;\r
+    } ADDPR;\r
+    unsigned char ADSSTR;\r
+    unsigned char wk1[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DIAG:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } ADDIAGR;\r
+};\r
+\r
+struct st_da {\r
+    unsigned short DADR0;\r
+    unsigned short DADR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char DAE:1;\r
+            unsigned char DAOE0:1;\r
+            unsigned char DAOE1:1;\r
+        } BIT;\r
+    } DACR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DPSEL:1;\r
+        } BIT;\r
+    } DADPR;\r
+};\r
+\r
+struct st_ppg0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G0CMS:2;\r
+            unsigned char G1CMS:2;\r
+            unsigned char G2CMS:2;\r
+            unsigned char G3CMS:2;\r
+        } BIT;\r
+    } PCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G0NOV:1;\r
+            unsigned char G1NOV:1;\r
+            unsigned char G2NOV:1;\r
+            unsigned char G3NOV:1;\r
+            unsigned char G0INV:1;\r
+            unsigned char G1INV:1;\r
+            unsigned char G2INV:1;\r
+            unsigned char G3INV:1;\r
+        } BIT;\r
+    } PMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER8:1;\r
+            unsigned char NDER9:1;\r
+            unsigned char NDER10:1;\r
+            unsigned char NDER11:1;\r
+            unsigned char NDER12:1;\r
+            unsigned char NDER13:1;\r
+            unsigned char NDER14:1;\r
+            unsigned char NDER15:1;\r
+        } BIT;\r
+    } NDERH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER0:1;\r
+            unsigned char NDER1:1;\r
+            unsigned char NDER2:1;\r
+            unsigned char NDER3:1;\r
+            unsigned char NDER4:1;\r
+            unsigned char NDER5:1;\r
+            unsigned char NDER6:1;\r
+            unsigned char NDER7:1;\r
+        } BIT;\r
+    } NDERL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD8:1;\r
+            unsigned char POD9:1;\r
+            unsigned char POD10:1;\r
+            unsigned char POD11:1;\r
+            unsigned char POD12:1;\r
+            unsigned char POD13:1;\r
+            unsigned char POD14:1;\r
+            unsigned char POD15:1;\r
+        } BIT;\r
+    } PODRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD0:1;\r
+            unsigned char POD1:1;\r
+            unsigned char POD2:1;\r
+            unsigned char POD3:1;\r
+            unsigned char POD4:1;\r
+            unsigned char POD5:1;\r
+            unsigned char POD6:1;\r
+            unsigned char POD7:1;\r
+        } BIT;\r
+    } PODRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR8:1;\r
+            unsigned char NDR9:1;\r
+            unsigned char NDR10:1;\r
+            unsigned char NDR11:1;\r
+            unsigned char NDR12:1;\r
+            unsigned char NDR13:1;\r
+            unsigned char NDR14:1;\r
+            unsigned char NDR15:1;\r
+        } BIT;\r
+    } NDRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR0:1;\r
+            unsigned char NDR1:1;\r
+            unsigned char NDR2:1;\r
+            unsigned char NDR3:1;\r
+            unsigned char NDR4:1;\r
+            unsigned char NDR5:1;\r
+            unsigned char NDR6:1;\r
+            unsigned char NDR7:1;\r
+        } BIT;\r
+    } NDRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR8:1;\r
+            unsigned char NDR9:1;\r
+            unsigned char NDR10:1;\r
+            unsigned char NDR11:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } NDRH2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR0:1;\r
+            unsigned char NDR1:1;\r
+            unsigned char NDR2:1;\r
+            unsigned char NDR3:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } NDRL2;\r
+};\r
+\r
+struct st_ppg1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char PTRSL:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } PTRSLR;\r
+    unsigned char wk0[5];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G0CMS:2;\r
+            unsigned char G1CMS:2;\r
+            unsigned char G2CMS:2;\r
+            unsigned char G3CMS:2;\r
+        } BIT;\r
+    } PCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G0NOV:1;\r
+            unsigned char G1NOV:1;\r
+            unsigned char G2NOV:1;\r
+            unsigned char G3NOV:1;\r
+            unsigned char G0INV:1;\r
+            unsigned char G1INV:1;\r
+            unsigned char G2INV:1;\r
+            unsigned char G3INV:1;\r
+        } BIT;\r
+    } PMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER24:1;\r
+            unsigned char NDER25:1;\r
+            unsigned char NDER26:1;\r
+            unsigned char NDER27:1;\r
+            unsigned char NDER28:1;\r
+            unsigned char NDER29:1;\r
+            unsigned char NDER30:1;\r
+            unsigned char NDER31:1;\r
+        } BIT;\r
+    } NDERH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER16:1;\r
+            unsigned char NDER17:1;\r
+            unsigned char NDER18:1;\r
+            unsigned char NDER19:1;\r
+            unsigned char NDER20:1;\r
+            unsigned char NDER21:1;\r
+            unsigned char NDER22:1;\r
+            unsigned char NDER23:1;\r
+        } BIT;\r
+    } NDERL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD24:1;\r
+            unsigned char POD25:1;\r
+            unsigned char POD26:1;\r
+            unsigned char POD27:1;\r
+            unsigned char POD28:1;\r
+            unsigned char POD29:1;\r
+            unsigned char POD30:1;\r
+            unsigned char POD31:1;\r
+        } BIT;\r
+    } PODRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD16:1;\r
+            unsigned char POD17:1;\r
+            unsigned char POD18:1;\r
+            unsigned char POD19:1;\r
+            unsigned char POD20:1;\r
+            unsigned char POD21:1;\r
+            unsigned char POD22:1;\r
+            unsigned char POD23:1;\r
+        } BIT;\r
+    } PODRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR24:1;\r
+            unsigned char NDR25:1;\r
+            unsigned char NDR26:1;\r
+            unsigned char NDR27:1;\r
+            unsigned char NDR28:1;\r
+            unsigned char NDR29:1;\r
+            unsigned char NDR30:1;\r
+            unsigned char NDR31:1;\r
+        } BIT;\r
+    } NDRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR16:1;\r
+            unsigned char NDR17:1;\r
+            unsigned char NDR18:1;\r
+            unsigned char NDR19:1;\r
+            unsigned char NDR20:1;\r
+            unsigned char NDR21:1;\r
+            unsigned char NDR22:1;\r
+            unsigned char NDR23:1;\r
+        } BIT;\r
+    } NDRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR24:1;\r
+            unsigned char NDR25:1;\r
+            unsigned char NDR26:1;\r
+            unsigned char NDR27:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } NDRH2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR16:1;\r
+            unsigned char NDR17:1;\r
+            unsigned char NDR18:1;\r
+            unsigned char NDR19:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } NDRL2;\r
+};\r
+\r
+struct st_tmr0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char CCLR:2;\r
+            unsigned char OVIE:1;\r
+            unsigned char CMIEA:1;\r
+            unsigned char CMIEB:1;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OSA:2;\r
+            unsigned char OSB:2;\r
+            unsigned char ADTE:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } TCSR;\r
+    unsigned char wk1[1];\r
+    unsigned char TCORA;\r
+    unsigned char wk2[1];\r
+    unsigned char TCORB;\r
+    unsigned char wk3[1];\r
+    unsigned char TCNT;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CKS:3;\r
+            unsigned char CSS:2;\r
+            unsigned char :2;\r
+            unsigned char TMRIS:1;\r
+        } BIT;\r
+    } TCCR;\r
+};\r
+\r
+struct st_tmr1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char CCLR:2;\r
+            unsigned char OVIE:1;\r
+            unsigned char CMIEA:1;\r
+            unsigned char CMIEB:1;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OSA:2;\r
+            unsigned char OSB:2;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } TCSR;\r
+    unsigned char wk1[1];\r
+    unsigned char TCORA;\r
+    unsigned char wk2[1];\r
+    unsigned char TCORB;\r
+    unsigned char wk3[1];\r
+    unsigned char TCNT;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CKS:3;\r
+            unsigned char CSS:2;\r
+            unsigned char :2;\r
+            unsigned char TMRIS:1;\r
+        } BIT;\r
+    } TCCR;\r
+};\r
+\r
+struct st_tmr01 {\r
+    unsigned short TCORA;\r
+    unsigned short TCORB;\r
+    unsigned short TCNT;\r
+    unsigned short TCCR;\r
+};\r
+\r
+struct st_sci {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CKS:2;\r
+            unsigned char MP:1;\r
+            unsigned char STOP:1;\r
+            unsigned char PM:1;\r
+            unsigned char PE:1;\r
+            unsigned char CHR:1;\r
+            unsigned char CM:1;\r
+        } BIT;\r
+    } SMR;\r
+    unsigned char BRR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CKE:2;\r
+            unsigned char TEIE:1;\r
+            unsigned char MPIE:1;\r
+            unsigned char RE:1;\r
+            unsigned char TE:1;\r
+            unsigned char RIE:1;\r
+            unsigned char TIE:1;\r
+        } BIT;\r
+    } SCR;\r
+    unsigned char TDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MPBT:1;\r
+            unsigned char MPB:1;\r
+            unsigned char TEND:1;\r
+            unsigned char PER:1;\r
+            unsigned char FER:1;\r
+            unsigned char ORER:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } SSR;\r
+    unsigned char RDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SMIF:1;\r
+            unsigned char :1;\r
+            unsigned char SINV:1;\r
+            unsigned char SDIR:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } SCMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ACS0:1;\r
+            unsigned char :3;\r
+            unsigned char ABCS:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } SEMR;\r
+};\r
+\r
+struct st_smci {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CKS:2;\r
+            unsigned char BCP:2;\r
+            unsigned char PM:1;\r
+            unsigned char PE:1;\r
+            unsigned char BLK:1;\r
+            unsigned char GM:1;\r
+        } BIT;\r
+    } SMR;\r
+    unsigned char BRR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CKE:2;\r
+            unsigned char TEIE:1;\r
+            unsigned char :1;\r
+            unsigned char RE:1;\r
+            unsigned char TE:1;\r
+            unsigned char RIE:1;\r
+            unsigned char TIE:1;\r
+        } BIT;\r
+    } SCR;\r
+    unsigned char TDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char TEND:1;\r
+            unsigned char PER:1;\r
+            unsigned char ERS:1;\r
+            unsigned char ORER:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } SSR;\r
+    unsigned char RDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SMIF:1;\r
+            unsigned char :1;\r
+            unsigned char SINV:1;\r
+            unsigned char SDIR:1;\r
+            unsigned char :3;\r
+            unsigned char BCP2:1;\r
+        } BIT;\r
+    } SCMR;\r
+};\r
+\r
+struct st_crc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char GPS:2;\r
+            unsigned char LMS:1;\r
+            unsigned char :4;\r
+            unsigned char DORCLR:1;\r
+        } BIT;\r
+    } CRCCR;\r
+    unsigned char CRCDIR;\r
+    unsigned short CRCDOR;\r
+};\r
+\r
+struct st_riic {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SDAI:1;\r
+            unsigned char SCLI:1;\r
+            unsigned char SDAO:1;\r
+            unsigned char SCLO:1;\r
+            unsigned char SOWP:1;\r
+            unsigned char CLO:1;\r
+            unsigned char IICRST:1;\r
+            unsigned char ICE:1;\r
+        } BIT;\r
+    } ICCR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char ST:1;\r
+            unsigned char RS:1;\r
+            unsigned char SP:1;\r
+            unsigned char :1;\r
+            unsigned char TRS:1;\r
+            unsigned char MST:1;\r
+            unsigned char BBSY:1;\r
+        } BIT;\r
+    } ICCR2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BC:3;\r
+            unsigned char BCWP:1;\r
+            unsigned char CKS:3;\r
+            unsigned char MTWP:1;\r
+        } BIT;\r
+    } ICMR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TMOS:1;\r
+            unsigned char TMOL:1;\r
+            unsigned char TMOH:1;\r
+            unsigned char :1;\r
+            unsigned char SDDL:3;\r
+            unsigned char DLCS:1;\r
+        } BIT;\r
+    } ICMR2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NF:2;\r
+            unsigned char ACKBR:1;\r
+            unsigned char ACKBT:1;\r
+            unsigned char ACKWP:1;\r
+            unsigned char RDRFS:1;\r
+            unsigned char WAIT:1;\r
+            unsigned char SMBS:1;\r
+        } BIT;\r
+    } ICMR3;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TMOE:1;\r
+            unsigned char MALE:1;\r
+            unsigned char NALE:1;\r
+            unsigned char SALE:1;\r
+            unsigned char NACKE:1;\r
+            unsigned char NFE:1;\r
+            unsigned char SCLE:1;\r
+            unsigned char FMPE:1;\r
+        } BIT;\r
+    } ICFER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SAR0E:1;\r
+            unsigned char SAR1E:1;\r
+            unsigned char SAR2E:1;\r
+            unsigned char GCAE:1;\r
+            unsigned char :1;\r
+            unsigned char DIDE:1;\r
+            unsigned char :1;\r
+            unsigned char HOAE:1;\r
+        } BIT;\r
+    } ICSER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TMOIE:1;\r
+            unsigned char ALIE:1;\r
+            unsigned char STIE:1;\r
+            unsigned char SPIE:1;\r
+            unsigned char NAKIE:1;\r
+            unsigned char RIE:1;\r
+            unsigned char TEIE:1;\r
+            unsigned char TIE:1;\r
+        } BIT;\r
+    } ICIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char AAS0:1;\r
+            unsigned char AAS1:1;\r
+            unsigned char AAS2:1;\r
+            unsigned char GCA:1;\r
+            unsigned char :1;\r
+            unsigned char DID:1;\r
+            unsigned char :1;\r
+            unsigned char HOA:1;\r
+        } BIT;\r
+    } ICSR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TMOF:1;\r
+            unsigned char AL:1;\r
+            unsigned char START:1;\r
+            unsigned char STOP:1;\r
+            unsigned char NACKF:1;\r
+            unsigned char RDRF:1;\r
+            unsigned char TEND:1;\r
+            unsigned char TDRE:1;\r
+        } BIT;\r
+    } ICSR2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SVA0:1;\r
+            unsigned char SVA:7;\r
+        } BIT;\r
+    } SARL0;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FS:1;\r
+            unsigned char SVA:2;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SARU0;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SVA0:1;\r
+            unsigned char SVA:7;\r
+        } BIT;\r
+    } SARL1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FS:1;\r
+            unsigned char SVA:2;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SARU1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SVA0:1;\r
+            unsigned char SVA:7;\r
+        } BIT;\r
+    } SARL2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FS:1;\r
+            unsigned char SVA:2;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SARU2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BRL:5;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } ICBRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BRH:5;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } ICBRH;\r
+    unsigned char ICDRT;\r
+    unsigned char ICDRR;\r
+};\r
+\r
+struct st_rspi {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPMS:1;\r
+            unsigned char TXMD:1;\r
+            unsigned char MODFEN:1;\r
+            unsigned char MSTR:1;\r
+            unsigned char SPEIE:1;\r
+            unsigned char SPTIE:1;\r
+            unsigned char SPE:1;\r
+            unsigned char SPRIE:1;\r
+        } BIT;\r
+    } SPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SSLP0:1;\r
+            unsigned char SSLP1:1;\r
+            unsigned char SSLP2:1;\r
+            unsigned char SSLP3:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } SSLP;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPLP:1;\r
+            unsigned char SPLP2:1;\r
+            unsigned char SPOM:1;\r
+            unsigned char :1;\r
+            unsigned char MOIFV:1;\r
+            unsigned char MOIFE:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } SPPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OVRF:1;\r
+            unsigned char IDLNF:1;\r
+            unsigned char MODF:1;\r
+            unsigned char PERF:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } SPSR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+    } SPDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPSLN:3;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SPSCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPCP:3;\r
+            unsigned char :1;\r
+            unsigned char SPECM:3;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } SPSSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPR0:1;\r
+            unsigned char SPR1:1;\r
+            unsigned char SPR2:1;\r
+            unsigned char SPR3:1;\r
+            unsigned char SPR4:1;\r
+            unsigned char SPR5:1;\r
+            unsigned char SPR6:1;\r
+            unsigned char SPR7:1;\r
+        } BIT;\r
+    } SPBR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPFC:2;\r
+            unsigned char SLSEL:2;\r
+            unsigned char SPRDTD:1;\r
+            unsigned char SPLW:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } SPDCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SCKDL:3;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SPCKD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SLNDL:3;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SSLND;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPNDL:3;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } SPND;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPPE:1;\r
+            unsigned char SPOE:1;\r
+            unsigned char SPIIE:1;\r
+            unsigned char PTE:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } SPCR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD3;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD4;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD5;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD6;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CPHA:1;\r
+            unsigned short CPOL:1;\r
+            unsigned short BRDV:2;\r
+            unsigned short SSLA:3;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SPB:4;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SCKDEN:1;\r
+        } BIT;\r
+    } SPCMD7;\r
+};\r
+\r
+struct st_mtu {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OE3B:1;\r
+            unsigned char OE4A:1;\r
+            unsigned char OE4B:1;\r
+            unsigned char OE3D:1;\r
+            unsigned char OE4C:1;\r
+            unsigned char OE4D:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } TOER;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char UF:1;\r
+            unsigned char VF:1;\r
+            unsigned char WF:1;\r
+            unsigned char FB:1;\r
+            unsigned char P:1;\r
+            unsigned char N:1;\r
+            unsigned char BCD:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } TGCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OLSP:1;\r
+            unsigned char OLSN:1;\r
+            unsigned char TOCS:1;\r
+            unsigned char TOCL:1;\r
+            unsigned char :2;\r
+            unsigned char PSYE:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } TOCR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OLS1P:1;\r
+            unsigned char OLS1N:1;\r
+            unsigned char OLS2P:1;\r
+            unsigned char OLS2N:1;\r
+            unsigned char OLS3P:1;\r
+            unsigned char OLS3N:1;\r
+            unsigned char BF:2;\r
+        } BIT;\r
+    } TOCR2;\r
+    unsigned char wk1[4];\r
+    unsigned short TCDR;\r
+    unsigned short TDDR;\r
+    unsigned char wk2[8];\r
+    unsigned short TCNTS;\r
+    unsigned short TCBR;\r
+    unsigned char wk3[12];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char T4VCOR:3;\r
+            unsigned char T4VEN:1;\r
+            unsigned char T3ACOR:3;\r
+            unsigned char T3AEN:1;\r
+        } BIT;\r
+    } TITCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char T4VCNT:3;\r
+            unsigned char :1;\r
+            unsigned char T3ACNT:3;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } TITCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BTE:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } TBTER;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TDRE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } TDER;\r
+    unsigned char wk5[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char OLS1P:1;\r
+            unsigned char OLS1N:1;\r
+            unsigned char OLS2P:1;\r
+            unsigned char OLS2N:1;\r
+            unsigned char OLS3P:1;\r
+            unsigned char OLS3N:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } TOLBR;\r
+    unsigned char wk6[41];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char WRE:1;\r
+            unsigned char :6;\r
+            unsigned char CCE:1;\r
+        } BIT;\r
+    } TWCR;\r
+    unsigned char wk7[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CST0:1;\r
+            unsigned char CST1:1;\r
+            unsigned char CST2:1;\r
+            unsigned char :3;\r
+            unsigned char CST3:1;\r
+            unsigned char CST4:1;\r
+        } BIT;\r
+    } TSTR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SYNC0:1;\r
+            unsigned char SYNC1:1;\r
+            unsigned char SYNC2:1;\r
+            unsigned char :3;\r
+            unsigned char SYNC3:1;\r
+            unsigned char SYNC4:1;\r
+        } BIT;\r
+    } TSYR;\r
+    unsigned char wk8[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RWE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } TRWER;\r
+};\r
+\r
+struct st_mtu0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MD:4;\r
+            unsigned char BFA:1;\r
+            unsigned char BFB:1;\r
+            unsigned char BFE:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } TMDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOA:4;\r
+            unsigned char IOB:4;\r
+        } BIT;\r
+    } TIORH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOC:4;\r
+            unsigned char IOD:4;\r
+        } BIT;\r
+    } TIORL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIEA:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEC:1;\r
+            unsigned char TGIED:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char :2;\r
+            unsigned char TTGE:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char TSR;\r
+    unsigned short TCNT;\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned short TGRC;\r
+    unsigned short TGRD;\r
+    unsigned char wk0[16];\r
+    unsigned short TGRE;\r
+    unsigned short TGRF;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIEE:1;\r
+            unsigned char TGIEF:1;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } TIER2;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTSA:1;\r
+            unsigned char TTSB:1;\r
+            unsigned char TTSE:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TBTM;\r
+};\r
+\r
+struct st_mtu1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MD:4;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } TMDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOA:4;\r
+            unsigned char IOB:4;\r
+        } BIT;\r
+    } TIOR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIEA:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char :2;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char :1;\r
+            unsigned char TTGE:1;\r
+        } BIT;\r
+    } TIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char TCFD:1;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned short TCNT;\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned char wk1[4];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char I1AE:1;\r
+            unsigned char I1BE:1;\r
+            unsigned char I2AE:1;\r
+            unsigned char I2BE:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } TICCR;\r
+};\r
+\r
+struct st_mtu2 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MD:4;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } TMDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOA:4;\r
+            unsigned char IOB:4;\r
+        } BIT;\r
+    } TIOR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIEA:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char :2;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char :1;\r
+            unsigned char TTGE:1;\r
+        } BIT;\r
+    } TIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char TCFD:1;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned short TCNT;\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+};\r
+\r
+struct st_mtu3 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MD:4;\r
+            unsigned char BFA:1;\r
+            unsigned char BFB:1;\r
+            unsigned char BFE:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } TMDR;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOA:4;\r
+            unsigned char IOB:4;\r
+        } BIT;\r
+    } TIORH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOC:4;\r
+            unsigned char IOD:4;\r
+        } BIT;\r
+    } TIORL;\r
+    unsigned char wk2[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIEA:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEC:1;\r
+            unsigned char TGIED:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char TTGE2:1;\r
+            unsigned char TTGE:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char wk3[7];\r
+    unsigned short TCNT;\r
+    unsigned char wk4[6];\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned char wk5[8];\r
+    unsigned short TGRC;\r
+    unsigned short TGRD;\r
+    unsigned char wk6[4];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char TCFD:1;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned char wk7[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTSA:1;\r
+            unsigned char TTSB:1;\r
+            unsigned char TTSE:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TBTM;\r
+};\r
+\r
+struct st_mtu4 {\r
+    unsigned char DMMY;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MD:4;\r
+            unsigned char BFA:1;\r
+            unsigned char BFB:1;\r
+            unsigned char BFE:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } TMDR;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOA:4;\r
+            unsigned char IOB:4;\r
+        } BIT;\r
+    } TIORH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOC:4;\r
+            unsigned char IOD:4;\r
+        } BIT;\r
+    } TIORL;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIEA:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEC:1;\r
+            unsigned char TGIED:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char TTGE2:1;\r
+            unsigned char TTGE:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char wk3[8];\r
+    unsigned short TCNT;\r
+    unsigned char wk4[8];\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned char wk5[8];\r
+    unsigned short TGRC;\r
+    unsigned short TGRD;\r
+    unsigned char wk6[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char TCFD:1;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned char wk7[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTSA:1;\r
+            unsigned char TTSB:1;\r
+            unsigned char TTSE:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TBTM;\r
+    unsigned char wk8[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ITB4VE:1;\r
+            unsigned short ITB3AE:1;\r
+            unsigned short ITA4VE:1;\r
+            unsigned short ITA3AE:1;\r
+            unsigned short DT4BE:1;\r
+            unsigned short UT4BE:1;\r
+            unsigned short DT4AE:1;\r
+            unsigned short UT4AE:1;\r
+            unsigned short :6;\r
+            unsigned short BF:2;\r
+        } BIT;\r
+    } TADCR;\r
+    unsigned char wk9[2];\r
+    unsigned short TADCORA;\r
+    unsigned short TADCORB;\r
+    unsigned short TADCOBRA;\r
+    unsigned short TADCOBRB;\r
+};\r
+\r
+struct st_mtu5 {\r
+    unsigned short TCNTU;\r
+    unsigned short TGRU;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCRU;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOC:5;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } TIORU;\r
+    unsigned char wk1[9];\r
+    unsigned short TCNTV;\r
+    unsigned short TGRV;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCRV;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOC:5;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } TIORV;\r
+    unsigned char wk2[9];\r
+    unsigned short TCNTW;\r
+    unsigned short TGRW;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TPSC:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char CCLR:3;\r
+        } BIT;\r
+    } TCRW;\r
+    unsigned char wk3[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOC:5;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } TIORW;\r
+    unsigned char wk4[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TGIE5W:1;\r
+            unsigned char TGIE5V:1;\r
+            unsigned char TGIE5U:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char wk5[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CSTW5:1;\r
+            unsigned char CSTV5:1;\r
+            unsigned char CSTU5:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TSTR;\r
+    unsigned char wk6[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CMPCLR5W:1;\r
+            unsigned char CMPCLR5V:1;\r
+            unsigned char CMPCLR5U:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TCNTCMPCLR;\r
+};\r
+\r
+struct st_poe {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short POE0M:2;\r
+            unsigned short POE1M:2;\r
+            unsigned short POE2M:2;\r
+            unsigned short POE3M:2;\r
+            unsigned short PIE1:1;\r
+            unsigned short :3;\r
+            unsigned short POE0F:1;\r
+            unsigned short POE1F:1;\r
+            unsigned short POE2F:1;\r
+            unsigned short POE3F:1;\r
+        } BIT;\r
+    } ICSR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short OIE1:1;\r
+            unsigned short OCE1:1;\r
+            unsigned short :5;\r
+            unsigned short OSF1:1;\r
+        } BIT;\r
+    } OCSR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short POE4M:2;\r
+            unsigned short POE5M:2;\r
+            unsigned short POE6M:2;\r
+            unsigned short POE7M:2;\r
+            unsigned short PIE2:1;\r
+            unsigned short :3;\r
+            unsigned short POE4F:1;\r
+            unsigned short POE5F:1;\r
+            unsigned short POE6F:1;\r
+            unsigned short POE7F:1;\r
+        } BIT;\r
+    } ICSR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short OIE2:1;\r
+            unsigned short OCE2:1;\r
+            unsigned short :5;\r
+            unsigned short OSF2:1;\r
+        } BIT;\r
+    } OCSR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short POE8M:2;\r
+            unsigned short :6;\r
+            unsigned short PIE3:1;\r
+            unsigned short POE8E:1;\r
+            unsigned short :2;\r
+            unsigned short POE8F:1;\r
+            unsigned short :3;\r
+        } BIT;\r
+    } ICSR3;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CH34HIZ:1;\r
+            unsigned char CH0HIZ:1;\r
+            unsigned char CH910HIZ:1;\r
+            unsigned char CH6HIZ:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } SPOER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char PE0ZE:1;\r
+            unsigned char PE1ZE:1;\r
+            unsigned char PE2ZE:1;\r
+            unsigned char PE3ZE:1;\r
+            unsigned char PE4ZE:1;\r
+            unsigned char PE5ZE:1;\r
+            unsigned char PE6ZE:1;\r
+            unsigned char PE7ZE:1;\r
+        } BIT;\r
+    } POECR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short P6CZE:1;\r
+            unsigned short P5CZE:1;\r
+            unsigned short P4CZE:1;\r
+            unsigned short :1;\r
+            unsigned short P3CZEB:1;\r
+            unsigned short P2CZEB:1;\r
+            unsigned short P1CZEB:1;\r
+            unsigned short :1;\r
+            unsigned short P3CZEA:1;\r
+            unsigned short P2CZEA:1;\r
+            unsigned short P1CZEA:1;\r
+            unsigned short :1;\r
+        } BIT;\r
+    } POECR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short POE9M:2;\r
+            unsigned short :6;\r
+            unsigned short PIE4:1;\r
+            unsigned short POE9E:1;\r
+            unsigned short :2;\r
+            unsigned short POE9F:1;\r
+            unsigned short :3;\r
+        } BIT;\r
+    } ICSR4;\r
+};\r
+\r
+struct st_s12ad {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EXTRG:1;\r
+            unsigned char TRGE:1;\r
+            unsigned char CKS:2;\r
+            unsigned char ADIE:1;\r
+            unsigned char :1;\r
+            unsigned char ADCS:1;\r
+            unsigned char ADST:1;\r
+        } BIT;\r
+    } ADCSR;\r
+    unsigned char wk0[3];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ANS:8;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } ADANS;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ADS:8;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } ADADS;\r
+    unsigned char wk2[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ADC:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } ADADC;\r
+    unsigned char wk3[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :5;\r
+            unsigned short ACE:1;\r
+            unsigned short :9;\r
+            unsigned short ADRFMT:1;\r
+        } BIT;\r
+    } ADCER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ADSTRS:4;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } ADSTRGR;\r
+    unsigned char wk4[15];\r
+    unsigned short ADDRA;\r
+    unsigned short ADDRB;\r
+    unsigned short ADDRC;\r
+    unsigned short ADDRD;\r
+    unsigned short ADDRE;\r
+    unsigned short ADDRF;\r
+    unsigned short ADDRG;\r
+    unsigned short ADDRH;\r
+};\r
+\r
+struct st_port0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port2 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port3 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port4 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port5 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port6 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port7 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port8 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port9 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_porta {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portb {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ODR;\r
+    unsigned char wk4[63];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portd {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_porte {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portf {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_portg {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B0:1;\r
+            unsigned char B1:1;\r
+            unsigned char B2:1;\r
+            unsigned char B3:1;\r
+            unsigned char B4:1;\r
+            unsigned char B5:1;\r
+            unsigned char B6:1;\r
+            unsigned char B7:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_ioport {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CS0E:1;\r
+            unsigned char CS1E:1;\r
+            unsigned char CS2E:1;\r
+            unsigned char CS3E:1;\r
+            unsigned char CS4E:1;\r
+            unsigned char CS5E:1;\r
+            unsigned char CS6E:1;\r
+            unsigned char CS7E:1;\r
+        } BIT;\r
+    } PF0CSE;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CS4S:2;\r
+            unsigned char CS5S:2;\r
+            unsigned char CS6S:2;\r
+            unsigned char CS7S:2;\r
+        } BIT;\r
+    } PF1CSS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CS0S:1;\r
+            unsigned char :1;\r
+            unsigned char CS1S:2;\r
+            unsigned char CS2S:2;\r
+            unsigned char CS3S:2;\r
+        } BIT;\r
+    } PF2CSS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char A16E:1;\r
+            unsigned char A17E:1;\r
+            unsigned char A18E:1;\r
+            unsigned char A19E:1;\r
+            unsigned char A20E:1;\r
+            unsigned char A21E:1;\r
+            unsigned char A22E:1;\r
+            unsigned char A23E:1;\r
+        } BIT;\r
+    } PF3BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ADRLE:2;\r
+            unsigned char A10E:1;\r
+            unsigned char A11E:1;\r
+            unsigned char A12E:1;\r
+            unsigned char A13E:1;\r
+            unsigned char A14E:1;\r
+            unsigned char A15E:1;\r
+        } BIT;\r
+    } PF4BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char ADRHMS:1;\r
+            unsigned char :2;\r
+            unsigned char DHE:1;\r
+            unsigned char DH32E:1;\r
+            unsigned char WR1BC1E:1;\r
+            unsigned char WR32BC32E:1;\r
+        } BIT;\r
+    } PF5BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char WAITS:2;\r
+            unsigned char :2;\r
+            unsigned char MDSDE:1;\r
+            unsigned char :1;\r
+            unsigned char DQM1E:1;\r
+            unsigned char SDCLKE:1;\r
+        } BIT;\r
+    } PF6BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char EDMA0S:2;\r
+            unsigned char EDMA1S:2;\r
+        } BIT;\r
+    } PF7DMA;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ITS8:1;\r
+            unsigned char ITS9:1;\r
+            unsigned char ITS10:1;\r
+            unsigned char ITS11:1;\r
+            unsigned char :1;\r
+            unsigned char ITS13:1;\r
+            unsigned char :1;\r
+            unsigned char ITS15:1;\r
+        } BIT;\r
+    } PF8IRQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ITS0:1;\r
+            unsigned char ITS1:1;\r
+            unsigned char ITS2:1;\r
+            unsigned char ITS3:1;\r
+            unsigned char ITS4:1;\r
+            unsigned char ITS5:1;\r
+            unsigned char ITS6:1;\r
+            unsigned char ITS7:1;\r
+        } BIT;\r
+    } PF9IRQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ADTRG0S:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } PFAADC;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char TMR2S:1;\r
+            unsigned char TMR3S:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } PFBTMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MTUS0:1;\r
+            unsigned char MTUS1:1;\r
+            unsigned char MTUS2:1;\r
+            unsigned char MTUS3:1;\r
+            unsigned char MTUS4:1;\r
+            unsigned char MTUS5:1;\r
+            unsigned char MTUS6:1;\r
+            unsigned char TCLKS:1;\r
+        } BIT;\r
+    } PFCMTU;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char MTUS6:1;\r
+            unsigned char TCLKS:1;\r
+        } BIT;\r
+    } PFDMTU;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENETE0:1;\r
+            unsigned char ENETE1:1;\r
+            unsigned char ENETE2:1;\r
+            unsigned char ENETE3:1;\r
+            unsigned char PHYMODE:1;\r
+            unsigned char :2;\r
+            unsigned char EE:1;\r
+        } BIT;\r
+    } PFENET;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char SCI1S:1;\r
+            unsigned char SCI2S:1;\r
+            unsigned char SCI3S:1;\r
+            unsigned char :2;\r
+            unsigned char SCI6S:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } PFFSCI;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RSPIS:1;\r
+            unsigned char RSPCKE:1;\r
+            unsigned char MOSIE:1;\r
+            unsigned char MISOE:1;\r
+            unsigned char SSL0E:1;\r
+            unsigned char SSL1E:1;\r
+            unsigned char SSL2E:1;\r
+            unsigned char SSL3E:1;\r
+        } BIT;\r
+    } PFGSPI;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RSPIS:1;\r
+            unsigned char RSPCKE:1;\r
+            unsigned char MOSIE:1;\r
+            unsigned char MISOE:1;\r
+            unsigned char SSL0E:1;\r
+            unsigned char SSL1E:1;\r
+            unsigned char SSL2E:1;\r
+            unsigned char SSL3E:1;\r
+        } BIT;\r
+    } PFHSPI;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CAN0E:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } PFJCAN;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char USBMD:2;\r
+            unsigned char PUPHZS:1;\r
+            unsigned char PDHZS:1;\r
+            unsigned char USBE:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } PFKUSB;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char USBMD:2;\r
+            unsigned char PUPHZS:1;\r
+            unsigned char PDHZS:1;\r
+            unsigned char USBE:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } PFLUSB;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POE0E:1;\r
+            unsigned char POE1E:1;\r
+            unsigned char POE2E:1;\r
+            unsigned char POE3E:1;\r
+            unsigned char POE4E:1;\r
+            unsigned char POE5E:1;\r
+            unsigned char POE6E:1;\r
+            unsigned char POE7E:1;\r
+        } BIT;\r
+    } PFMPOE;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POE8E:1;\r
+            unsigned char POE9E:1;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } PFNPOE;\r
+};\r
+\r
+struct st_flash {\r
+    unsigned char DMMY;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FLWE:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } FWEPROR;\r
+    unsigned char wk0[7799160];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char FRDMD:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } FMODR;\r
+    unsigned char wk1[13];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DFLWPE:1;\r
+            unsigned char DFLRPE:1;\r
+            unsigned char :1;\r
+            unsigned char DFLAE:1;\r
+            unsigned char CMDLK:1;\r
+            unsigned char :2;\r
+            unsigned char ROMAE:1;\r
+        } BIT;\r
+    } FASTAT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DFLWPEIE:1;\r
+            unsigned char DFLRPEIE:1;\r
+            unsigned char :1;\r
+            unsigned char DFLAEIE:1;\r
+            unsigned char CMDLKIE:1;\r
+            unsigned char :2;\r
+            unsigned char ROMAEIE:1;\r
+        } BIT;\r
+    } FAEINT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FRDYIE:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } FRDYIE;\r
+    unsigned char wk2[45];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DBRE00:1;\r
+            unsigned short DBRE01:1;\r
+            unsigned short DBRE02:1;\r
+            unsigned short DBRE03:1;\r
+            unsigned short DBRE04:1;\r
+            unsigned short DBRE05:1;\r
+            unsigned short DBRE06:1;\r
+            unsigned short DBRE07:1;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } DFLRE0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DBRE08:1;\r
+            unsigned short DBRE09:1;\r
+            unsigned short DBRE10:1;\r
+            unsigned short DBRE11:1;\r
+            unsigned short DBRE12:1;\r
+            unsigned short DBRE13:1;\r
+            unsigned short DBRE14:1;\r
+            unsigned short DBRE15:1;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } DFLRE1;\r
+    unsigned char wk3[12];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DBWE00:1;\r
+            unsigned short DBWE01:1;\r
+            unsigned short DBWE02:1;\r
+            unsigned short DBWE03:1;\r
+            unsigned short DBWE04:1;\r
+            unsigned short DBWE05:1;\r
+            unsigned short DBWE06:1;\r
+            unsigned short DBWE07:1;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } DFLWE0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DBWE08:1;\r
+            unsigned short DBWE09:1;\r
+            unsigned short DBWE10:1;\r
+            unsigned short DBWE11:1;\r
+            unsigned short DBWE12:1;\r
+            unsigned short DBWE13:1;\r
+            unsigned short DBWE14:1;\r
+            unsigned short DBWE15:1;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } DFLWE1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FCRME:1;\r
+            unsigned short :7;\r
+            unsigned short KEY:8;\r
+        } BIT;\r
+    } FCURAME;\r
+    unsigned char wk4[15194];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char PRGSPD:1;\r
+            unsigned char ERSSPD:1;\r
+            unsigned char :1;\r
+            unsigned char SUSRDY:1;\r
+            unsigned char PRGERR:1;\r
+            unsigned char ERSERR:1;\r
+            unsigned char ILGLERR:1;\r
+            unsigned char FRDY:1;\r
+        } BIT;\r
+    } FSTATR0;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char FLOCKST:1;\r
+            unsigned char :2;\r
+            unsigned char FCUERR:1;\r
+        } BIT;\r
+    } FSTATR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FENTRY0:1;\r
+            unsigned short :6;\r
+            unsigned short FENTRYD:1;\r
+            unsigned short FEKEY:8;\r
+        } BIT;\r
+    } FENTRYR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FPROTCN:1;\r
+            unsigned short :7;\r
+            unsigned short FPKEY:8;\r
+        } BIT;\r
+    } FPROTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FRESET:1;\r
+            unsigned short :7;\r
+            unsigned short FPKEY:8;\r
+        } BIT;\r
+    } FRESETR;\r
+    unsigned char wk5[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PCMDR:8;\r
+            unsigned short CMDR:8;\r
+        } BIT;\r
+    } FCMDR;\r
+    unsigned char wk6[12];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ESUSPMD:1;\r
+            unsigned short :15;\r
+        } BIT;\r
+    } FCPSR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BCSIZE:1;\r
+            unsigned short :2;\r
+            unsigned short BCADR:8;\r
+            unsigned short :5;\r
+        } BIT;\r
+    } DFLBCCNT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PEERRST:8;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } FPESTAT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BCST:1;\r
+            unsigned short :15;\r
+        } BIT;\r
+    } DFLBCSTAT;\r
+    unsigned char wk7[24];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PCKA:8;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } PCKAR;\r
+};\r
+\r
+struct st_rtc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char F1HZ:1;\r
+            unsigned char F2HZ:1;\r
+            unsigned char F4HZ:1;\r
+            unsigned char F8HZ:1;\r
+            unsigned char F16HZ:1;\r
+            unsigned char F32HZ:1;\r
+            unsigned char F64HZ:1;\r
+        } BIT;\r
+    } R64CNT;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SEC1:4;\r
+            unsigned char SEC10:3;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } RSECCNT;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MIN1:4;\r
+            unsigned char MIN10:3;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } RMINCNT;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char HOUR1:4;\r
+            unsigned char HOUR10:2;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } RHRCNT;\r
+    unsigned char wk3[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DAY:3;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } RWKCNT;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DAY1:4;\r
+            unsigned char DAY10:2;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } RDAYCNT;\r
+    unsigned char wk5[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MON1:4;\r
+            unsigned char MON10:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } RMONCNT;\r
+    unsigned char wk6[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short YEAR1:4;\r
+            unsigned short YEAR10:4;\r
+            unsigned short YEAR100:4;\r
+            unsigned short YEAR1000:4;\r
+        } BIT;\r
+    } RYRCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SEC1:4;\r
+            unsigned char SEC10:3;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RSECAR;\r
+    unsigned char wk7[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MIN1:4;\r
+            unsigned char MIN10:3;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RMINAR;\r
+    unsigned char wk8[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char HOUR1:4;\r
+            unsigned char HOUR10:2;\r
+            unsigned char :1;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RHRAR;\r
+    unsigned char wk9[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DAY:3;\r
+            unsigned char :4;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RWKAR;\r
+    unsigned char wk10[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DAY1:4;\r
+            unsigned char DAY10:2;\r
+            unsigned char :1;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RDAYAR;\r
+    unsigned char wk11[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MON1:4;\r
+            unsigned char MON10:1;\r
+            unsigned char :2;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RMONAR;\r
+    unsigned char wk12[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short YEAR1:4;\r
+            unsigned short YEAR10:4;\r
+            unsigned short YEAR100:4;\r
+            unsigned short YEAR1000:4;\r
+        } BIT;\r
+    } RYRAR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char ENB:1;\r
+        } BIT;\r
+    } RYRAREN;\r
+    unsigned char wk13[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char AIE:1;\r
+            unsigned char CIE:1;\r
+            unsigned char PIE:1;\r
+            unsigned char :1;\r
+            unsigned char PES:3;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } RCR1;\r
+    unsigned char wk14[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char START:1;\r
+            unsigned char RESET:1;\r
+            unsigned char ADJ:1;\r
+            unsigned char RTCOE:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } RCR2;\r
+};\r
+\r
+struct st_can {\r
+    struct {\r
+        union {\r
+            unsigned long LONG;\r
+            union {\r
+                unsigned short H;\r
+                unsigned short L;\r
+            } WORD;\r
+            struct {\r
+                unsigned char HH;\r
+                unsigned char HL;\r
+                unsigned char LH;\r
+                unsigned char LL;\r
+            } BYTE;\r
+            struct {\r
+                unsigned long EID:18;\r
+                unsigned long SID:11;\r
+                unsigned long :1;\r
+                unsigned long RTR:1;\r
+                unsigned long IDE:1;\r
+            } BIT;\r
+        } ID;\r
+        union {\r
+            unsigned short WORD;\r
+            struct {\r
+                unsigned char DLC:4;\r
+                unsigned char :4;\r
+                unsigned char :8;\r
+            } BIT;\r
+        } DLC;\r
+        unsigned char DATA[8];\r
+        union{ \r
+            unsigned short WORD;\r
+            struct {\r
+                unsigned char TSH;\r
+                unsigned char TSL;\r
+            } BYTE;\r
+        } TS;\r
+    } MB[32];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long EID:18;\r
+            unsigned long SID:11;\r
+            unsigned long :3;\r
+        } BIT;\r
+    } MKR[8];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long EID:18;\r
+            unsigned long SID:11;\r
+            unsigned long :1;\r
+            unsigned long RTR:1;\r
+            unsigned long IDE:1;\r
+        } BIT;\r
+    } FIDCR0;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long EID:18;\r
+            unsigned long SID:11;\r
+            unsigned long :1;\r
+            unsigned long RTR:1;\r
+            unsigned long IDE:1;\r
+        } BIT;\r
+    } FIDCR1;\r
+    unsigned long MKIVLR;\r
+    unsigned long MIER;\r
+    unsigned char wk32[1008];\r
+    union {\r
+        unsigned char BYTE;\r
+        union {\r
+            struct {\r
+                unsigned char SENTDATA:1;\r
+                unsigned char TRMACTIVE:1;\r
+                unsigned char TRMABT:1;\r
+                unsigned char :1;\r
+                unsigned char ONESHOT:1;\r
+                unsigned char :1;\r
+                unsigned char RECREQ:1;\r
+                unsigned char TRMREQ:1;\r
+            } TX;\r
+            struct {\r
+                unsigned char NEWDATA:1;\r
+                unsigned char INVALDATA:1;\r
+                unsigned char MSGLOST:1;\r
+                unsigned char :1;\r
+                unsigned char ONESHOT:1;\r
+                unsigned char :1;\r
+                unsigned char RECREQ:1;\r
+                unsigned char TRMREQ:1;\r
+            } RX;\r
+        } BIT;\r
+    } MCTL[32];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char H;\r
+            unsigned char L;\r
+        } BYTE;\r
+        struct {\r
+            unsigned char MBM:1;\r
+            unsigned char IDFM:2;\r
+            unsigned char MLM:1;\r
+            unsigned char TPM:1;\r
+            unsigned char TSRC:1;\r
+            unsigned char TSPS:2;\r
+            unsigned char CANM:2;\r
+            unsigned char SLPM:1;\r
+            unsigned char BOM:2;\r
+            unsigned char RBOC:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } CTLR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char H;\r
+            unsigned char L;\r
+        } BYTE;\r
+        struct {\r
+            unsigned char NDST:1;\r
+            unsigned char SDST:1;\r
+            unsigned char RFST:1;\r
+            unsigned char TFST:1;\r
+            unsigned char NMLST:1;\r
+            unsigned char FMLST:1;\r
+            unsigned char TABST:1;\r
+            unsigned char EST:1;\r
+            unsigned char RSTST:1;\r
+            unsigned char HLTST:1;\r
+            unsigned char SLPST:1;\r
+            unsigned char EPST:1;\r
+            unsigned char BOST:1;\r
+            unsigned char TRMST:1;\r
+            unsigned char RECST:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } STR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long :8;\r
+            unsigned long TSEG2:3;\r
+            unsigned long :1;\r
+            unsigned long SJW:2;\r
+            unsigned long :2;\r
+            unsigned long BRP:10;\r
+            unsigned long :2;\r
+            unsigned long TSEG1:4;\r
+        } BIT;\r
+    } BCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RFE:1;\r
+            unsigned char RFUST:3;\r
+            unsigned char RFMLF:1;\r
+            unsigned char RFFST:1;\r
+            unsigned char RFWST:1;\r
+            unsigned char RFEST:1;\r
+        } BIT;\r
+    } RFCR;\r
+    unsigned char RFPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TFE:1;\r
+            unsigned char TFUST:3;\r
+            unsigned char :2;\r
+            unsigned char TFFST:1;\r
+            unsigned char TFEST:1;\r
+        } BIT;\r
+    } TFCR;\r
+    unsigned char TFPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BEIE:1;\r
+            unsigned char EWIE:1;\r
+            unsigned char EPIE:1;\r
+            unsigned char BOEIE:1;\r
+            unsigned char BORIE:1;\r
+            unsigned char ORIE:1;\r
+            unsigned char OLIE:1;\r
+            unsigned char BLIE:1;\r
+        } BIT;\r
+    } EIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BEIF:1;\r
+            unsigned char EWIF:1;\r
+            unsigned char EPIF:1;\r
+            unsigned char BOEIF:1;\r
+            unsigned char BORIF:1;\r
+            unsigned char ORIF:1;\r
+            unsigned char OLIF:1;\r
+            unsigned char BLIF:1;\r
+        } BIT;\r
+    } EIFR;\r
+    unsigned char RECR;\r
+    unsigned char TECR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SEF:1;\r
+            unsigned char FEF:1;\r
+            unsigned char AEF:1;\r
+            unsigned char CEF:1;\r
+            unsigned char BE1F:1;\r
+            unsigned char BE0F:1;\r
+            unsigned char ADEF:1;\r
+            unsigned char EDPM:1;\r
+        } BIT;\r
+    } ECSR;\r
+    unsigned char CSSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MBNST:5;\r
+            unsigned char :2;\r
+            unsigned char SEST:1;\r
+        } BIT;\r
+    } MSSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MBSM:2;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } MSMR;\r
+    unsigned short TSR;\r
+    unsigned short AFSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TSTE:1;\r
+            unsigned char TSTM:2;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } TCR;\r
+};\r
+\r
+struct st_usb0 {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short USBE:1;\r
+            unsigned short :3;\r
+            unsigned short DPRPU:1;\r
+            unsigned short DRPD:1;\r
+            unsigned short DCFM:1;\r
+            unsigned short :3;\r
+            unsigned short SCKE:1;\r
+            unsigned short :5;\r
+        } BIT;\r
+    } SYSCFG;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short LNST:2;\r
+            unsigned short IDMON:1;\r
+            unsigned short :3;\r
+            unsigned short HTACT:1;\r
+            unsigned short :7;\r
+            unsigned short OVCMON:2;\r
+        } BIT;\r
+    } SYSSTS0;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RHST:3;\r
+            unsigned short :1;\r
+            unsigned short UACT:1;\r
+            unsigned short RESUME:1;\r
+            unsigned short USBRST:1;\r
+            unsigned short RWUPE:1;\r
+            unsigned short WKUP:1;\r
+            unsigned short VBUSEN:1;\r
+            unsigned short EXICEN:1;\r
+            unsigned short HNPBTOA:1;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } DVSTCTR0;\r
+    unsigned char wk2[10];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char L;\r
+            unsigned char H;\r
+        } BYTE;\r
+    } CFIFO;\r
+    unsigned char wk3[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char L;\r
+            unsigned char H;\r
+        } BYTE;\r
+    } D0FIFO;\r
+    unsigned char wk4[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char L;\r
+            unsigned char H;\r
+        } BYTE;\r
+    } D1FIFO;\r
+    unsigned char wk5[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CURPIPE:4;\r
+            unsigned short :1;\r
+            unsigned short ISEL:1;\r
+            unsigned short :2;\r
+            unsigned short BIGEND:1;\r
+            unsigned short :1;\r
+            unsigned short MBW:1;\r
+            unsigned short :3;\r
+            unsigned short REW:1;\r
+            unsigned short RCNT:1;\r
+        } BIT;\r
+    } CFIFOSEL;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DTLN:8;\r
+            unsigned short TLN:1;\r
+            unsigned short :4;\r
+            unsigned short FRDY:1;\r
+            unsigned short BCLR:1;\r
+            unsigned short BVAL:1;\r
+        } BIT;\r
+    } CFIFOCTR;\r
+    unsigned char wk6[4];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CURPIPE:4;\r
+            unsigned short :4;\r
+            unsigned short BIGEND:1;\r
+            unsigned short :1;\r
+            unsigned short MBW:1;\r
+            unsigned short :1;\r
+            unsigned short DREQE:1;\r
+            unsigned short DCLRM:1;\r
+            unsigned short REW:1;\r
+            unsigned short RCNT:1;\r
+        } BIT;\r
+    } D0FIFOSEL;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DTLN:8;\r
+            unsigned short TLN:1;\r
+            unsigned short :4;\r
+            unsigned short FRDY:1;\r
+            unsigned short BCLR:1;\r
+            unsigned short BVAL:1;\r
+        } BIT;\r
+    } D0FIFOCTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CURPIPE:4;\r
+            unsigned short :4;\r
+            unsigned short BIGEND:1;\r
+            unsigned short :1;\r
+            unsigned short MBW:1;\r
+            unsigned short :1;\r
+            unsigned short DREQE:1;\r
+            unsigned short DCLRM:1;\r
+            unsigned short REW:1;\r
+            unsigned short RCNT:1;\r
+        } BIT;\r
+    } D1FIFOSEL;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DTLN:8;\r
+            unsigned short TLN:1;\r
+            unsigned short :4;\r
+            unsigned short FRDY:1;\r
+            unsigned short BCLR:1;\r
+            unsigned short BVAL:1;\r
+        } BIT;\r
+    } D1FIFOCTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short BRDYE:1;\r
+            unsigned short NRDYE:1;\r
+            unsigned short BEMPE:1;\r
+            unsigned short CTRE:1;\r
+            unsigned short DVSE:1;\r
+            unsigned short SOFE:1;\r
+            unsigned short RSME:1;\r
+            unsigned short VBSE:1;\r
+        } BIT;\r
+    } INTENB0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short SACKE:1;\r
+            unsigned short SIGNE:1;\r
+            unsigned short EOFERRE:1;\r
+            unsigned short :4;\r
+            unsigned short ATTCHE:1;\r
+            unsigned short DTCHE:1;\r
+            unsigned short :1;\r
+            unsigned short BCHGE:1;\r
+            unsigned short OVRCRE:1;\r
+        } BIT;\r
+    } INTENB1;\r
+    unsigned char wk7[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPE0BRDYE:1;\r
+            unsigned short PIPE1BRDYE:1;\r
+            unsigned short PIPE2BRDYE:1;\r
+            unsigned short PIPE3BRDYE:1;\r
+            unsigned short PIPE4BRDYE:1;\r
+            unsigned short PIPE5BRDYE:1;\r
+            unsigned short PIPE6BRDYE:1;\r
+            unsigned short PIPE7BRDYE:1;\r
+            unsigned short PIPE8BRDYE:1;\r
+            unsigned short PIPE9BRDYE:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } BRDYENB;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPE0BRDYE:1;\r
+            unsigned short PIPE1BRDYE:1;\r
+            unsigned short PIPE2BRDYE:1;\r
+            unsigned short PIPE3BRDYE:1;\r
+            unsigned short PIPE4BRDYE:1;\r
+            unsigned short PIPE5BRDYE:1;\r
+            unsigned short PIPE6BRDYE:1;\r
+            unsigned short PIPE7BRDYE:1;\r
+            unsigned short PIPE8BRDYE:1;\r
+            unsigned short PIPE9BRDYE:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } NRDYENB;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPE0BEMPE:1;\r
+            unsigned short PIPE1BEMPE:1;\r
+            unsigned short PIPE2BEMPE:1;\r
+            unsigned short PIPE3BEMPE:1;\r
+            unsigned short PIPE4BEMPE:1;\r
+            unsigned short PIPE5BEMPE:1;\r
+            unsigned short PIPE6BEMPE:1;\r
+            unsigned short PIPE7BEMPE:1;\r
+            unsigned short PIPE8BEMPE:1;\r
+            unsigned short PIPE9BEMPE:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } BEMPENB;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short EDGESTS:1;\r
+            unsigned short :1;\r
+            unsigned short BRDYM:1;\r
+            unsigned short :1;\r
+            unsigned short TRNENSEL:1;\r
+            unsigned short :7;\r
+        } BIT;\r
+    } SOFCFG;\r
+    unsigned char wk8[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CTSQ:3;\r
+            unsigned short VALID:1;\r
+            unsigned short DVSQ:3;\r
+            unsigned short VBSTS:1;\r
+            unsigned short BRDY:1;\r
+            unsigned short NRDY:1;\r
+            unsigned short BEMP:1;\r
+            unsigned short CTRT:1;\r
+            unsigned short DVST:1;\r
+            unsigned short SOFR:1;\r
+            unsigned short RESM:1;\r
+            unsigned short VBINT:1;\r
+        } BIT;\r
+    } INTSTS0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short SACK:1;\r
+            unsigned short SIGN:1;\r
+            unsigned short EOFERR:1;\r
+            unsigned short :4;\r
+            unsigned short ATTCH:1;\r
+            unsigned short DTCH:1;\r
+            unsigned short :1;\r
+            unsigned short BCHG:1;\r
+            unsigned short OVRCR:1;\r
+        } BIT;\r
+    } INTSTS1;\r
+    unsigned char wk9[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPE0BRDY:1;\r
+            unsigned short PIPE1BRDY:1;\r
+            unsigned short PIPE2BRDY:1;\r
+            unsigned short PIPE3BRDY:1;\r
+            unsigned short PIPE4BRDY:1;\r
+            unsigned short PIPE5BRDY:1;\r
+            unsigned short PIPE6BRDY:1;\r
+            unsigned short PIPE7BRDY:1;\r
+            unsigned short PIPE8BRDY:1;\r
+            unsigned short PIPE9BRDY:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } BRDYSTS;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPE0BRDY:1;\r
+            unsigned short PIPE1BRDY:1;\r
+            unsigned short PIPE2BRDY:1;\r
+            unsigned short PIPE3BRDY:1;\r
+            unsigned short PIPE4BRDY:1;\r
+            unsigned short PIPE5BRDY:1;\r
+            unsigned short PIPE6BRDY:1;\r
+            unsigned short PIPE7BRDY:1;\r
+            unsigned short PIPE8BRDY:1;\r
+            unsigned short PIPE9BRDY:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } NRDYSTS;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPE0BENP:1;\r
+            unsigned short PIPE1BENP:1;\r
+            unsigned short PIPE2BENP:1;\r
+            unsigned short PIPE3BENP:1;\r
+            unsigned short PIPE4BENP:1;\r
+            unsigned short PIPE5BENP:1;\r
+            unsigned short PIPE6BENP:1;\r
+            unsigned short PIPE7BENP:1;\r
+            unsigned short PIPE8BENP:1;\r
+            unsigned short PIPE9BENP:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } BEMPSTS;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FRNM:11;\r
+            unsigned short :3;\r
+            unsigned short CRCE:1;\r
+            unsigned short OVRN:1;\r
+        } BIT;\r
+    } FRMNUM;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :15;\r
+            unsigned short DVCHG:1;\r
+        } BIT;\r
+    } DVCHGR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short USBADDR:7;\r
+            unsigned short :1;\r
+            unsigned short STSRECOV:4;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } USBADDR;\r
+    unsigned char wk10[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BMREQUESTTYPE:8;\r
+            unsigned short BREQUEST:8;\r
+        } BIT;\r
+    } USBREQ;\r
+    unsigned short USBVAL;\r
+    unsigned short USBINDX;\r
+    unsigned short USBLENG;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short DIR:1;\r
+            unsigned short :2;\r
+            unsigned short SHTNAK:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DCPCFG;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MXPS:7;\r
+            unsigned short :5;\r
+            unsigned short DEVSEL:4;\r
+        } BIT;\r
+    } DCPMAXP;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short CCPL:1;\r
+            unsigned short :2;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short :2;\r
+            unsigned short SUREQCLR:1;\r
+            unsigned short :2;\r
+            unsigned short SUREQ:1;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } DCPCTR;\r
+    unsigned char wk11[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PIPESEL:4;\r
+            unsigned short :12;\r
+        } BIT;\r
+    } PIPESEL;\r
+    unsigned char wk12[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short EPNUM:4;\r
+            unsigned short DIR:1;\r
+            unsigned short :2;\r
+            unsigned short SHTNAK:1;\r
+            unsigned short :1;\r
+            unsigned short DBLB:1;\r
+            unsigned short BFRE:1;\r
+            unsigned short :3;\r
+            unsigned short TYPE:2;\r
+        } BIT;\r
+    } PIPECFG;\r
+    unsigned char wk13[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MXPS:8;\r
+            unsigned short XPS:1;\r
+            unsigned short :3;\r
+            unsigned short DEVSEL:4;\r
+        } BIT;\r
+    } PIPEMAXP;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short IITV:3;\r
+            unsigned short :9;\r
+            unsigned short IFIS:1;\r
+            unsigned short :3;\r
+        } BIT;\r
+    } PIPEPERI;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short ATREPM:1;\r
+            unsigned short :3;\r
+            unsigned short INBUFM:1;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE1CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short ATREPM:1;\r
+            unsigned short :3;\r
+            unsigned short INBUFM:1;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE2CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short ATREPM:1;\r
+            unsigned short :3;\r
+            unsigned short INBUFM:1;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE3CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short ATREPM:1;\r
+            unsigned short :3;\r
+            unsigned short INBUFM:1;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE4CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short ATREPM:1;\r
+            unsigned short :3;\r
+            unsigned short INBUFM:1;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE5CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short :5;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE6CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short :5;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE7CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short :5;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE8CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PID:2;\r
+            unsigned short :3;\r
+            unsigned short PBUSY:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short :5;\r
+            unsigned short BSTS:1;\r
+        } BIT;\r
+    } PIPE9CTR;\r
+    unsigned char wk14[14];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short TRCLR:1;\r
+            unsigned short TRENB:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } PIPE1TRE;\r
+    unsigned short PIPE1TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short TRCLR:1;\r
+            unsigned short TRENB:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } PIPE2TRE;\r
+    unsigned short PIPE2TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short TRCLR:1;\r
+            unsigned short TRENB:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } PIPE3TRE;\r
+    unsigned short PIPE3TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short TRCLR:1;\r
+            unsigned short TRENB:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } PIPE4TRE;\r
+    unsigned short PIPE4TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short TRCLR:1;\r
+            unsigned short TRENB:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } PIPE5TRE;\r
+    unsigned short PIPE5TRN;\r
+    unsigned char wk15[44];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DEVADD0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DEVADD1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DEVADD2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DEVADD3;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DEVADD4;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } DEVADD5;\r
+};\r
+\r
+struct st_usb {\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long SRPC0:1;\r
+            unsigned long :3;\r
+            unsigned long FIXPHY0:1;\r
+            unsigned long :3;\r
+            unsigned long SRPC1:1;\r
+            unsigned long :3;\r
+            unsigned long FIXPHY1:1;\r
+            unsigned long :3;\r
+            unsigned long DP0:1;\r
+            unsigned long DM0:1;\r
+            unsigned long :2;\r
+            unsigned long DOVCA0:1;\r
+            unsigned long DOVCB0:1;\r
+            unsigned long :1;\r
+            unsigned long DVBSTS0:1;\r
+            unsigned long DP1:1;\r
+            unsigned long DM1:1;\r
+            unsigned long :2;\r
+            unsigned long DOVCA1:1;\r
+            unsigned long DOVCB1:1;\r
+            unsigned long :1;\r
+            unsigned long DVSTS1:1;\r
+        } BIT;\r
+    } DPUSR0R;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long DPINTE0:1;\r
+            unsigned long DMINTE0:1;\r
+            unsigned long :2;\r
+            unsigned long DOVRCRAE0:1;\r
+            unsigned long DOVRCRBE0:1;\r
+            unsigned long :1;\r
+            unsigned long DVBSE0:1;\r
+            unsigned long DPINTE1:1;\r
+            unsigned long DMINTE1:1;\r
+            unsigned long :2;\r
+            unsigned long DOVRCRAE1:1;\r
+            unsigned long DOVRCRBE1:1;\r
+            unsigned long :1;\r
+            unsigned long DVBSE1:1;\r
+            unsigned long DPINT0:1;\r
+            unsigned long DMINT0:1;\r
+            unsigned long :2;\r
+            unsigned long DOVRCRA0:1;\r
+            unsigned long DOVRCRB0:1;\r
+            unsigned long :1;\r
+            unsigned long DVBINT0:1;\r
+            unsigned long DPINT1:1;\r
+            unsigned long DMINT1:1;\r
+            unsigned long :2;\r
+            unsigned long DOVRCRA1:1;\r
+            unsigned long DOVRCRB1:1;\r
+            unsigned long :1;\r
+            unsigned long DVBINT1:1;\r
+        } BIT;\r
+    } DPUSR1R;\r
+};\r
+\r
+struct st_edmac {\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long SWR:1;\r
+            unsigned long :3;\r
+            unsigned long DL:2;\r
+            unsigned long DE:1;\r
+            unsigned long :25;\r
+        } BIT;\r
+    } EDMR;\r
+    unsigned char wk0[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long TR:1;\r
+            unsigned long :31;\r
+        } BIT;\r
+    } EDTRR;\r
+    unsigned char wk1[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RR:1;\r
+            unsigned long :31;\r
+        } BIT;\r
+    } EDRRR;\r
+    unsigned char wk2[4];\r
+    void *TDLAR;\r
+    unsigned char wk3[4];\r
+    void *RDLAR;\r
+    unsigned char wk4[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CERF:1;\r
+            unsigned long PRE:1;\r
+            unsigned long RTSF:1;\r
+            unsigned long RTLF:1;\r
+            unsigned long RRF:1;\r
+            unsigned long :2;\r
+            unsigned long RMAF:1;\r
+            unsigned long TRO:1;\r
+            unsigned long CD:1;\r
+            unsigned long DLC:1;\r
+            unsigned long CND:1;\r
+            unsigned long :4;\r
+            unsigned long RFOF:1;\r
+            unsigned long RDE:1;\r
+            unsigned long FR:1;\r
+            unsigned long TFUF:1;\r
+            unsigned long TDE:1;\r
+            unsigned long TC:1;\r
+            unsigned long ECI:1;\r
+            unsigned long ADE:1;\r
+            unsigned long RFCOF:1;\r
+            unsigned long RABT:1;\r
+            unsigned long TABT:1;\r
+            unsigned long :3;\r
+            unsigned long TWB:1;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } EESR;\r
+    unsigned char wk5[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CERFIP:1;\r
+            unsigned long PREIP:1;\r
+            unsigned long RTSFIP:1;\r
+            unsigned long RTLFIP:1;\r
+            unsigned long RRFIP:1;\r
+            unsigned long :2;\r
+            unsigned long RMAFIP:1;\r
+            unsigned long TROIP:1;\r
+            unsigned long CDIP:1;\r
+            unsigned long DLCIP:1;\r
+            unsigned long CNDIP:1;\r
+            unsigned long :4;\r
+            unsigned long RFOFIP:1;\r
+            unsigned long RDEIP:1;\r
+            unsigned long FRIP:1;\r
+            unsigned long TFUFIP:1;\r
+            unsigned long TDEIP:1;\r
+            unsigned long TCIP:1;\r
+            unsigned long ECIIP:1;\r
+            unsigned long ADEIP:1;\r
+            unsigned long RFCOFIP:1;\r
+            unsigned long RABTIP:1;\r
+            unsigned long TABTIP:1;\r
+            unsigned long :3;\r
+            unsigned long TWBIP:1;\r
+            unsigned long :1;\r
+        } BIT;\r
+    } EESIPR;\r
+    unsigned char wk6[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long CERFCE:1;\r
+            unsigned long PRECE:1;\r
+            unsigned long RTSFCE:1;\r
+            unsigned long RTLFCE:1;\r
+            unsigned long RRFCE:1;\r
+            unsigned long :2;\r
+            unsigned long RMAFCE:1;\r
+            unsigned long TROCE:1;\r
+            unsigned long CDCE:1;\r
+            unsigned long DLCCE:1;\r
+            unsigned long CNDCE:1;\r
+            unsigned long :20;\r
+        } BIT;\r
+    } TRSCER;\r
+    unsigned char wk7[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MFC:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } RMFCR;\r
+    unsigned char wk8[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long TFT:11;\r
+            unsigned long :21;\r
+        } BIT;\r
+    } TFTR;\r
+    unsigned char wk9[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RFD:5;\r
+            unsigned long :3;\r
+            unsigned long TFD:5;\r
+            unsigned long :19;\r
+        } BIT;\r
+    } FDR;\r
+    unsigned char wk10[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RNR:1;\r
+            unsigned long RNC:1;\r
+            unsigned long :30;\r
+        } BIT;\r
+    } RMCR;\r
+    unsigned char wk11[8];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long UNDER:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } TFUCR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long OVER:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } RFOCR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long TLB:1;\r
+            unsigned long :31;\r
+        } BIT;\r
+    } IOSR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RFDO:3;\r
+            unsigned long :13;\r
+            unsigned long RFFO:3;\r
+            unsigned long :13;\r
+        } BIT;\r
+    } FCFTR;\r
+    unsigned char wk12[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long PADR:6;\r
+            unsigned long :10;\r
+            unsigned long PADS:2;\r
+            unsigned long :14;\r
+        } BIT;\r
+    } RPADIR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long TIS:1;\r
+            unsigned long :3;\r
+            unsigned long TIM:1;\r
+            unsigned long :27;\r
+        } BIT;\r
+    } TRIMD;\r
+    unsigned char wk13[72];\r
+    void *RBWAR;\r
+    void *RDFAR;\r
+    unsigned char wk14[4];\r
+    void *TBRAR;\r
+    void *TDFAR;\r
+};\r
+\r
+struct st_etherc {\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long PRM:1;\r
+            unsigned long DM:1;\r
+            unsigned long RTM:1;\r
+            unsigned long ILB:1;\r
+            unsigned long :1;\r
+            unsigned long TE:1;\r
+            unsigned long RE:1;\r
+            unsigned long :2;\r
+            unsigned long MPDE:1;\r
+            unsigned long :2;\r
+            unsigned long PRCEF:1;\r
+            unsigned long :3;\r
+            unsigned long TXF:1;\r
+            unsigned long RXF:1;\r
+            unsigned long PFR:1;\r
+            unsigned long ZPE:1;\r
+            unsigned long TPC:1;\r
+            unsigned long :11;\r
+        } BIT;\r
+    } ECMR;\r
+    unsigned char wk0[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RFL:12;\r
+            unsigned long :20;\r
+        } BIT;\r
+    } RFLR;\r
+    unsigned char wk1[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long ICD:1;\r
+            unsigned long MPD:1;\r
+            unsigned long LCHNG:1;\r
+            unsigned long :1;\r
+            unsigned long PSRTO:1;\r
+            unsigned long BFR:1;\r
+            unsigned long :26;\r
+        } BIT;\r
+    } ECSR;\r
+    unsigned char wk2[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long ICDIP:1;\r
+            unsigned long MPDIP:1;\r
+            unsigned long LCHNGIP:1;\r
+            unsigned long :1;\r
+            unsigned long PSRTOIP:1;\r
+            unsigned long BFSIPR:1;\r
+            unsigned long :26;\r
+        } BIT;\r
+    } ECSIPR;\r
+    unsigned char wk3[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MDC:1;\r
+            unsigned long MMD:1;\r
+            unsigned long MDO:1;\r
+            unsigned long MDI:1;\r
+            unsigned long :28;\r
+        } BIT;\r
+    } PIR;\r
+    unsigned char wk4[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long LMON:1;\r
+            unsigned long :31;\r
+        } BIT;\r
+    } PSR;\r
+    unsigned char wk5[20];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RMD:20;\r
+            unsigned long :12;\r
+        } BIT;\r
+    } RDMLR;\r
+    unsigned char wk6[12];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long IPG:5;\r
+            unsigned long :27;\r
+        } BIT;\r
+    } IPGR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long AP:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } APR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MP:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } MPR;\r
+    unsigned char wk7[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long RPAUSE:8;\r
+            unsigned long :24;\r
+        } BIT;\r
+    } RFCF;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long TPAUSE:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } TPAUSER;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long TXP:8;\r
+            unsigned long :24;\r
+        } BIT;\r
+    } TPAUSECR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long BCF:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } BCFRR;\r
+    unsigned char wk8[80];\r
+    unsigned long MAHR;\r
+    unsigned char wk9[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MA:16;\r
+            unsigned long :16;\r
+        } BIT;\r
+    } MALR;\r
+    unsigned char wk10[4];\r
+    unsigned long TROCR;\r
+    unsigned long CDCR;\r
+    unsigned long LCCR;\r
+    unsigned long CNDCR;\r
+    unsigned char wk11[4];\r
+    unsigned long CEFCR;\r
+    unsigned long FRECR;\r
+    unsigned long TSFRCR;\r
+    unsigned long TLFRCR;\r
+    unsigned long RFCR;\r
+    unsigned long MAFCR;\r
+};\r
+\r
+enum enum_ir {\r
+IR_BSC_BUSERR=16,\r
+IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,\r
+IR_ICU_SWINT=27,\r
+IR_CMT0_CMI0,\r
+IR_CMT1_CMI1,\r
+IR_CMT2_CMI2,\r
+IR_CMT3_CMI3,\r
+IR_ETHER_EINT,\r
+IR_USB0_D0FIFO0=36,IR_USB0_D1FIFO0,IR_USB0_USBI0,\r
+IR_USB1_D0FIFO1=40,IR_USB1_D1FIFO1,IR_USB1_USBI1,\r
+IR_RSPI0_SPEI0=44,IR_RSPI0_SPRI0,IR_RSPI0_SPTI0,IR_RSPI0_SPII0,\r
+IR_RSPI1_SPEI1,IR_RSPI1_SPRI1,IR_RSPI1_SPTI1,IR_RSPI1_SPII1,\r
+IR_CAN0_ERS0=56,IR_CAN0_RXF0,IR_CAN0_TXF0,IR_CAN0_RXM0,IR_CAN0_TXM0,\r
+IR_RTC_PRD=62,IR_RTC_CUP,\r
+IR_ICU_IRQ0,IR_ICU_IRQ1,IR_ICU_IRQ2,IR_ICU_IRQ3,IR_ICU_IRQ4,IR_ICU_IRQ5,IR_ICU_IRQ6,IR_ICU_IRQ7,IR_ICU_IRQ8,IR_ICU_IRQ9,IR_ICU_IRQ10,IR_ICU_IRQ11,IR_ICU_IRQ12,IR_ICU_IRQ13,IR_ICU_IRQ14,IR_ICU_IRQ15,\r
+IR_USB_USBR0=90,IR_USB_USBR1,\r
+IR_RTC_ALM,\r
+IR_WDT_WOVI=96,\r
+IR_AD0_ADI0=98,\r
+IR_AD1_ADI1,\r
+IR_S12AD_ADI=102,\r
+IR_MTU0_TGIA0=114,IR_MTU0_TGIB0,IR_MTU0_TGIC0,IR_MTU0_TGID0,IR_MTU0_TCIV0,IR_MTU0_TGIE0,IR_MTU0_TGIF0,\r
+IR_MTU1_TGIA1,IR_MTU1_TGIB1,IR_MTU1_TCIV1,IR_MTU1_TCIU1,\r
+IR_MTU2_TGIA2,IR_MTU2_TGIB2,IR_MTU2_TCIV2,IR_MTU2_TCIU2,\r
+IR_MTU3_TGIA3,IR_MTU3_TGIB3,IR_MTU3_TGIC3,IR_MTU3_TGID3,IR_MTU3_TCIV3,\r
+IR_MTU4_TGIA4,IR_MTU4_TGIB4,IR_MTU4_TGIC4,IR_MTU4_TGID4,IR_MTU4_TCIV4,\r
+IR_MTU5_TGIU5,IR_MTU5_TGIV5,IR_MTU5_TGIW5,\r
+IR_MTU6_TGIA6,IR_MTU6_TGIB6,IR_MTU6_TGIC6,IR_MTU6_TGID6,IR_MTU6_TCIV6,IR_MTU6_TGIE6,IR_MTU6_TGIF6,\r
+IR_MTU7_TGIA7,IR_MTU7_TGIB7,IR_MTU7_TCIV7,IR_MTU7_TCIU7,\r
+IR_MTU8_TGIA8,IR_MTU8_TGIB8,IR_MTU8_TCIV8,IR_MTU8_TCIU8,\r
+IR_MTU9_TGIA9,IR_MTU9_TGIB9,IR_MTU9_TGIC9,IR_MTU9_TGID9,IR_MTU9_TCIV9,\r
+IR_MTU10_TGIA10,IR_MTU10_TGIB10,IR_MTU10_TGIC10,IR_MTU10_TGID10,IR_MTU10_TCIV10,\r
+IR_MTU11_TGIU11,IR_MTU11_TGIV11,IR_MTU11_TGIW11,\r
+IR_POE_OEI1,IR_POE_OEI2,IR_POE_OEI3,IR_POE_OEI4,\r
+IR_TMR0_CMIA0,IR_TMR0_CMIB0,IR_TMR0_OVI0,\r
+IR_TMR1_CMIA1,IR_TMR1_CMIB1,IR_TMR1_OVI1,\r
+IR_TMR2_CMIA2,IR_TMR2_CMIB2,IR_TMR2_OVI2,\r
+IR_TMR3_CMIA3,IR_TMR3_CMIB3,IR_TMR3_OVI3,\r
+IR_DMACA_DMAC0I=198,IR_DMACA_DMAC1I,IR_DMACA_DMAC2I,IR_DMACA_DMAC3I,\r
+IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,\r
+IR_SCI0_ERI0=214,IR_SCI0_RXI0,IR_SCI0_TXI0,IR_SCI0_TEI0,\r
+IR_SCI1_ERI1,IR_SCI1_RXI1,IR_SCI1_TXI1,IR_SCI1_TEI1,\r
+IR_SCI2_ERI2,IR_SCI2_RXI2,IR_SCI2_TXI2,IR_SCI2_TEI2,\r
+IR_SCI3_ERI3,IR_SCI3_RXI3,IR_SCI3_TXI3,IR_SCI3_TEI3,\r
+IR_SCI5_ERI5=234,IR_SCI5_RXI5,IR_SCI5_TXI5,IR_SCI5_TEI5,\r
+IR_SCI6_ERI6,IR_SCI6_RXI6,IR_SCI6_TXI6,IR_SCI6_TEI6,\r
+IR_RIIC0_ICEEI0=246,IR_RIIC0_ICRXI0,IR_RIIC0_ICTXI0,IR_RIIC0_ICTEI0,\r
+IR_RIIC1_ICEEI1,IR_RIIC1_ICRXI1,IR_RIIC1_ICTXI1,IR_RIIC1_ICTEI1\r
+};\r
+\r
+enum enum_dtce {\r
+DTCE_BSC_BUSERR=16,\r
+DTCE_FCU_FIFERR=21,DTCE_FCU_FRDYI=23,\r
+DTCE_ICU_SWINT=27,\r
+DTCE_CMT0_CMI0,\r
+DTCE_CMT1_CMI1,\r
+DTCE_CMT2_CMI2,\r
+DTCE_CMT3_CMI3,\r
+DTCE_ETHER_EINT,\r
+DTCE_USB0_D0FIFO0=36,DTCE_USB0_D1FIFO0,DTCE_USB0_USBI0,\r
+DTCE_USB1_D0FIFO1=40,DTCE_USB1_D1FIFO1,DTCE_USB1_USBI1,\r
+DTCE_RSPI0_SPEI0=44,DTCE_RSPI0_SPRI0,DTCE_RSPI0_SPTI0,DTCE_RSPI0_SPII0,\r
+DTCE_RSPI1_SPEI1,DTCE_RSPI1_SPRI1,DTCE_RSPI1_SPTI1,DTCE_RSPI1_SPII1,\r
+DTCE_CAN0_ERS0=56,DTCE_CAN0_RXF0,DTCE_CAN0_TXF0,DTCE_CAN0_RXM0,DTCE_CAN0_TXM0,\r
+DTCE_RTC_PRD=62,DTCE_RTC_CUP,\r
+DTCE_ICU_IRQ0,DTCE_ICU_IRQ1,DTCE_ICU_IRQ2,DTCE_ICU_IRQ3,DTCE_ICU_IRQ4,DTCE_ICU_IRQ5,DTCE_ICU_IRQ6,DTCE_ICU_IRQ7,DTCE_ICU_IRQ8,DTCE_ICU_IRQ9,DTCE_ICU_IRQ10,DTCE_ICU_IRQ11,DTCE_ICU_IRQ12,DTCE_ICU_IRQ13,DTCE_ICU_IRQ14,DTCE_ICU_IRQ15,\r
+DTCE_USB_USBR0=90,DTCE_USB_USBR1,\r
+DTCE_RTC_ALM,\r
+DTCE_WDT_WOVI=96,\r
+DTCE_AD0_ADI0=98,\r
+DTCE_AD1_ADI1,\r
+DTCE_S12AD_ADI=102,\r
+DTCE_MTU0_TGIA0=114,DTCE_MTU0_TGIB0,DTCE_MTU0_TGIC0,DTCE_MTU0_TGID0,DTCE_MTU0_TCIV0,DTCE_MTU0_TGIE0,DTCE_MTU0_TGIF0,\r
+DTCE_MTU1_TGIA1,DTCE_MTU1_TGIB1,DTCE_MTU1_TCIV1,DTCE_MTU1_TCIU1,\r
+DTCE_MTU2_TGIA2,DTCE_MTU2_TGIB2,DTCE_MTU2_TCIV2,DTCE_MTU2_TCIU2,\r
+DTCE_MTU3_TGIA3,DTCE_MTU3_TGIB3,DTCE_MTU3_TGIC3,DTCE_MTU3_TGID3,DTCE_MTU3_TCIV3,\r
+DTCE_MTU4_TGIA4,DTCE_MTU4_TGIB4,DTCE_MTU4_TGIC4,DTCE_MTU4_TGID4,DTCE_MTU4_TCIV4,\r
+DTCE_MTU5_TGIU5,DTCE_MTU5_TGIV5,DTCE_MTU5_TGIW5,\r
+DTCE_MTU6_TGIA6,DTCE_MTU6_TGIB6,DTCE_MTU6_TGIC6,DTCE_MTU6_TGID6,DTCE_MTU6_TCIV6,DTCE_MTU6_TGIE6,DTCE_MTU6_TGIF6,\r
+DTCE_MTU7_TGIA7,DTCE_MTU7_TGIB7,DTCE_MTU7_TCIV7,DTCE_MTU7_TCIU7,\r
+DTCE_MTU8_TGIA8,DTCE_MTU8_TGIB8,DTCE_MTU8_TCIV8,DTCE_MTU8_TCIU8,\r
+DTCE_MTU9_TGIA9,DTCE_MTU9_TGIB9,DTCE_MTU9_TGIC9,DTCE_MTU9_TGID9,DTCE_MTU9_TCIV9,\r
+DTCE_MTU10_TGIA10,DTCE_MTU10_TGIB10,DTCE_MTU10_TGIC10,DTCE_MTU10_TGID10,DTCE_MTU10_TCIV10,\r
+DTCE_MTU11_TGIU11,DTCE_MTU11_TGIV11,DTCE_MTU11_TGIW11,\r
+DTCE_POE_OEI1,DTCE_POE_OEI2,DTCE_POE_OEI3,DTCE_POE_OEI4,\r
+DTCE_TMR0_CMIA0,DTCE_TMR0_CMIB0,DTCE_TMR0_OVI0,\r
+DTCE_TMR1_CMIA1,DTCE_TMR1_CMIB1,DTCE_TMR1_OVI1,\r
+DTCE_TMR2_CMIA2,DTCE_TMR2_CMIB2,DTCE_TMR2_OVI2,\r
+DTCE_TMR3_CMIA3,DTCE_TMR3_CMIB3,DTCE_TMR3_OVI3,\r
+DTCE_DMACA_DMAC0I=198,DTCE_DMACA_DMAC1I,DTCE_DMACA_DMAC2I,DTCE_DMACA_DMAC3I,\r
+DTCE_EXDMAC_EXDMAC0I,DTCE_EXDMAC_EXDMAC1I,\r
+DTCE_SCI0_ERI0=214,DTCE_SCI0_RXI0,DTCE_SCI0_TXI0,DTCE_SCI0_TEI0,\r
+DTCE_SCI1_ERI1,DTCE_SCI1_RXI1,DTCE_SCI1_TXI1,DTCE_SCI1_TEI1,\r
+DTCE_SCI2_ERI2,DTCE_SCI2_RXI2,DTCE_SCI2_TXI2,DTCE_SCI2_TEI2,\r
+DTCE_SCI3_ERI3,DTCE_SCI3_RXI3,DTCE_SCI3_TXI3,DTCE_SCI3_TEI3,\r
+DTCE_SCI5_ERI5=234,DTCE_SCI5_RXI5,DTCE_SCI5_TXI5,DTCE_SCI5_TEI5,\r
+DTCE_SCI6_ERI6,DTCE_SCI6_RXI6,DTCE_SCI6_TXI6,DTCE_SCI6_TEI6,\r
+DTCE_RIIC0_ICEEI0=246,DTCE_RIIC0_ICRXI0,DTCE_RIIC0_ICTXI0,DTCE_RIIC0_ICTEI0,\r
+DTCE_RIIC1_ICEEI1,DTCE_RIIC1_ICRXI1,DTCE_RIIC1_ICTXI1,DTCE_RIIC1_ICTEI1\r
+};\r
+\r
+enum enum_ier {\r
+IER_BSC_BUSERR=0x02,\r
+IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,\r
+IER_ICU_SWINT=0x03,\r
+IER_CMT0_CMI0=0x03,\r
+IER_CMT1_CMI1=0x03,\r
+IER_CMT2_CMI2=0x03,\r
+IER_CMT3_CMI3=0x03,\r
+IER_ETHER_EINT=0x04,\r
+IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,IER_USB0_USBI0=0x04,\r
+IER_USB1_D0FIFO1=0x05,IER_USB1_D1FIFO1=0x05,IER_USB1_USBI1=0x05,\r
+IER_RSPI0_SPEI0=0x05,IER_RSPI0_SPRI0=0x05,IER_RSPI0_SPTI0=0x05,IER_RSPI0_SPII0=0x05,\r
+IER_RSPI1_SPEI1=0x06,IER_RSPI1_SPRI1=0x06,IER_RSPI1_SPTI1=0x06,IER_RSPI1_SPII1=0x06,\r
+IER_CAN0_ERS0=0x07,IER_CAN0_RXF0=0x07,IER_CAN0_TXF0=0x07,IER_CAN0_RXM0=0x07,IER_CAN0_TXM0=0x07,\r
+IER_RTC_PRD=0x07,IER_RTC_CUP=0x07,\r
+IER_ICU_IRQ0=0x08,IER_ICU_IRQ1=0x08,IER_ICU_IRQ2=0x08,IER_ICU_IRQ3=0x08,IER_ICU_IRQ4=0x08,IER_ICU_IRQ5=0x08,IER_ICU_IRQ6=0x08,IER_ICU_IRQ7=0x08,IER_ICU_IRQ8=0x09,IER_ICU_IRQ9=0x09,IER_ICU_IRQ10=0x09,IER_ICU_IRQ11=0x09,IER_ICU_IRQ12=0x09,IER_ICU_IRQ13=0x09,IER_ICU_IRQ14=0x09,IER_ICU_IRQ15=0x09,\r
+IER_USB_USBR0=0x0B,IER_USB_USBR1=0x0B,\r
+IER_RTC_ALM=0x0B,\r
+IER_WDT_WOVI=0x0C,\r
+IER_AD0_ADI0=0x0C,\r
+IER_AD1_ADI1=0x0C,\r
+IER_S12AD_ADI=0x0C,\r
+IER_MTU0_TGIA0=0x0E,IER_MTU0_TGIB0=0x0E,IER_MTU0_TGIC0=0x0E,IER_MTU0_TGID0=0x0E,IER_MTU0_TCIV0=0x0E,IER_MTU0_TGIE0=0x0E,IER_MTU0_TGIF0=0x0F,\r
+IER_MTU1_TGIA1=0x0F,IER_MTU1_TGIB1=0x0F,IER_MTU1_TCIV1=0x0F,IER_MTU1_TCIU1=0x0F,\r
+IER_MTU2_TGIA2=0x0F,IER_MTU2_TGIB2=0x0F,IER_MTU2_TCIV2=0x0F,IER_MTU2_TCIU2=0x10,\r
+IER_MTU3_TGIA3=0x10,IER_MTU3_TGIB3=0x10,IER_MTU3_TGIC3=0x10,IER_MTU3_TGID3=0x10,IER_MTU3_TCIV3=0x10,\r
+IER_MTU4_TGIA4=0x10,IER_MTU4_TGIB4=0x10,IER_MTU4_TGIC4=0x11,IER_MTU4_TGID4=0x11,IER_MTU4_TCIV4=0x11,\r
+IER_MTU5_TGIU5=0x11,IER_MTU5_TGIV5=0x11,IER_MTU5_TGIW5=0x10,\r
+IER_MTU6_TGIA6=0x11,IER_MTU6_TGIB6=0x11,IER_MTU6_TGIC6=0x12,IER_MTU6_TGID6=0x12,IER_MTU6_TCIV6=0x12,IER_MTU6_TGIE6=0x12,IER_MTU6_TGIF6=0x12,\r
+IER_MTU7_TGIA7=0x12,IER_MTU7_TGIB7=0x12,IER_MTU7_TCIV7=0x12,IER_MTU7_TCIU7=0x13,\r
+IER_MTU8_TGIA8=0x13,IER_MTU8_TGIB8=0x13,IER_MTU8_TCIV8=0x13,IER_MTU8_TCIU8=0x13,\r
+IER_MTU9_TGIA9=0x13,IER_MTU9_TGIB9=0x13,IER_MTU9_TGIC9=0x13,IER_MTU9_TGID9=0x14,IER_MTU9_TCIV9=0x14,\r
+IER_MTU10_TGIA10=0x14,IER_MTU10_TGIB10=0x14,IER_MTU10_TGIC10=0x14,IER_MTU10_TGID10=0x14,IER_MTU10_TCIV10=0x14,\r
+IER_MTU11_TGIU11=0x14,IER_MTU11_TGIV11=0x15,IER_MTU11_TGIW11=0x15,\r
+IER_POE_OEI1=0x15,IER_POE_OEI2=0x15,IER_POE_OEI3=0x15,IER_POE_OEI4=0x15,\r
+IER_TMR0_CMIA0=0x15,IER_TMR0_CMIB0=0x15,IER_TMR0_OVI0=0x16,\r
+IER_TMR1_CMIA1=0x16,IER_TMR1_CMIB1=0x16,IER_TMR1_OVI1=0x16,\r
+IER_TMR2_CMIA2=0x16,IER_TMR2_CMIB2=0x16,IER_TMR2_OVI2=0x16,\r
+IER_TMR3_CMIA3=0x16,IER_TMR3_CMIB3=0x17,IER_TMR3_OVI3=0x17,\r
+IER_DMACA_DMAC0I=0x18,IER_DMACA_DMAC1I=0x18,IER_DMACA_DMAC2I=0x19,IER_DMACA_DMAC3I=0x19,\r
+IER_EXDMAC_EXDMAC0I=0x19,IER_EXDMAC_EXDMAC1I=0x19,\r
+IER_SCI0_ERI0=0x1A,IER_SCI0_RXI0=0x1A,IER_SCI0_TXI0=0x1B,IER_SCI0_TEI0=0x1B,\r
+IER_SCI1_ERI1=0x1B,IER_SCI1_RXI1=0x1B,IER_SCI1_TXI1=0x1B,IER_SCI1_TEI1=0x1B,\r
+IER_SCI2_ERI2=0x1B,IER_SCI2_RXI2=0x1B,IER_SCI2_TXI2=0x1C,IER_SCI2_TEI2=0x1C,\r
+IER_SCI3_ERI3=0x1C,IER_SCI3_RXI3=0x1C,IER_SCI3_TXI3=0x1C,IER_SCI3_TEI3=0x1C,\r
+IER_SCI5_ERI5=0x1D,IER_SCI5_RXI5=0x1D,IER_SCI5_TXI5=0x1D,IER_SCI5_TEI5=0x1D,\r
+IER_SCI6_ERI6=0x1D,IER_SCI6_RXI6=0x1D,IER_SCI6_TXI6=0x1E,IER_SCI6_TEI6=0x1E,\r
+IER_RIIC0_ICEEI0=0x1E,IER_RIIC0_ICRXI0=0x1E,IER_RIIC0_ICTXI0=0x1F,IER_RIIC0_ICTEI0=0x1F,\r
+IER_RIIC1_ICEEI1=0x1F,IER_RIIC1_ICRXI1=0x1F,IER_RIIC1_ICTXI1=0x1F,IER_RIIC1_ICTEI1=0x1F\r
+};\r
+\r
+enum enum_ipr {\r
+IPR_BSC_BUSERR=0x00,\r
+IPR_FCU_FIFERR=0x01,IPR_FCU_FRDYI=0x02,\r
+IPR_ICU_SWINT=0x03,\r
+IPR_CMT0_CMI0=0x04,\r
+IPR_CMT1_CMI1=0x05,\r
+IPR_CMT2_CMI2=0x06,\r
+IPR_CMT3_CMI3=0x07,\r
+IPR_ETHER_EINT=0x08,\r
+IPR_USB0_D0FIFO0=0x0C,IPR_USB0_D1FIFO0=0x0D,IPR_USB0_USBI0=0x0E,\r
+IPR_USB1_D0FIFO1=0x10,IPR_USB1_D1FIFO1=0x11,IPR_USB1_USBI1=0x12,\r
+IPR_RSPI0_SPEI0=0x14,IPR_RSPI0_SPRI0=0x14,IPR_RSPI0_SPTI0=0x14,IPR_RSPI0_SPII0=0x14,\r
+IPR_RSPI1_SPEI1=0x15,IPR_RSPI1_SPRI1=0x15,IPR_RSPI1_SPTI1=0x15,IPR_RSPI1_SPII1=0x15,\r
+IPR_CAN0_ERS0=0x18,IPR_CAN0_RXF0=0x18,IPR_CAN0_TXF0=0x18,IPR_CAN0_RXM0=0x18,IPR_CAN0_TXM0=0x18,\r
+IPR_RTC_PRD=0x1E,IPR_RTC_CUP=0x1F,\r
+IPR_ICU_IRQ0=0x20,IPR_ICU_IRQ1=0x21,IPR_ICU_IRQ2=0x22,IPR_ICU_IRQ3=0x23,IPR_ICU_IRQ4=0x24,IPR_ICU_IRQ5=0x25,IPR_ICU_IRQ6=0x26,IPR_ICU_IRQ7=0x27,IPR_ICU_IRQ8=0x28,IPR_ICU_IRQ9=0x29,IPR_ICU_IRQ10=0x2A,IPR_ICU_IRQ11=0x2B,IPR_ICU_IRQ12=0x2C,IPR_ICU_IRQ13=0x2D,IPR_ICU_IRQ14=0x2E,IPR_ICU_IRQ15=0x2F,\r
+IPR_USB_USBR0=0x3A,IPR_USB_USBR1=0x3B,\r
+IPR_RTC_ALM=0x3C,\r
+IPR_WDT_WOVI=0x40,\r
+IPR_AD0_ADI0=0x44,\r
+IPR_AD1_ADI1=0x45,\r
+IPR_S12AD_ADI=0x48,\r
+IPR_MTU0_TGIA0=0x51,IPR_MTU0_TGIB0=0x51,IPR_MTU0_TGIC0=0x51,IPR_MTU0_TGID0=0x51,IPR_MTU0_TCIV0=0x52,IPR_MTU0_TGIE0=0x52,IPR_MTU0_TGIF0=0x52,\r
+IPR_MTU1_TGIA1=0x53,IPR_MTU1_TGIB1=0x53,IPR_MTU1_TCIV1=0x54,IPR_MTU1_TCIU1=0x54,\r
+IPR_MTU2_TGIA2=0x55,IPR_MTU2_TGIB2=0x55,IPR_MTU2_TCIV2=0x56,IPR_MTU2_TCIU2=0x56,\r
+IPR_MTU3_TGIA3=0x57,IPR_MTU3_TGIB3=0x57,IPR_MTU3_TGIC3=0x57,IPR_MTU3_TGID3=0x57,IPR_MTU3_TCIV3=0x58,\r
+IPR_MTU4_TGIA4=0x59,IPR_MTU4_TGIB4=0x59,IPR_MTU4_TGIC4=0x59,IPR_MTU4_TGID4=0x59,IPR_MTU4_TCIV4=0x5A,\r
+IPR_MTU5_TGIU5=0x5B,IPR_MTU5_TGIV5=0x5B,IPR_MTU5_TGIW5=0x5B,\r
+IPR_MTU6_TGIA6=0x5C,IPR_MTU6_TGIB6=0x5C,IPR_MTU6_TGIC6=0x5C,IPR_MTU6_TGID6=0x5C,IPR_MTU6_TCIV6=0x5D,IPR_MTU6_TGIE6=0x5D,IPR_MTU6_TGIF6=0x5D,\r
+IPR_MTU7_TGIA7=0x5E,IPR_MTU7_TGIB7=0x5E,IPR_MTU7_TCIV7=0x5F,IPR_MTU7_TCIU7=0x5F,\r
+IPR_MTU8_TGIA8=0x60,IPR_MTU8_TGIB8=0x60,IPR_MTU8_TCIV8=0x61,IPR_MTU8_TCIU8=0x61,\r
+IPR_MTU9_TGIA9=0x62,IPR_MTU9_TGIB9=0x62,IPR_MTU9_TGIC9=0x62,IPR_MTU9_TGID9=0x62,IPR_MTU9_TCIV9=0x63,\r
+IPR_MTU10_TGIA10=0x64,IPR_MTU10_TGIB10=0x64,IPR_MTU10_TGIC10=0x64,IPR_MTU10_TGID10=0x64,IPR_MTU10_TCIV10=0x65,\r
+IPR_MTU11_TGIU11=0x66,IPR_MTU11_TGIV11=0x66,IPR_MTU11_TGIW11=0x66,\r
+IPR_POE_OEI1=0x67,IPR_POE_OEI2=0x67,IPR_POE_OEI3=0x67,IPR_POE_OEI4=0x67,\r
+IPR_TMR0_CMIA0=0x68,IPR_TMR0_CMIB0=0x68,IPR_TMR0_OVI0=0x68,\r
+IPR_TMR1_CMIA1=0x69,IPR_TMR1_CMIB1=0x69,IPR_TMR1_OVI1=0x69,\r
+IPR_TMR2_CMIA2=0x6A,IPR_TMR2_CMIB2=0x6A,IPR_TMR2_OVI2=0x6A,\r
+IPR_TMR3_CMIA3=0x6B,IPR_TMR3_CMIB3=0x6B,IPR_TMR3_OVI3=0x6B,\r
+IPR_DMACA_DMAC0I=0x70,IPR_DMACA_DMAC1I=0x71,IPR_DMACA_DMAC2I=0x72,IPR_DMACA_DMAC3I=0x73,\r
+IPR_EXDMAC_EXDMAC0I=0x74,IPR_EXDMAC_EXDMAC1I=0x75,\r
+IPR_SCI0_ERI0=0x80,IPR_SCI0_RXI0=0x80,IPR_SCI0_TXI0=0x80,IPR_SCI0_TEI0=0x80,\r
+IPR_SCI1_ERI1=0x81,IPR_SCI1_RXI1=0x81,IPR_SCI1_TXI1=0x81,IPR_SCI1_TEI1=0x81,\r
+IPR_SCI2_ERI2=0x82,IPR_SCI2_RXI2=0x82,IPR_SCI2_TXI2=0x82,IPR_SCI2_TEI2=0x82,\r
+IPR_SCI3_ERI3=0x83,IPR_SCI3_RXI3=0x83,IPR_SCI3_TXI3=0x83,IPR_SCI3_TEI3=0x83,\r
+IPR_SCI5_ERI5=0x85,IPR_SCI5_RXI5=0x85,IPR_SCI5_TXI5=0x85,IPR_SCI5_TEI5=0x85,\r
+IPR_SCI6_ERI6=0x86,IPR_SCI6_RXI6=0x86,IPR_SCI6_TXI6=0x86,IPR_SCI6_TEI6=0x86,\r
+IPR_RIIC0_ICEEI0=0x88,IPR_RIIC0_ICRXI0=0x89,IPR_RIIC0_ICTXI0=0x8A,IPR_RIIC0_ICTEI0=0x8B,\r
+IPR_RIIC1_ICEEI1=0x8C,IPR_RIIC1_ICRXI1=0x8D,IPR_RIIC1_ICTXI1=0x8E,IPR_RIIC1_ICTEI1=0x8F,\r
+IPR_BSC_=0x00,\r
+IPR_CMT0_=0x04,\r
+IPR_CMT1_=0x05,\r
+IPR_CMT2_=0x06,\r
+IPR_CMT3_=0x07,\r
+IPR_ETHER_=0x08,\r
+IPR_RSPI0_=0x14,\r
+IPR_RSPI1_=0x15,\r
+IPR_CAN0_=0x18,\r
+IPR_WDT_=0x40,\r
+IPR_AD0_=0x44,\r
+IPR_AD1_=0x45,\r
+IPR_S12AD_=0x48,\r
+IPR_MTU1_TGI=0x53,\r
+IPR_MTU1_TCI=0x54,\r
+IPR_MTU2_TGI=0x55,\r
+IPR_MTU2_TCI=0x56,\r
+IPR_MTU3_TGI=0x57,\r
+IPR_MTU4_TGI=0x59,\r
+IPR_MTU5_=0x5B,\r
+IPR_MTU5_TGI=0x5B,\r
+IPR_MTU7_TGI=0x5E,\r
+IPR_MTU7_TCI=0x5F,\r
+IPR_MTU8_TGI=0x60,\r
+IPR_MTU8_TCI=0x61,\r
+IPR_MTU9_TGI=0x62,\r
+IPR_MTU10_TGI=0x64,\r
+IPR_MTU11_=0x66,\r
+IPR_MTU11_TGI=0x66,\r
+IPR_POE_=0x67,\r
+IPR_POE_OEI=0x67,\r
+IPR_TMR0_=0x68,\r
+IPR_TMR1_=0x69,\r
+IPR_TMR2_=0x6A,\r
+IPR_TMR3_=0x6B,\r
+IPR_SCI0_=0x80,\r
+IPR_SCI1_=0x81,\r
+IPR_SCI2_=0x82,\r
+IPR_SCI3_=0x83,\r
+IPR_SCI5_=0x85,\r
+IPR_SCI6_=0x86\r
+};\r
+\r
+#define        IEN_BSC_BUSERR          IEN0\r
+#define        IEN_FCU_FIFERR          IEN5\r
+#define        IEN_FCU_FRDYI           IEN7\r
+#define        IEN_ICU_SWINT           IEN3\r
+#define        IEN_CMT0_CMI0           IEN4\r
+#define        IEN_CMT1_CMI1           IEN5\r
+#define        IEN_CMT2_CMI2           IEN6\r
+#define        IEN_CMT3_CMI3           IEN7\r
+#define        IEN_ETHER_EINT          IEN0\r
+#define        IEN_USB0_D0FIFO0        IEN4\r
+#define        IEN_USB0_D1FIFO0        IEN5\r
+#define        IEN_USB0_USBI0          IEN6\r
+#define        IEN_USB1_D0FIFO1        IEN0\r
+#define        IEN_USB1_D1FIFO1        IEN1\r
+#define        IEN_USB1_USBI1          IEN2\r
+#define        IEN_RSPI0_SPEI0         IEN4\r
+#define        IEN_RSPI0_SPRI0         IEN5\r
+#define        IEN_RSPI0_SPTI0         IEN6\r
+#define        IEN_RSPI0_SPII0         IEN7\r
+#define        IEN_RSPI1_SPEI1         IEN0\r
+#define        IEN_RSPI1_SPRI1         IEN1\r
+#define        IEN_RSPI1_SPTI1         IEN2\r
+#define        IEN_RSPI1_SPII1         IEN3\r
+#define        IEN_CAN0_ERS0           IEN0\r
+#define        IEN_CAN0_RXF0           IEN1\r
+#define        IEN_CAN0_TXF0           IEN2\r
+#define        IEN_CAN0_RXM0           IEN3\r
+#define        IEN_CAN0_TXM0           IEN4\r
+#define        IEN_RTC_PRD                     IEN6\r
+#define        IEN_RTC_CUP                     IEN7\r
+#define        IEN_ICU_IRQ0            IEN0\r
+#define        IEN_ICU_IRQ1            IEN1\r
+#define        IEN_ICU_IRQ2            IEN2\r
+#define        IEN_ICU_IRQ3            IEN3\r
+#define        IEN_ICU_IRQ4            IEN4\r
+#define        IEN_ICU_IRQ5            IEN5\r
+#define        IEN_ICU_IRQ6            IEN6\r
+#define        IEN_ICU_IRQ7            IEN7\r
+#define        IEN_ICU_IRQ8            IEN0\r
+#define        IEN_ICU_IRQ9            IEN1\r
+#define        IEN_ICU_IRQ10           IEN2\r
+#define        IEN_ICU_IRQ11           IEN3\r
+#define        IEN_ICU_IRQ12           IEN4\r
+#define        IEN_ICU_IRQ13           IEN5\r
+#define        IEN_ICU_IRQ14           IEN6\r
+#define        IEN_ICU_IRQ15           IEN7\r
+#define        IEN_USB_USBR0           IEN2\r
+#define        IEN_USB_USBR1           IEN3\r
+#define        IEN_RTC_ALM                     IEN4\r
+#define        IEN_WDT_WOVI            IEN0\r
+#define        IEN_AD0_ADI0            IEN2\r
+#define        IEN_AD1_ADI1            IEN3\r
+#define        IEN_S12AD_ADI           IEN6\r
+#define        IEN_MTU0_TGIA0          IEN2\r
+#define        IEN_MTU0_TGIB0          IEN3\r
+#define        IEN_MTU0_TGIC0          IEN4\r
+#define        IEN_MTU0_TGID0          IEN5\r
+#define        IEN_MTU0_TCIV0          IEN6\r
+#define        IEN_MTU0_TGIE0          IEN7\r
+#define        IEN_MTU0_TGIF0          IEN0\r
+#define        IEN_MTU1_TGIA1          IEN1\r
+#define        IEN_MTU1_TGIB1          IEN2\r
+#define        IEN_MTU1_TCIV1          IEN3\r
+#define        IEN_MTU1_TCIU1          IEN4\r
+#define        IEN_MTU2_TGIA2          IEN5\r
+#define        IEN_MTU2_TGIB2          IEN6\r
+#define        IEN_MTU2_TCIV2          IEN7\r
+#define        IEN_MTU2_TCIU2          IEN0\r
+#define        IEN_MTU3_TGIA3          IEN1\r
+#define        IEN_MTU3_TGIB3          IEN2\r
+#define        IEN_MTU3_TGIC3          IEN3\r
+#define        IEN_MTU3_TGID3          IEN4\r
+#define        IEN_MTU3_TCIV3          IEN5\r
+#define        IEN_MTU4_TGIA4          IEN6\r
+#define        IEN_MTU4_TGIB4          IEN7\r
+#define        IEN_MTU4_TGIC4          IEN0\r
+#define        IEN_MTU4_TGID4          IEN1\r
+#define        IEN_MTU4_TCIV4          IEN2\r
+#define        IEN_MTU5_TGIU5          IEN3\r
+#define        IEN_MTU5_TGIV5          IEN4\r
+#define        IEN_MTU5_TGIW5          IEN7\r
+#define        IEN_MTU6_TGIA6          IEN6\r
+#define        IEN_MTU6_TGIB6          IEN7\r
+#define        IEN_MTU6_TGIC6          IEN0\r
+#define        IEN_MTU6_TGID6          IEN1\r
+#define        IEN_MTU6_TCIV6          IEN2\r
+#define        IEN_MTU6_TGIE6          IEN3\r
+#define        IEN_MTU6_TGIF6          IEN4\r
+#define        IEN_MTU7_TGIA7          IEN5\r
+#define        IEN_MTU7_TGIB7          IEN6\r
+#define        IEN_MTU7_TCIV7          IEN7\r
+#define        IEN_MTU7_TCIU7          IEN0\r
+#define        IEN_MTU8_TGIA8          IEN1\r
+#define        IEN_MTU8_TGIB8          IEN2\r
+#define        IEN_MTU8_TCIV8          IEN3\r
+#define        IEN_MTU8_TCIU8          IEN4\r
+#define        IEN_MTU9_TGIA9          IEN5\r
+#define        IEN_MTU9_TGIB9          IEN6\r
+#define        IEN_MTU9_TGIC9          IEN7\r
+#define        IEN_MTU9_TGID9          IEN0\r
+#define        IEN_MTU9_TCIV9          IEN1\r
+#define        IEN_MTU10_TGIA10        IEN2\r
+#define        IEN_MTU10_TGIB10        IEN3\r
+#define        IEN_MTU10_TGIC10        IEN4\r
+#define        IEN_MTU10_TGID10        IEN5\r
+#define        IEN_MTU10_TCIV10        IEN6\r
+#define        IEN_MTU11_TGIU11        IEN7\r
+#define        IEN_MTU11_TGIV11        IEN0\r
+#define        IEN_MTU11_TGIW11        IEN1\r
+#define        IEN_POE_OEI1            IEN2\r
+#define        IEN_POE_OEI2            IEN3\r
+#define        IEN_POE_OEI3            IEN4\r
+#define        IEN_POE_OEI4            IEN5\r
+#define        IEN_TMR0_CMIA0          IEN6\r
+#define        IEN_TMR0_CMIB0          IEN7\r
+#define        IEN_TMR0_OVI0           IEN0\r
+#define        IEN_TMR1_CMIA1          IEN1\r
+#define        IEN_TMR1_CMIB1          IEN2\r
+#define        IEN_TMR1_OVI1           IEN3\r
+#define        IEN_TMR2_CMIA2          IEN4\r
+#define        IEN_TMR2_CMIB2          IEN5\r
+#define        IEN_TMR2_OVI2           IEN6\r
+#define        IEN_TMR3_CMIA3          IEN7\r
+#define        IEN_TMR3_CMIB3          IEN0\r
+#define        IEN_TMR3_OVI3           IEN1\r
+#define        IEN_DMACA_DMAC0I        IEN6\r
+#define        IEN_DMACA_DMAC1I        IEN7\r
+#define        IEN_DMACA_DMAC2I        IEN0\r
+#define        IEN_DMACA_DMAC3I        IEN1\r
+#define        IEN_EXDMAC_EXDMAC0I     IEN2\r
+#define        IEN_EXDMAC_EXDMAC1I     IEN3\r
+#define        IEN_SCI0_ERI0           IEN6\r
+#define        IEN_SCI0_RXI0           IEN7\r
+#define        IEN_SCI0_TXI0           IEN0\r
+#define        IEN_SCI0_TEI0           IEN1\r
+#define        IEN_SCI1_ERI1           IEN2\r
+#define        IEN_SCI1_RXI1           IEN3\r
+#define        IEN_SCI1_TXI1           IEN4\r
+#define        IEN_SCI1_TEI1           IEN5\r
+#define        IEN_SCI2_ERI2           IEN6\r
+#define        IEN_SCI2_RXI2           IEN7\r
+#define        IEN_SCI2_TXI2           IEN0\r
+#define        IEN_SCI2_TEI2           IEN1\r
+#define        IEN_SCI3_ERI3           IEN2\r
+#define        IEN_SCI3_RXI3           IEN3\r
+#define        IEN_SCI3_TXI3           IEN4\r
+#define        IEN_SCI3_TEI3           IEN5\r
+#define        IEN_SCI5_ERI5           IEN2\r
+#define        IEN_SCI5_RXI5           IEN3\r
+#define        IEN_SCI5_TXI5           IEN4\r
+#define        IEN_SCI5_TEI5           IEN5\r
+#define        IEN_SCI6_ERI6           IEN6\r
+#define        IEN_SCI6_RXI6           IEN7\r
+#define        IEN_SCI6_TXI6           IEN0\r
+#define        IEN_SCI6_TEI6           IEN1\r
+#define        IEN_RIIC0_ICEEI0        IEN6\r
+#define        IEN_RIIC0_ICRXI0        IEN7\r
+#define        IEN_RIIC0_ICTXI0        IEN0\r
+#define        IEN_RIIC0_ICTEI0        IEN1\r
+#define        IEN_RIIC1_ICEEI1        IEN2\r
+#define        IEN_RIIC1_ICRXI1        IEN3\r
+#define        IEN_RIIC1_ICTXI1        IEN4\r
+#define        IEN_RIIC1_ICTEI1        IEN5\r
+\r
+#define        VECT_BSC_BUSERR         16\r
+#define        VECT_FCU_FIFERR         21\r
+#define        VECT_FCU_FRDYI          23\r
+#define        VECT_ICU_SWINT          27\r
+#define        VECT_CMT0_CMI0          28\r
+#define        VECT_CMT1_CMI1          29\r
+#define        VECT_CMT2_CMI2          30\r
+#define        VECT_CMT3_CMI3          31\r
+#define        VECT_ETHER_EINT         32\r
+#define        VECT_USB0_D0FIFO0       36\r
+#define        VECT_USB0_D1FIFO0       37\r
+#define        VECT_USB0_USBI0         38\r
+#define        VECT_USB1_D0FIFO1       40\r
+#define        VECT_USB1_D1FIFO1       41\r
+#define        VECT_USB1_USBI1         42\r
+#define        VECT_RSPI0_SPEI0        44\r
+#define        VECT_RSPI0_SPRI0        45\r
+#define        VECT_RSPI0_SPTI0        46\r
+#define        VECT_RSPI0_SPII0        47\r
+#define        VECT_RSPI1_SPEI1        48\r
+#define        VECT_RSPI1_SPRI1        49\r
+#define        VECT_RSPI1_SPTI1        50\r
+#define        VECT_RSPI1_SPII1        51\r
+#define        VECT_CAN0_ERS0          56\r
+#define        VECT_CAN0_RXF0          57\r
+#define        VECT_CAN0_TXF0          58\r
+#define        VECT_CAN0_RXM0          59\r
+#define        VECT_CAN0_TXM0          60\r
+#define        VECT_RTC_PRD            62\r
+#define        VECT_RTC_CUP            63\r
+#define        VECT_ICU_IRQ0           64\r
+#define        VECT_ICU_IRQ1           65\r
+#define        VECT_ICU_IRQ2           66\r
+#define        VECT_ICU_IRQ3           67\r
+#define        VECT_ICU_IRQ4           68\r
+#define        VECT_ICU_IRQ5           69\r
+#define        VECT_ICU_IRQ6           70\r
+#define        VECT_ICU_IRQ7           71\r
+#define        VECT_ICU_IRQ8           72\r
+#define        VECT_ICU_IRQ9           73\r
+#define        VECT_ICU_IRQ10          74\r
+#define        VECT_ICU_IRQ11          75\r
+#define        VECT_ICU_IRQ12          76\r
+#define        VECT_ICU_IRQ13          77\r
+#define        VECT_ICU_IRQ14          78\r
+#define        VECT_ICU_IRQ15          79\r
+#define        VECT_USB_USBR0          90\r
+#define        VECT_USB_USBR1          91\r
+#define        VECT_RTC_ALM            92\r
+#define        VECT_WDT_WOVI           96\r
+#define        VECT_AD0_ADI0           98\r
+#define        VECT_AD1_ADI1           99\r
+#define        VECT_S12AD_ADI          102\r
+#define        VECT_MTU0_TGIA0         114\r
+#define        VECT_MTU0_TGIB0         115\r
+#define        VECT_MTU0_TGIC0         116\r
+#define        VECT_MTU0_TGID0         117\r
+#define        VECT_MTU0_TCIV0         118\r
+#define        VECT_MTU0_TGIE0         119\r
+#define        VECT_MTU0_TGIF0         120\r
+#define        VECT_MTU1_TGIA1         121\r
+#define        VECT_MTU1_TGIB1         122\r
+#define        VECT_MTU1_TCIV1         123\r
+#define        VECT_MTU1_TCIU1         124\r
+#define        VECT_MTU2_TGIA2         125\r
+#define        VECT_MTU2_TGIB2         126\r
+#define        VECT_MTU2_TCIV2         127\r
+#define        VECT_MTU2_TCIU2         128\r
+#define        VECT_MTU3_TGIA3         129\r
+#define        VECT_MTU3_TGIB3         130\r
+#define        VECT_MTU3_TGIC3         131\r
+#define        VECT_MTU3_TGID3         132\r
+#define        VECT_MTU3_TCIV3         133\r
+#define        VECT_MTU4_TGIA4         134\r
+#define        VECT_MTU4_TGIB4         135\r
+#define        VECT_MTU4_TGIC4         136\r
+#define        VECT_MTU4_TGID4         137\r
+#define        VECT_MTU4_TCIV4         138\r
+#define        VECT_MTU5_TGIU5         139\r
+#define        VECT_MTU5_TGIV5         140\r
+#define        VECT_MTU5_TGIW5         141\r
+#define        VECT_MTU6_TGIA6         142\r
+#define        VECT_MTU6_TGIB6         143\r
+#define        VECT_MTU6_TGIC6         144\r
+#define        VECT_MTU6_TGID6         145\r
+#define        VECT_MTU6_TCIV6         146\r
+#define        VECT_MTU6_TGIE6         147\r
+#define        VECT_MTU6_TGIF6         148\r
+#define        VECT_MTU7_TGIA7         149\r
+#define        VECT_MTU7_TGIB7         150\r
+#define        VECT_MTU7_TCIV7         151\r
+#define        VECT_MTU7_TCIU7         152\r
+#define        VECT_MTU8_TGIA8         153\r
+#define        VECT_MTU8_TGIB8         154\r
+#define        VECT_MTU8_TCIV8         155\r
+#define        VECT_MTU8_TCIU8         156\r
+#define        VECT_MTU9_TGIA9         157\r
+#define        VECT_MTU9_TGIB9         158\r
+#define        VECT_MTU9_TGIC9         159\r
+#define        VECT_MTU9_TGID9         160\r
+#define        VECT_MTU9_TCIV9         161\r
+#define        VECT_MTU10_TGIA10       162\r
+#define        VECT_MTU10_TGIB10       163\r
+#define        VECT_MTU10_TGIC10       164\r
+#define        VECT_MTU10_TGID10       165\r
+#define        VECT_MTU10_TCIV10       166\r
+#define        VECT_MTU11_TGIU11       167\r
+#define        VECT_MTU11_TGIV11       168\r
+#define        VECT_MTU11_TGIW11       169\r
+#define        VECT_POE_OEI1           170\r
+#define        VECT_POE_OEI2           171\r
+#define        VECT_POE_OEI3           172\r
+#define        VECT_POE_OEI4           173\r
+#define        VECT_TMR0_CMIA0         174\r
+#define        VECT_TMR0_CMIB0         175\r
+#define        VECT_TMR0_OVI0          176\r
+#define        VECT_TMR1_CMIA1         177\r
+#define        VECT_TMR1_CMIB1         178\r
+#define        VECT_TMR1_OVI1          179\r
+#define        VECT_TMR2_CMIA2         180\r
+#define        VECT_TMR2_CMIB2         181\r
+#define        VECT_TMR2_OVI2          182\r
+#define        VECT_TMR3_CMIA3         183\r
+#define        VECT_TMR3_CMIB3         184\r
+#define        VECT_TMR3_OVI3          185\r
+#define        VECT_DMACA_DMAC0I       198\r
+#define        VECT_DMACA_DMAC1I       199\r
+#define        VECT_DMACA_DMAC2I       200\r
+#define        VECT_DMACA_DMAC3I       201\r
+#define        VECT_EXDMAC_EXDMAC0I    202\r
+#define        VECT_EXDMAC_EXDMAC1I    203\r
+#define        VECT_SCI0_ERI0          214\r
+#define        VECT_SCI0_RXI0          215\r
+#define        VECT_SCI0_TXI0          216\r
+#define        VECT_SCI0_TEI0          217\r
+#define        VECT_SCI1_ERI1          218\r
+#define        VECT_SCI1_RXI1          219\r
+#define        VECT_SCI1_TXI1          220\r
+#define        VECT_SCI1_TEI1          221\r
+#define        VECT_SCI2_ERI2          222\r
+#define        VECT_SCI2_RXI2          223\r
+#define        VECT_SCI2_TXI2          224\r
+#define        VECT_SCI2_TEI2          225\r
+#define        VECT_SCI3_ERI3          226\r
+#define        VECT_SCI3_RXI3          227\r
+#define        VECT_SCI3_TXI3          228\r
+#define        VECT_SCI3_TEI3          229\r
+#define        VECT_SCI5_ERI5          234\r
+#define        VECT_SCI5_RXI5          235\r
+#define        VECT_SCI5_TXI5          236\r
+#define        VECT_SCI5_TEI5          237\r
+#define        VECT_SCI6_ERI6          238\r
+#define        VECT_SCI6_RXI6          239\r
+#define        VECT_SCI6_TXI6          240\r
+#define        VECT_SCI6_TEI6          241\r
+#define        VECT_RIIC0_ICEEI0       246\r
+#define        VECT_RIIC0_ICRXI0       247\r
+#define        VECT_RIIC0_ICTXI0       248\r
+#define        VECT_RIIC0_ICTEI0       249\r
+#define        VECT_RIIC1_ICEEI1       250\r
+#define        VECT_RIIC1_ICRXI1       251\r
+#define        VECT_RIIC1_ICTXI1       252\r
+#define        VECT_RIIC1_ICTEI1       253\r
+\r
+#define        MSTP_EXDMAC     SYSTEM.MSTPCRA.BIT.MSTPA29\r
+#define        MSTP_DMACA      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_AD0        SYSTEM.MSTPCRA.BIT.MSTPA23\r
+#define        MSTP_AD1        SYSTEM.MSTPCRA.BIT.MSTPA22\r
+#define        MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19\r
+#define        MSTP_S12AD      SYSTEM.MSTPCRA.BIT.MSTPA17\r
+#define        MSTP_CMT0       SYSTEM.MSTPCRA.BIT.MSTPA15\r
+#define        MSTP_CMT1       SYSTEM.MSTPCRA.BIT.MSTPA15\r
+#define        MSTP_CMT2       SYSTEM.MSTPCRA.BIT.MSTPA14\r
+#define        MSTP_CMT3       SYSTEM.MSTPCRA.BIT.MSTPA14\r
+#define        MSTP_PPG0       SYSTEM.MSTPCRA.BIT.MSTPA11\r
+#define        MSTP_PPG1       SYSTEM.MSTPCRA.BIT.MSTPA10\r
+#define        MSTP_MTUA       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU0       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU1       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU2       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU4       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU5       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTUB       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU6       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU7       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU8       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU9       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU10      SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU11      SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR01      SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_TMR23      SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_SCI0       SYSTEM.MSTPCRB.BIT.MSTPB31\r
+#define        MSTP_SMCI0      SYSTEM.MSTPCRB.BIT.MSTPB31\r
+#define        MSTP_SCI1       SYSTEM.MSTPCRB.BIT.MSTPB30\r
+#define        MSTP_SMCI1      SYSTEM.MSTPCRB.BIT.MSTPB30\r
+#define        MSTP_SCI2       SYSTEM.MSTPCRB.BIT.MSTPB29\r
+#define        MSTP_SMCI2      SYSTEM.MSTPCRB.BIT.MSTPB29\r
+#define        MSTP_SCI3       SYSTEM.MSTPCRB.BIT.MSTPB28\r
+#define        MSTP_SMCI3      SYSTEM.MSTPCRB.BIT.MSTPB28\r
+#define        MSTP_SCI5       SYSTEM.MSTPCRB.BIT.MSTPB26\r
+#define        MSTP_SMCI5      SYSTEM.MSTPCRB.BIT.MSTPB26\r
+#define        MSTP_SCI6       SYSTEM.MSTPCRB.BIT.MSTPB25\r
+#define        MSTP_SMCI6      SYSTEM.MSTPCRB.BIT.MSTPB25\r
+#define        MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23\r
+#define        MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21\r
+#define        MSTP_RIIC1      SYSTEM.MSTPCRB.BIT.MSTPB20\r
+#define        MSTP_USB0       SYSTEM.MSTPCRB.BIT.MSTPB19\r
+#define        MSTP_USB1       SYSTEM.MSTPCRB.BIT.MSTPB18\r
+#define        MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17\r
+#define        MSTP_RSPI1      SYSTEM.MSTPCRB.BIT.MSTPB16\r
+#define        MSTP_EDMAC      SYSTEM.MSTPCRB.BIT.MSTPB15\r
+#define        MSTP_CAN0       SYSTEM.MSTPCRB.BIT.MSTPB0\r
+#define        MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC1\r
+#define        MSTP_RAM1       SYSTEM.MSTPCRC.BIT.MSTPC0\r
+\r
+#define        __IR( x )               ICU.IR[ IR ## x ].BIT.IR\r
+#define         _IR( x )               __IR( x )\r
+#define          IR( x , y )   _IR( _ ## x ## _ ## y )\r
+#define        __DTCE( x )             ICU.DTCER[ DTCE ## x ].BIT.DTCE\r
+#define         _DTCE( x )             __DTCE( x )\r
+#define          DTCE( x , y ) _DTCE( _ ## x ## _ ## y )\r
+#define        __IEN( x )              ICU.IER[ IER ## x ].BIT.IEN ## x\r
+#define         _IEN( x )              __IEN( x )\r
+#define          IEN( x , y )  _IEN( _ ## x ## _ ## y )\r
+#define        __IPR( x )              ICU.IPR[ IPR ## x ].BIT.IPR\r
+#define         _IPR( x )              __IPR( x )\r
+#define          IPR( x , y )  _IPR( _ ## x ## _ ## y )\r
+#define        __VECT( x )             VECT ## x\r
+#define         _VECT( x )             __VECT( x )\r
+#define          VECT( x , y ) _VECT( _ ## x ## _ ## y )\r
+#define        __MSTP( x )             MSTP ## x\r
+#define         _MSTP( x )             __MSTP( x )\r
+#define          MSTP( x )             _MSTP( _ ## x )\r
+\r
+#define SYSTEM (*(volatile struct st_system *)0x80000)\r
+#define BSC (*(volatile struct st_bsc *)0x81300)\r
+#define DMAC0 (*(volatile struct st_dmac0 *)0x82000)\r
+#define DMAC1 (*(volatile struct st_dmac1 *)0x82040)\r
+#define DMAC2 (*(volatile struct st_dmac1 *)0x82080)\r
+#define DMAC3 (*(volatile struct st_dmac1 *)0x820C0)\r
+#define DMAC (*(volatile struct st_dmac *)0x82200)\r
+#define DTC (*(volatile struct st_dtc *)0x82400)\r
+#define EXDMAC0 (*(volatile struct st_exdmac0 *)0x82800)\r
+#define EXDMAC1 (*(volatile struct st_exdmac0 *)0x82840)\r
+#define EXDMAC (*(volatile struct st_exdmac *)0x82A00)\r
+#define ICU (*(volatile struct st_icu *)0x87000)\r
+#define CMT (*(volatile struct st_cmt *)0x88000)\r
+#define CMT0 (*(volatile struct st_cmt0 *)0x88002)\r
+#define CMT1 (*(volatile struct st_cmt0 *)0x88008)\r
+#define CMT2 (*(volatile struct st_cmt0 *)0x88012)\r
+#define CMT3 (*(volatile struct st_cmt0 *)0x88018)\r
+#define WDT (*(volatile union un_wdt *)0x88028)\r
+#define IWDT (*(volatile struct st_iwdt *)0x88030)\r
+#define AD0 (*(volatile struct st_ad *)0x88040)\r
+#define AD1 (*(volatile struct st_ad *)0x88060)\r
+#define DA (*(volatile struct st_da *)0x880C0)\r
+#define PPG0 (*(volatile struct st_ppg0 *)0x881E6)\r
+#define PPG1 (*(volatile struct st_ppg1 *)0x881F0)\r
+#define TMR0 (*(volatile struct st_tmr0 *)0x88200)\r
+#define TMR1 (*(volatile struct st_tmr1 *)0x88201)\r
+#define TMR01 (*(volatile struct st_tmr01 *)0x88204)\r
+#define TMR2 (*(volatile struct st_tmr0 *)0x88210)\r
+#define TMR3 (*(volatile struct st_tmr1 *)0x88211)\r
+#define TMR23 (*(volatile struct st_tmr01 *)0x88214)\r
+#define SCI0 (*(volatile struct st_sci *)0x88240)\r
+#define SCI1 (*(volatile struct st_sci *)0x88248)\r
+#define SCI2 (*(volatile struct st_sci *)0x88250)\r
+#define SCI3 (*(volatile struct st_sci *)0x88258)\r
+#define SCI5 (*(volatile struct st_sci *)0x88268)\r
+#define SCI6 (*(volatile struct st_sci *)0x88270)\r
+#define SMCI0 (*(volatile struct st_smci *)0x88240)\r
+#define SMCI1 (*(volatile struct st_smci *)0x88248)\r
+#define SMCI2 (*(volatile struct st_smci *)0x88250)\r
+#define SMCI3 (*(volatile struct st_smci *)0x88258)\r
+#define SMCI5 (*(volatile struct st_smci *)0x88268)\r
+#define SMCI6 (*(volatile struct st_smci *)0x88270)\r
+#define CRC (*(volatile struct st_crc *)0x88280)\r
+#define RIIC0 (*(volatile struct st_riic *)0x88300)\r
+#define RIIC1 (*(volatile struct st_riic *)0x88320)\r
+#define RSPI0 (*(volatile struct st_rspi *)0x88380)\r
+#define RSPI1 (*(volatile struct st_rspi *)0x883A0)\r
+#define MTUA (*(volatile struct st_mtu *)0x8860A)\r
+#define MTU0 (*(volatile struct st_mtu0 *)0x88700)\r
+#define MTU1 (*(volatile struct st_mtu1 *)0x88780)\r
+#define MTU2 (*(volatile struct st_mtu2 *)0x88800)\r
+#define MTU3 (*(volatile struct st_mtu3 *)0x88600)\r
+#define MTU4 (*(volatile struct st_mtu4 *)0x88600)\r
+#define MTU5 (*(volatile struct st_mtu5 *)0x88880)\r
+#define POE (*(volatile struct st_poe *)0x88900)\r
+#define MTUB (*(volatile struct st_mtu *)0x88A0A)\r
+#define MTU6 (*(volatile struct st_mtu0 *)0x88B00)\r
+#define MTU7 (*(volatile struct st_mtu1 *)0x88B80)\r
+#define MTU8 (*(volatile struct st_mtu2 *)0x88C00)\r
+#define MTU9 (*(volatile struct st_mtu3 *)0x88A00)\r
+#define MTU10 (*(volatile struct st_mtu4 *)0x88A00)\r
+#define MTU11 (*(volatile struct st_mtu5 *)0x88C80)\r
+#define S12AD (*(volatile struct st_s12ad *)0x89000)\r
+#define PORT0 (*(volatile struct st_port0 *)0x8C000)\r
+#define PORT1 (*(volatile struct st_port1 *)0x8C001)\r
+#define PORT2 (*(volatile struct st_port2 *)0x8C002)\r
+#define PORT3 (*(volatile struct st_port3 *)0x8C003)\r
+#define PORT4 (*(volatile struct st_port4 *)0x8C004)\r
+#define PORT5 (*(volatile struct st_port5 *)0x8C005)\r
+#define PORT6 (*(volatile struct st_port6 *)0x8C006)\r
+#define PORT7 (*(volatile struct st_port7 *)0x8C007)\r
+#define PORT8 (*(volatile struct st_port8 *)0x8C008)\r
+#define PORT9 (*(volatile struct st_port9 *)0x8C009)\r
+#define PORTA (*(volatile struct st_porta *)0x8C00A)\r
+#define PORTB (*(volatile struct st_portb *)0x8C00B)\r
+#define PORTC (*(volatile struct st_portc *)0x8C00C)\r
+#define PORTD (*(volatile struct st_portd *)0x8C00D)\r
+#define PORTE (*(volatile struct st_porte *)0x8C00E)\r
+#define PORTF (*(volatile struct st_portf *)0x8C00F)\r
+#define PORTG (*(volatile struct st_portg *)0x8C010)\r
+#define IOPORT (*(volatile struct st_ioport *)0x8C100)\r
+#define FLASH (*(volatile struct st_flash *)0x8C288)\r
+#define RTC (*(volatile struct st_rtc *)0x8C400)\r
+#define CAN0 (*(volatile struct st_can *)0x90200)\r
+#define USB0 (*(volatile struct st_usb0 *)0xA0000)\r
+#define USB1 (*(volatile struct st_usb0 *)0xA0200)\r
+#define USB (*(volatile struct st_usb *)0xA0400)\r
+#define EDMAC (*(volatile struct st_edmac *)0xC0000)\r
+#define ETHERC (*(volatile struct st_etherc *)0xC0100)\r
+\r
+#elif __RX_BIG_ENDIAN__                /*Big endian*/\r
+\r
+struct st_system {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short MDE:1;\r
+            unsigned short :5;\r
+            unsigned short MD1:1;\r
+            unsigned short MD0:1;\r
+        } BIT;\r
+    } MDMONR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :9;\r
+            unsigned short UBTS:1;\r
+            unsigned short :1;\r
+            unsigned short BOTS:1;\r
+            unsigned short BSW:2;\r
+            unsigned short EXB:1;\r
+            unsigned short IROM:1;\r
+        } BIT;\r
+    } MDSR;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short :6;\r
+            unsigned short EXBE:1;\r
+            unsigned short ROME:1;\r
+        } BIT;\r
+    } SYSCR0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :15;\r
+            unsigned short RAME:1;\r
+        } BIT;\r
+    } SYSCR1;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SSBY:1;\r
+            unsigned short OPE:1;\r
+            unsigned short :1;\r
+            unsigned short STS:5;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } SBYCR;\r
+    unsigned char wk2[2];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long ACSE:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPA29:1;\r
+            unsigned long MSTPA28:1;\r
+            unsigned long :4;\r
+            unsigned long MSTPA23:1;\r
+            unsigned long MSTPA22:1;\r
+            unsigned long :2;\r
+            unsigned long MSTPA19:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPA17:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPA15:1;\r
+            unsigned long MSTPA14:1;\r
+            unsigned long :2;\r
+            unsigned long MSTPA11:1;\r
+            unsigned long MSTPA10:1;\r
+            unsigned long MSTPA9:1;\r
+            unsigned long MSTPA8:1;\r
+            unsigned long :2;\r
+            unsigned long MSTPA5:1;\r
+            unsigned long MSTPA4:1;\r
+            unsigned long :4;\r
+        } BIT;\r
+    } MSTPCRA;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long MSTPB31:1;\r
+            unsigned long MSTPB30:1;\r
+            unsigned long MSTPB29:1;\r
+            unsigned long MSTPB28:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPB26:1;\r
+            unsigned long MSTPB25:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPB23:1;\r
+            unsigned long :1;\r
+            unsigned long MSTPB21:1;\r
+            unsigned long MSTPB20:1;\r
+            unsigned long MSTPB19:1;\r
+            unsigned long MSTPB18:1;\r
+            unsigned long MSTPB17:1;\r
+            unsigned long MSTPB16:1;\r
+            unsigned long MSTPB15:1;\r
+            unsigned long :14;\r
+            unsigned long MSTPB0:1;\r
+        } BIT;\r
+    } MSTPCRB;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :30;\r
+            unsigned long MSTPC1:1;\r
+            unsigned long MSTPC0:1;\r
+        } BIT;\r
+    } MSTPCRC;\r
+    unsigned char wk3[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :4;\r
+            unsigned long ICK:4;\r
+            unsigned long PSTOP1:1;\r
+            unsigned long PSTOP0:1;\r
+            unsigned long :2;\r
+            unsigned long BCK:4;\r
+            unsigned long :4;\r
+            unsigned long PCK:4;\r
+            unsigned long :8;\r
+        } BIT;\r
+    } SCKCR;\r
+    unsigned char wk4[12];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char BCLKDIV:1;\r
+        } BIT;\r
+    } BCKCR;\r
+    unsigned char wk5[15];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short OSTDE:1;\r
+            unsigned short OSTDF:1;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } OSTDCR;\r
+    unsigned char wk6[49726];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DPSBY:1;\r
+            unsigned char IOKEEP:1;\r
+            unsigned char RAMCUT2:1;\r
+            unsigned char RAMCUT1:1;\r
+            unsigned char :3;\r
+            unsigned char RAMCUT0:1;\r
+        } BIT;\r
+    } DPSBYCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char WTSTS:6;\r
+        } BIT;\r
+    } DPSWCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DNMIE:1;\r
+            unsigned char DUSBE:1;\r
+            unsigned char DRTCE:1;\r
+            unsigned char DLVDE:1;\r
+            unsigned char DIRQ3E:1;\r
+            unsigned char DIRQ2E:1;\r
+            unsigned char DIRQ1E:1;\r
+            unsigned char DIRQ0E:1;\r
+        } BIT;\r
+    } DPSIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DNMIF:1;\r
+            unsigned char DUSBF:1;\r
+            unsigned char DRTCFF:1;\r
+            unsigned char DLVDF:1;\r
+            unsigned char DIRQ3F:1;\r
+            unsigned char DIRQ2F:1;\r
+            unsigned char DIRQ1F:1;\r
+            unsigned char DIRQ0F:1;\r
+        } BIT;\r
+    } DPSIFR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DNMIEG:1;\r
+            unsigned char :3;\r
+            unsigned char DIRQ3EG:1;\r
+            unsigned char DIRQ2EG:1;\r
+            unsigned char DIRQ1EG:1;\r
+            unsigned char DIRQ0EG:1;\r
+        } BIT;\r
+    } DPSIEGR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DPSRSTF:1;\r
+            unsigned char :4;\r
+            unsigned char LVD2F:1;\r
+            unsigned char LVD1F:1;\r
+            unsigned char PORF:1;\r
+        } BIT;\r
+    } RSTSR;\r
+    unsigned char wk7[4];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char SUBSTOP:1;\r
+        } BIT;\r
+    } SUBOSCCR;\r
+    unsigned char wk8[1];\r
+    unsigned char LVDKEYR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char LVD2E:1;\r
+            unsigned char LVD2RI:1;\r
+            unsigned char :2;\r
+            unsigned char LVD1E:1;\r
+            unsigned char LVD1RI:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } LVDCR;\r
+    unsigned char wk9[2];\r
+    unsigned char DPSBKR[32];\r
+};\r
+\r
+struct st_bsc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char STSCLR:1;\r
+        } BIT;\r
+    } BERCLR;\r
+    unsigned char wk0[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char TOEN:1;\r
+            unsigned char IGAEN:1;\r
+        } BIT;\r
+    } BEREN;\r
+    unsigned char wk1[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char MST:3;\r
+            unsigned char :2;\r
+            unsigned char TO:1;\r
+            unsigned char IA:1;\r
+        } BIT;\r
+    } BERSR1;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ADDR:13;\r
+            unsigned short :3;\r
+        } BIT;\r
+    } BERSR2;\r
+    unsigned char wk3[7414];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS0MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS0WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS0WCR2;\r
+    unsigned char wk4[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS1MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS1WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS1WCR2;\r
+    unsigned char wk5[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS2MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS2WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS2WCR2;\r
+    unsigned char wk6[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS3MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS3WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS3WCR2;\r
+    unsigned char wk7[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS4MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS4WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS4WCR2;\r
+    unsigned char wk8[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS5MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS5WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS5WCR2;\r
+    unsigned char wk9[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS6MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS6WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS6WCR2;\r
+    unsigned char wk10[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short PRMOD:1;\r
+            unsigned short :5;\r
+            unsigned short PWENB:1;\r
+            unsigned short PRENB:1;\r
+            unsigned short :4;\r
+            unsigned short EWENB:1;\r
+            unsigned short :2;\r
+            unsigned short WRMOD:1;\r
+        } BIT;\r
+    } CS7MOD;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long CSRWAIT:5;\r
+            unsigned long :3;\r
+            unsigned long CSWWAIT:5;\r
+            unsigned long :5;\r
+            unsigned long CSPRWAIT:3;\r
+            unsigned long :5;\r
+            unsigned long CSPWWAIT:3;\r
+        } BIT;\r
+    } CS7WCR1;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long CSON:3;\r
+            unsigned long :1;\r
+            unsigned long WDON:3;\r
+            unsigned long :1;\r
+            unsigned long WRON:3;\r
+            unsigned long :1;\r
+            unsigned long RDON:3;\r
+            unsigned long :5;\r
+            unsigned long WDOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSWOFF:3;\r
+            unsigned long :1;\r
+            unsigned long CSROFF:3;\r
+        } BIT;\r
+    } CS7WCR2;\r
+    unsigned char wk11[1926];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS0CR;\r
+    unsigned char wk12[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS0REC;\r
+    unsigned char wk13[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS1CR;\r
+    unsigned char wk14[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS1REC;\r
+    unsigned char wk15[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS2CR;\r
+    unsigned char wk16[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS2REC;\r
+    unsigned char wk17[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS3CR;\r
+    unsigned char wk18[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS3REC;\r
+    unsigned char wk19[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS4CR;\r
+    unsigned char wk20[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS4REC;\r
+    unsigned char wk21[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS5CR;\r
+    unsigned char wk22[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS5REC;\r
+    unsigned char wk23[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS6CR;\r
+    unsigned char wk24[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS6REC;\r
+    unsigned char wk25[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short EMODE:1;\r
+            unsigned short :2;\r
+            unsigned short BSIZE:2;\r
+            unsigned short :3;\r
+            unsigned short EXENB:1;\r
+        } BIT;\r
+    } CS7CR;\r
+    unsigned char wk26[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short WRCV:4;\r
+            unsigned short :4;\r
+            unsigned short RRCV:4;\r
+        } BIT;\r
+    } CS7REC;\r
+    unsigned char wk27[900];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char BSIZE:2;\r
+            unsigned char :3;\r
+            unsigned char EXENB:1;\r
+        } BIT;\r
+    } SDCCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char EMODE:1;\r
+        } BIT;\r
+    } SDCMOD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char BE:1;\r
+        } BIT;\r
+    } SDAMOD;\r
+    unsigned char wk28[13];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char SFEN:1;\r
+        } BIT;\r
+    } SDSELF;\r
+    unsigned char wk29[3];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short REFW:4;\r
+            unsigned short RFC:12;\r
+        } BIT;\r
+    } SDRFCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char RFEN:1;\r
+        } BIT;\r
+    } SDRFEN;\r
+    unsigned char wk30[9];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char INIRQ:1;\r
+        } BIT;\r
+    } SDICR;\r
+    unsigned char wk31[3];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :5;\r
+            unsigned short PRC:3;\r
+            unsigned short ARFC:4;\r
+            unsigned short ARFI:4;\r
+        } BIT;\r
+    } SDIR;\r
+    unsigned char wk32[26];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char MXC:2;\r
+        } BIT;\r
+    } SDADR;\r
+    unsigned char wk33[3];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :13;\r
+            unsigned long RAS:3;\r
+            unsigned long :2;\r
+            unsigned long RCD:2;\r
+            unsigned long RP:3;\r
+            unsigned long WR:1;\r
+            unsigned long :5;\r
+            unsigned long CL:3;\r
+        } BIT;\r
+    } SDTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :1;\r
+            unsigned short MR:15;\r
+        } BIT;\r
+    } SDMOD;\r
+    unsigned char wk34[6];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char SRFST:1;\r
+            unsigned char INIST:1;\r
+            unsigned char :2;\r
+            unsigned char MRSST:1;\r
+        } BIT;\r
+    } SDSR;\r
+};\r
+\r
+struct st_dmac0 {\r
+    void *DMSAR;\r
+    void *DMDAR;\r
+    unsigned long DMCRA;\r
+    unsigned short DMCRB;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MD:2;\r
+            unsigned short DTS:2;\r
+            unsigned short :2;\r
+            unsigned short SZ:2;\r
+            unsigned short :6;\r
+            unsigned short DCTG:2;\r
+        } BIT;\r
+    } DMTMD;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char DTIE:1;\r
+            unsigned char ESIE:1;\r
+            unsigned char RPTIE:1;\r
+            unsigned char SARIE:1;\r
+            unsigned char DARIE:1;\r
+        } BIT;\r
+    } DMINT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SM:2;\r
+            unsigned short :1;\r
+            unsigned short SARA:5;\r
+            unsigned short DM:2;\r
+            unsigned short :1;\r
+            unsigned short DARA:5;\r
+        } BIT;\r
+    } DMAMD;\r
+    unsigned char wk2[2];\r
+    unsigned long DMOFR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DTE:1;\r
+        } BIT;\r
+    } DMCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char CLRS:1;\r
+            unsigned char :3;\r
+            unsigned char SWREQ:1;\r
+        } BIT;\r
+    } DMREQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ACT:1;\r
+            unsigned char :2;\r
+            unsigned char DTIF:1;\r
+            unsigned char :3;\r
+            unsigned char ESIF:1;\r
+        } BIT;\r
+    } DMSTS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DISEL:1;\r
+        } BIT;\r
+    } DMCSL;\r
+};\r
+\r
+struct st_dmac1 {\r
+    void *DMSAR;\r
+    void *DMDAR;\r
+    unsigned long DMCRA;\r
+    unsigned short DMCRB;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MD:2;\r
+            unsigned short DTS:2;\r
+            unsigned short :2;\r
+            unsigned short SZ:2;\r
+            unsigned short :6;\r
+            unsigned short DCTG:2;\r
+        } BIT;\r
+    } DMTMD;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char DTIE:1;\r
+            unsigned char ESIE:1;\r
+            unsigned char RPTIE:1;\r
+            unsigned char SARIE:1;\r
+            unsigned char DARIE:1;\r
+        } BIT;\r
+    } DMINT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SM:2;\r
+            unsigned short :1;\r
+            unsigned short SARA:5;\r
+            unsigned short DM:2;\r
+            unsigned short :1;\r
+            unsigned short DARA:5;\r
+        } BIT;\r
+    } DMAMD;\r
+    unsigned char wk2[6];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DTE:1;\r
+        } BIT;\r
+    } DMCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char CLRS:1;\r
+            unsigned char :3;\r
+            unsigned char SWREQ:1;\r
+        } BIT;\r
+    } DMREQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ACT:1;\r
+            unsigned char :2;\r
+            unsigned char DTIF:1;\r
+            unsigned char :3;\r
+            unsigned char ESIF:1;\r
+        } BIT;\r
+    } DMSTS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DISEL:1;\r
+        } BIT;\r
+    } DMCSL;\r
+};\r
+\r
+struct st_dmac {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DMST:1;\r
+        } BIT;\r
+    } DMAST;\r
+};\r
+\r
+struct st_dtc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char RRS:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } DTCCR;\r
+    unsigned char wk0[3];\r
+    void *DTCVBR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char SHORT:1;\r
+        } BIT;\r
+    } DTCADMOD;\r
+    unsigned char wk1[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DTCST:1;\r
+        } BIT;\r
+    } DTCST;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ACT:1;\r
+            unsigned short :7;\r
+            unsigned short VECN:8;\r
+        } BIT;\r
+    } DTCSTS;\r
+};\r
+\r
+struct st_exdmac0 {\r
+    void *EDMSAR;\r
+    void *EDMDAR;\r
+    unsigned long EDMCRA;\r
+    unsigned short EDMCRB;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short MD:2;\r
+            unsigned short DTS:2;\r
+            unsigned short :2;\r
+            unsigned short SZ:2;\r
+            unsigned short :6;\r
+            unsigned short DCTG:2;\r
+        } BIT;\r
+    } EDMTMD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char DACKS:1;\r
+            unsigned char DACKE:1;\r
+            unsigned char DACKW:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } EDMOMD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char DTIE:1;\r
+            unsigned char ESIE:1;\r
+            unsigned char RPTIE:1;\r
+            unsigned char SARIE:1;\r
+            unsigned char DARIE:1;\r
+        } BIT;\r
+    } EDMINT;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :14;\r
+            unsigned long AMS:1;\r
+            unsigned long DIR:1;\r
+            unsigned long SM:2;\r
+            unsigned long :1;\r
+            unsigned long SARA:5;\r
+            unsigned long DM:2;\r
+            unsigned long :1;\r
+            unsigned long DARA:5;\r
+        } BIT;\r
+    } EDMAMD;\r
+    unsigned long EDMOFR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DTE:1;\r
+        } BIT;\r
+    } EDMCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char CLRS:1;\r
+            unsigned char :3;\r
+            unsigned char SWREQ:1;\r
+        } BIT;\r
+    } EDMREQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ACT:1;\r
+            unsigned char :2;\r
+            unsigned char DTIF:1;\r
+            unsigned char :3;\r
+            unsigned char ESIF:1;\r
+        } BIT;\r
+    } EDMSTS;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char DREQS:2;\r
+        } BIT;\r
+    } EDMRMD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char EREQ:1;\r
+        } BIT;\r
+    } EDMERF;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char PREQ:1;\r
+        } BIT;\r
+    } EDMPRF;\r
+};\r
+\r
+struct st_exdmac {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DMST:1;\r
+        } BIT;\r
+    } EDMAST;\r
+    unsigned char wk0[479];\r
+    unsigned long CLSBR0;\r
+    unsigned long CLSBR1;\r
+    unsigned long CLSBR2;\r
+    unsigned long CLSBR3;\r
+    unsigned long CLSBR4;\r
+    unsigned long CLSBR5;\r
+    unsigned long CLSBR6;\r
+    unsigned long CLSBR7;\r
+};\r
+\r
+struct st_icu {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char IR:1;\r
+        } BIT;\r
+    } IR[254];\r
+    unsigned char wk17[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char DTCE:1;\r
+        } BIT;\r
+    } DTCER[254];\r
+    unsigned char wk47[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IEN7:1;\r
+            unsigned char IEN6:1;\r
+            unsigned char IEN5:1;\r
+            unsigned char IEN4:1;\r
+            unsigned char IEN3:1;\r
+            unsigned char IEN2:1;\r
+            unsigned char IEN1:1;\r
+            unsigned char IEN0:1;\r
+        } BIT;\r
+    } IER[32];\r
+    unsigned char wk50[192];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char SWINT:1;\r
+        } BIT;\r
+    } SWINTR;\r
+    unsigned char wk51[15];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FIEN:1;\r
+            unsigned short :7;\r
+            unsigned short FVCT:8;\r
+        } BIT;\r
+    } FIR;\r
+    unsigned char wk52[14];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char IPR:4;\r
+        } BIT;\r
+    } IPR[144];\r
+    unsigned char wk67[112];\r
+    unsigned char DMRSR0;\r
+    unsigned char wk68[3];\r
+    unsigned char DMRSR1;\r
+    unsigned char wk69[3];\r
+    unsigned char DMRSR2;\r
+    unsigned char wk70[3];\r
+    unsigned char DMRSR3;\r
+    unsigned char wk71[243];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char IRQMD:2;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } IRQCR[16];\r
+    unsigned char wk72[112];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char OSTST:1;\r
+            unsigned char LVDST:1;\r
+            unsigned char NMIST:1;\r
+        } BIT;\r
+    } NMISR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char OSTEN:1;\r
+            unsigned char LVDEN:1;\r
+            unsigned char NMIEN:1;\r
+        } BIT;\r
+    } NMIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char OSTCLR:1;\r
+            unsigned char :1;\r
+            unsigned char NMICLR:1;\r
+        } BIT;\r
+    } NMICLR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char NMIMD:1;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } NMICR;\r
+};\r
+\r
+struct st_cmt {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :14;\r
+            unsigned short STR1:1;\r
+            unsigned short STR0:1;\r
+        } BIT;\r
+    } CMSTR0;\r
+    unsigned char wk0[14];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :14;\r
+            unsigned short STR3:1;\r
+            unsigned short STR2:1;\r
+        } BIT;\r
+    } CMSTR1;\r
+};\r
+\r
+struct st_cmt0 {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :9;\r
+            unsigned short CMIE:1;\r
+            unsigned short :4;\r
+            unsigned short CKS:2;\r
+        } BIT;\r
+    } CMCR;\r
+    unsigned short CMCNT;\r
+    unsigned short CMCOR;\r
+};\r
+\r
+union un_wdt {\r
+    struct {\r
+        union {\r
+            unsigned char BYTE;\r
+            struct {\r
+                unsigned char :1;\r
+                unsigned char TMS:1;\r
+                unsigned char TME:1;\r
+                unsigned char :2;\r
+                unsigned char CKS:3;\r
+            } BIT;\r
+        } TCSR;\r
+        unsigned char TCNT;\r
+        unsigned char wk0[1];\r
+        union {\r
+            unsigned char BYTE;\r
+            struct {\r
+                unsigned char WOVF:1;\r
+                unsigned char RSTE:1;\r
+                unsigned char :6;\r
+            } BIT;\r
+        } RSTCSR;\r
+    } READ;\r
+    struct {\r
+        unsigned short WINA;\r
+        unsigned short WINB;\r
+    } WRITE;\r
+};\r
+\r
+struct st_iwdt {\r
+    unsigned char IWDTRR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short CKS:4;\r
+            unsigned short :2;\r
+            unsigned short TOPS:2;\r
+        } BIT;\r
+    } IWDTCR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :1;\r
+            unsigned short UNDFF:1;\r
+            unsigned short CNTVAL:14;\r
+        } BIT;\r
+    } IWDTSR;\r
+};\r
+\r
+struct st_ad {\r
+    unsigned short ADDRA;\r
+    unsigned short ADDRB;\r
+    unsigned short ADDRC;\r
+    unsigned short ADDRD;\r
+    unsigned char wk0[8];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char ADIE:1;\r
+            unsigned char ADST:1;\r
+            unsigned char :1;\r
+            unsigned char CH:4;\r
+        } BIT;\r
+    } ADCSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TRGS:3;\r
+            unsigned char :1;\r
+            unsigned char CKS:2;\r
+            unsigned char MODE:2;\r
+        } BIT;\r
+    } ADCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DPSEL:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } ADDPR;\r
+    unsigned char ADSSTR;\r
+    unsigned char wk1[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char DIAG:2;\r
+        } BIT;\r
+    } ADDIAGR;\r
+};\r
+\r
+struct st_da {\r
+    unsigned short DADR0;\r
+    unsigned short DADR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DAOE1:1;\r
+            unsigned char DAOE0:1;\r
+            unsigned char DAE:1;\r
+            unsigned char :5;\r
+        } BIT;\r
+    } DACR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DPSEL:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } DADPR;\r
+};\r
+\r
+struct st_ppg0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G3CMS:2;\r
+            unsigned char G2CMS:2;\r
+            unsigned char G1CMS:2;\r
+            unsigned char G0CMS:2;\r
+        } BIT;\r
+    } PCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G3INV:1;\r
+            unsigned char G2INV:1;\r
+            unsigned char G1INV:1;\r
+            unsigned char G0INV:1;\r
+            unsigned char G3NOV:1;\r
+            unsigned char G2NOV:1;\r
+            unsigned char G1NOV:1;\r
+            unsigned char G0NOV:1;\r
+        } BIT;\r
+    } PMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER15:1;\r
+            unsigned char NDER14:1;\r
+            unsigned char NDER13:1;\r
+            unsigned char NDER12:1;\r
+            unsigned char NDER11:1;\r
+            unsigned char NDER10:1;\r
+            unsigned char NDER9:1;\r
+            unsigned char NDER8:1;\r
+        } BIT;\r
+    } NDERH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER7:1;\r
+            unsigned char NDER6:1;\r
+            unsigned char NDER5:1;\r
+            unsigned char NDER4:1;\r
+            unsigned char NDER3:1;\r
+            unsigned char NDER2:1;\r
+            unsigned char NDER1:1;\r
+            unsigned char NDER0:1;\r
+        } BIT;\r
+    } NDERL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD15:1;\r
+            unsigned char POD14:1;\r
+            unsigned char POD13:1;\r
+            unsigned char POD12:1;\r
+            unsigned char POD11:1;\r
+            unsigned char POD10:1;\r
+            unsigned char POD9:1;\r
+            unsigned char POD8:1;\r
+        } BIT;\r
+    } PODRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD7:1;\r
+            unsigned char POD6:1;\r
+            unsigned char POD5:1;\r
+            unsigned char POD4:1;\r
+            unsigned char POD3:1;\r
+            unsigned char POD2:1;\r
+            unsigned char POD1:1;\r
+            unsigned char POD0:1;\r
+        } BIT;\r
+    } PODRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR15:1;\r
+            unsigned char NDR14:1;\r
+            unsigned char NDR13:1;\r
+            unsigned char NDR12:1;\r
+            unsigned char NDR11:1;\r
+            unsigned char NDR10:1;\r
+            unsigned char NDR9:1;\r
+            unsigned char NDR8:1;\r
+        } BIT;\r
+    } NDRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR7:1;\r
+            unsigned char NDR6:1;\r
+            unsigned char NDR5:1;\r
+            unsigned char NDR4:1;\r
+            unsigned char NDR3:1;\r
+            unsigned char NDR2:1;\r
+            unsigned char NDR1:1;\r
+            unsigned char NDR0:1;\r
+        } BIT;\r
+    } NDRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char NDR11:1;\r
+            unsigned char NDR10:1;\r
+            unsigned char NDR9:1;\r
+            unsigned char NDR8:1;\r
+        } BIT;\r
+    } NDRH2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char NDR3:1;\r
+            unsigned char NDR2:1;\r
+            unsigned char NDR1:1;\r
+            unsigned char NDR0:1;\r
+        } BIT;\r
+    } NDRL2;\r
+};\r
+\r
+struct st_ppg1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char PTRSL:1;\r
+        } BIT;\r
+    } PTRSLR;\r
+    unsigned char wk0[5];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G3CMS:2;\r
+            unsigned char G2CMS:2;\r
+            unsigned char G1CMS:2;\r
+            unsigned char G0CMS:2;\r
+        } BIT;\r
+    } PCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char G3INV:1;\r
+            unsigned char G2INV:1;\r
+            unsigned char G1INV:1;\r
+            unsigned char G0INV:1;\r
+            unsigned char G3NOV:1;\r
+            unsigned char G2NOV:1;\r
+            unsigned char G1NOV:1;\r
+            unsigned char G0NOV:1;\r
+        } BIT;\r
+    } PMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER31:1;\r
+            unsigned char NDER30:1;\r
+            unsigned char NDER29:1;\r
+            unsigned char NDER28:1;\r
+            unsigned char NDER27:1;\r
+            unsigned char NDER26:1;\r
+            unsigned char NDER25:1;\r
+            unsigned char NDER24:1;\r
+        } BIT;\r
+    } NDERH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDER23:1;\r
+            unsigned char NDER22:1;\r
+            unsigned char NDER21:1;\r
+            unsigned char NDER20:1;\r
+            unsigned char NDER19:1;\r
+            unsigned char NDER18:1;\r
+            unsigned char NDER17:1;\r
+            unsigned char NDER16:1;\r
+        } BIT;\r
+    } NDERL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD31:1;\r
+            unsigned char POD30:1;\r
+            unsigned char POD29:1;\r
+            unsigned char POD28:1;\r
+            unsigned char POD27:1;\r
+            unsigned char POD26:1;\r
+            unsigned char POD25:1;\r
+            unsigned char POD24:1;\r
+        } BIT;\r
+    } PODRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POD23:1;\r
+            unsigned char POD22:1;\r
+            unsigned char POD21:1;\r
+            unsigned char POD20:1;\r
+            unsigned char POD19:1;\r
+            unsigned char POD18:1;\r
+            unsigned char POD17:1;\r
+            unsigned char POD16:1;\r
+        } BIT;\r
+    } PODRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR31:1;\r
+            unsigned char NDR30:1;\r
+            unsigned char NDR29:1;\r
+            unsigned char NDR28:1;\r
+            unsigned char NDR27:1;\r
+            unsigned char NDR26:1;\r
+            unsigned char NDR25:1;\r
+            unsigned char NDR24:1;\r
+        } BIT;\r
+    } NDRH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char NDR23:1;\r
+            unsigned char NDR22:1;\r
+            unsigned char NDR21:1;\r
+            unsigned char NDR20:1;\r
+            unsigned char NDR19:1;\r
+            unsigned char NDR18:1;\r
+            unsigned char NDR17:1;\r
+            unsigned char NDR16:1;\r
+        } BIT;\r
+    } NDRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char NDR27:1;\r
+            unsigned char NDR26:1;\r
+            unsigned char NDR25:1;\r
+            unsigned char NDR24:1;\r
+        } BIT;\r
+    } NDRH2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char NDR19:1;\r
+            unsigned char NDR18:1;\r
+            unsigned char NDR17:1;\r
+            unsigned char NDR16:1;\r
+        } BIT;\r
+    } NDRL2;\r
+};\r
+\r
+struct st_tmr0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CMIEB:1;\r
+            unsigned char CMIEA:1;\r
+            unsigned char OVIE:1;\r
+            unsigned char CCLR:2;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char ADTE:1;\r
+            unsigned char OSB:2;\r
+            unsigned char OSA:2;\r
+        } BIT;\r
+    } TCSR;\r
+    unsigned char wk1[1];\r
+    unsigned char TCORA;\r
+    unsigned char wk2[1];\r
+    unsigned char TCORB;\r
+    unsigned char wk3[1];\r
+    unsigned char TCNT;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TMRIS:1;\r
+            unsigned char :2;\r
+            unsigned char CSS:2;\r
+            unsigned char CKS:3;\r
+        } BIT;\r
+    } TCCR;\r
+};\r
+\r
+struct st_tmr1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CMIEB:1;\r
+            unsigned char CMIEA:1;\r
+            unsigned char OVIE:1;\r
+            unsigned char CCLR:2;\r
+            unsigned char :3;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char OSB:2;\r
+            unsigned char OSA:2;\r
+        } BIT;\r
+    } TCSR;\r
+    unsigned char wk1[1];\r
+    unsigned char TCORA;\r
+    unsigned char wk2[1];\r
+    unsigned char TCORB;\r
+    unsigned char wk3[1];\r
+    unsigned char TCNT;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TMRIS:1;\r
+            unsigned char :2;\r
+            unsigned char CSS:2;\r
+            unsigned char CKS:3;\r
+        } BIT;\r
+    } TCCR;\r
+};\r
+\r
+struct st_tmr01 {\r
+    unsigned short TCORA;\r
+    unsigned short TCORB;\r
+    unsigned short TCNT;\r
+    unsigned short TCCR;\r
+};\r
+\r
+struct st_sci {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CM:1;\r
+            unsigned char CHR:1;\r
+            unsigned char PE:1;\r
+            unsigned char PM:1;\r
+            unsigned char STOP:1;\r
+            unsigned char MP:1;\r
+            unsigned char CKS:2;\r
+        } BIT;\r
+    } SMR;\r
+    unsigned char BRR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TIE:1;\r
+            unsigned char RIE:1;\r
+            unsigned char TE:1;\r
+            unsigned char RE:1;\r
+            unsigned char MPIE:1;\r
+            unsigned char TEIE:1;\r
+            unsigned char CKE:2;\r
+        } BIT;\r
+    } SCR;\r
+    unsigned char TDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char ORER:1;\r
+            unsigned char FER:1;\r
+            unsigned char PER:1;\r
+            unsigned char TEND:1;\r
+            unsigned char MPB:1;\r
+            unsigned char MPBT:1;\r
+        } BIT;\r
+    } SSR;\r
+    unsigned char RDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char SDIR:1;\r
+            unsigned char SINV:1;\r
+            unsigned char :1;\r
+            unsigned char SMIF:1;\r
+        } BIT;\r
+    } SCMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char ABCS:1;\r
+            unsigned char :3;\r
+            unsigned char ACS0:1;\r
+        } BIT;\r
+    } SEMR;\r
+};\r
+\r
+struct st_smci {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char GM:1;\r
+            unsigned char BLK:1;\r
+            unsigned char PE:1;\r
+            unsigned char PM:1;\r
+            unsigned char BCP:2;\r
+            unsigned char CKS:2;\r
+        } BIT;\r
+    } SMR;\r
+    unsigned char BRR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TIE:1;\r
+            unsigned char RIE:1;\r
+            unsigned char TE:1;\r
+            unsigned char RE:1;\r
+            unsigned char :1;\r
+            unsigned char TEIE:1;\r
+            unsigned char CKE:2;\r
+        } BIT;\r
+    } SCR;\r
+    unsigned char TDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char ORER:1;\r
+            unsigned char ERS:1;\r
+            unsigned char PER:1;\r
+            unsigned char TEND:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } SSR;\r
+    unsigned char RDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BCP2:1;\r
+            unsigned char :3;\r
+            unsigned char SDIR:1;\r
+            unsigned char SINV:1;\r
+            unsigned char :1;\r
+            unsigned char SMIF:1;\r
+        } BIT;\r
+    } SCMR;\r
+};\r
+\r
+struct st_crc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DORCLR:1;\r
+            unsigned char :4;\r
+            unsigned char LMS:1;\r
+            unsigned char GPS:2;\r
+        } BIT;\r
+    } CRCCR;\r
+    unsigned char CRCDIR;\r
+    unsigned short CRCDOR;\r
+};\r
+\r
+struct st_riic {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ICE:1;\r
+            unsigned char IICRST:1;\r
+            unsigned char CLO:1;\r
+            unsigned char SOWP:1;\r
+            unsigned char SCLO:1;\r
+            unsigned char SDAO:1;\r
+            unsigned char SCLI:1;\r
+            unsigned char SDAI:1;\r
+        } BIT;\r
+    } ICCR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BBSY:1;\r
+            unsigned char MST:1;\r
+            unsigned char TRS:1;\r
+            unsigned char :1;\r
+            unsigned char SP:1;\r
+            unsigned char RS:1;\r
+            unsigned char ST:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } ICCR2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char MTWP:1;\r
+            unsigned char CKS:3;\r
+            unsigned char BCWP:1;\r
+            unsigned char BC:3;\r
+        } BIT;\r
+    } ICMR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char DLCS:1;\r
+            unsigned char SDDL:3;\r
+            unsigned char :1;\r
+            unsigned char TMOH:1;\r
+            unsigned char TMOL:1;\r
+            unsigned char TMOS:1;\r
+        } BIT;\r
+    } ICMR2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SMBS:1;\r
+            unsigned char WAIT:1;\r
+            unsigned char RDRFS:1;\r
+            unsigned char ACKWP:1;\r
+            unsigned char ACKBT:1;\r
+            unsigned char ACKBR:1;\r
+            unsigned char NF:2;\r
+        } BIT;\r
+    } ICMR3;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FMPE:1;\r
+            unsigned char SCLE:1;\r
+            unsigned char NFE:1;\r
+            unsigned char NACKE:1;\r
+            unsigned char SALE:1;\r
+            unsigned char NALE:1;\r
+            unsigned char MALE:1;\r
+            unsigned char TMOE:1;\r
+        } BIT;\r
+    } ICFER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char HOAE:1;\r
+            unsigned char :1;\r
+            unsigned char DIDE:1;\r
+            unsigned char :1;\r
+            unsigned char GCAE:1;\r
+            unsigned char SAR2E:1;\r
+            unsigned char SAR1E:1;\r
+            unsigned char SAR0E:1;\r
+        } BIT;\r
+    } ICSER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TIE:1;\r
+            unsigned char TEIE:1;\r
+            unsigned char RIE:1;\r
+            unsigned char NAKIE:1;\r
+            unsigned char SPIE:1;\r
+            unsigned char STIE:1;\r
+            unsigned char ALIE:1;\r
+            unsigned char TMOIE:1;\r
+        } BIT;\r
+    } ICIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char HOA:1;\r
+            unsigned char :1;\r
+            unsigned char DID:1;\r
+            unsigned char :1;\r
+            unsigned char GCA:1;\r
+            unsigned char AAS2:1;\r
+            unsigned char AAS1:1;\r
+            unsigned char AAS0:1;\r
+        } BIT;\r
+    } ICSR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TDRE:1;\r
+            unsigned char TEND:1;\r
+            unsigned char RDRF:1;\r
+            unsigned char NACKF:1;\r
+            unsigned char STOP:1;\r
+            unsigned char START:1;\r
+            unsigned char AL:1;\r
+            unsigned char TMOF:1;\r
+        } BIT;\r
+    } ICSR2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SVA:7;\r
+            unsigned char SVA0:1;\r
+        } BIT;\r
+    } SARL0;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SVA:2;\r
+            unsigned char FS:1;\r
+        } BIT;\r
+    } SARU0;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SVA:7;\r
+            unsigned char SVA0:1;\r
+        } BIT;\r
+    } SARL1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SVA:2;\r
+            unsigned char FS:1;\r
+        } BIT;\r
+    } SARU1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SVA:7;\r
+            unsigned char SVA0:1;\r
+        } BIT;\r
+    } SARL2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SVA:2;\r
+            unsigned char FS:1;\r
+        } BIT;\r
+    } SARU2;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char BRL:5;\r
+        } BIT;\r
+    } ICBRL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char BRH:5;\r
+        } BIT;\r
+    } ICBRH;\r
+    unsigned char ICDRT;\r
+    unsigned char ICDRR;\r
+};\r
+\r
+struct st_rspi {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPRIE:1;\r
+            unsigned char SPE:1;\r
+            unsigned char SPTIE:1;\r
+            unsigned char SPEIE:1;\r
+            unsigned char MSTR:1;\r
+            unsigned char MODFEN:1;\r
+            unsigned char TXMD:1;\r
+            unsigned char SPMS:1;\r
+        } BIT;\r
+    } SPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char SSLP3:1;\r
+            unsigned char SSLP2:1;\r
+            unsigned char SSLP1:1;\r
+            unsigned char SSLP0:1;\r
+        } BIT;\r
+    } SSLP;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char MOIFE:1;\r
+            unsigned char MOIFV:1;\r
+            unsigned char :1;\r
+            unsigned char SPOM:1;\r
+            unsigned char SPLP2:1;\r
+            unsigned char SPLP:1;\r
+        } BIT;\r
+    } SPPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char PERF:1;\r
+            unsigned char MODF:1;\r
+            unsigned char IDLNF:1;\r
+            unsigned char OVRF:1;\r
+        } BIT;\r
+    } SPSR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+    } SPDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SPSLN:3;\r
+        } BIT;\r
+    } SPSCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char SPECM:3;\r
+            unsigned char :1;\r
+            unsigned char SPCP:3;\r
+        } BIT;\r
+    } SPSSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SPR7:1;\r
+            unsigned char SPR6:1;\r
+            unsigned char SPR5:1;\r
+            unsigned char SPR4:1;\r
+            unsigned char SPR3:1;\r
+            unsigned char SPR2:1;\r
+            unsigned char SPR1:1;\r
+            unsigned char SPR0:1;\r
+        } BIT;\r
+    } SPBR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char SPLW:1;\r
+            unsigned char SPRDTD:1;\r
+            unsigned char SLSEL:2;\r
+            unsigned char SPFC:2;\r
+        } BIT;\r
+    } SPDCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SCKDL:3;\r
+        } BIT;\r
+    } SPCKD;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SLNDL:3;\r
+        } BIT;\r
+    } SSLND;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char SPNDL:3;\r
+        } BIT;\r
+    } SPND;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char PTE:1;\r
+            unsigned char SPIIE:1;\r
+            unsigned char SPOE:1;\r
+            unsigned char SPPE:1;\r
+        } BIT;\r
+    } SPCR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD3;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD4;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD5;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD6;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short SCKDEN:1;\r
+            unsigned short SLNDEN:1;\r
+            unsigned short SPNDEN:1;\r
+            unsigned short LSBF:1;\r
+            unsigned short SPB:4;\r
+            unsigned short SSLKP:1;\r
+            unsigned short SSLA:3;\r
+            unsigned short BRDV:2;\r
+            unsigned short CPOL:1;\r
+            unsigned short CPHA:1;\r
+        } BIT;\r
+    } SPCMD7;\r
+};\r
+\r
+struct st_mtu {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char OE4D:1;\r
+            unsigned char OE4C:1;\r
+            unsigned char OE3D:1;\r
+            unsigned char OE4B:1;\r
+            unsigned char OE4A:1;\r
+            unsigned char OE3B:1;\r
+        } BIT;\r
+    } TOER;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char BCD:1;\r
+            unsigned char N:1;\r
+            unsigned char P:1;\r
+            unsigned char FB:1;\r
+            unsigned char WF:1;\r
+            unsigned char VF:1;\r
+            unsigned char UF:1;\r
+        } BIT;\r
+    } TGCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char PSYE:1;\r
+            unsigned char :2;\r
+            unsigned char TOCL:1;\r
+            unsigned char TOCS:1;\r
+            unsigned char OLSN:1;\r
+            unsigned char OLSP:1;\r
+        } BIT;\r
+    } TOCR1;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BF:2;\r
+            unsigned char OLS3N:1;\r
+            unsigned char OLS3P:1;\r
+            unsigned char OLS2N:1;\r
+            unsigned char OLS2P:1;\r
+            unsigned char OLS1N:1;\r
+            unsigned char OLS1P:1;\r
+        } BIT;\r
+    } TOCR2;\r
+    unsigned char wk1[4];\r
+    unsigned short TCDR;\r
+    unsigned short TDDR;\r
+    unsigned char wk2[8];\r
+    unsigned short TCNTS;\r
+    unsigned short TCBR;\r
+    unsigned char wk3[12];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char T3AEN:1;\r
+            unsigned char T3ACOR:3;\r
+            unsigned char T4VEN:1;\r
+            unsigned char T4VCOR:3;\r
+        } BIT;\r
+    } TITCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char T3ACNT:3;\r
+            unsigned char :1;\r
+            unsigned char T4VCNT:3;\r
+        } BIT;\r
+    } TITCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char BTE:2;\r
+        } BIT;\r
+    } TBTER;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char TDRE:1;\r
+        } BIT;\r
+    } TDER;\r
+    unsigned char wk5[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char OLS3N:1;\r
+            unsigned char OLS3P:1;\r
+            unsigned char OLS2N:1;\r
+            unsigned char OLS2P:1;\r
+            unsigned char OLS1N:1;\r
+            unsigned char OLS1P:1;\r
+        } BIT;\r
+    } TOLBR;\r
+    unsigned char wk6[41];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCE:1;\r
+            unsigned char :6;\r
+            unsigned char WRE:1;\r
+        } BIT;\r
+    } TWCR;\r
+    unsigned char wk7[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CST4:1;\r
+            unsigned char CST3:1;\r
+            unsigned char :3;\r
+            unsigned char CST2:1;\r
+            unsigned char CST1:1;\r
+            unsigned char CST0:1;\r
+        } BIT;\r
+    } TSTR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SYNC4:1;\r
+            unsigned char SYNC3:1;\r
+            unsigned char :3;\r
+            unsigned char SYNC2:1;\r
+            unsigned char SYNC1:1;\r
+            unsigned char SYNC0:1;\r
+        } BIT;\r
+    } TSYR;\r
+    unsigned char wk8[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char RWE:1;\r
+        } BIT;\r
+    } TRWER;\r
+};\r
+\r
+struct st_mtu0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char BFE:1;\r
+            unsigned char BFB:1;\r
+            unsigned char BFA:1;\r
+            unsigned char MD:4;\r
+        } BIT;\r
+    } TMDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOB:4;\r
+            unsigned char IOA:4;\r
+        } BIT;\r
+    } TIORH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOD:4;\r
+            unsigned char IOC:4;\r
+        } BIT;\r
+    } TIORL;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTGE:1;\r
+            unsigned char :2;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TGIED:1;\r
+            unsigned char TGIEC:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEA:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char TSR;\r
+    unsigned short TCNT;\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned short TGRC;\r
+    unsigned short TGRD;\r
+    unsigned char wk0[16];\r
+    unsigned short TGRE;\r
+    unsigned short TGRF;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char TGIEF:1;\r
+            unsigned char TGIEE:1;\r
+        } BIT;\r
+    } TIER2;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char TTSE:1;\r
+            unsigned char TTSB:1;\r
+            unsigned char TTSA:1;\r
+        } BIT;\r
+    } TBTM;\r
+};\r
+\r
+struct st_mtu1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char MD:4;\r
+        } BIT;\r
+    } TMDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOB:4;\r
+            unsigned char IOA:4;\r
+        } BIT;\r
+    } TIOR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTGE:1;\r
+            unsigned char :1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char :2;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEA:1;\r
+        } BIT;\r
+    } TIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TCFD:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned short TCNT;\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned char wk1[4];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char I2BE:1;\r
+            unsigned char I2AE:1;\r
+            unsigned char I1BE:1;\r
+            unsigned char I1AE:1;\r
+        } BIT;\r
+    } TICCR;\r
+};\r
+\r
+struct st_mtu2 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char MD:4;\r
+        } BIT;\r
+    } TMDR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOB:4;\r
+            unsigned char IOA:4;\r
+        } BIT;\r
+    } TIOR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTGE:1;\r
+            unsigned char :1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char :2;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEA:1;\r
+        } BIT;\r
+    } TIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TCFD:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned short TCNT;\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+};\r
+\r
+struct st_mtu3 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char BFE:1;\r
+            unsigned char BFB:1;\r
+            unsigned char BFA:1;\r
+            unsigned char MD:4;\r
+        } BIT;\r
+    } TMDR;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOB:4;\r
+            unsigned char IOA:4;\r
+        } BIT;\r
+    } TIORH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOD:4;\r
+            unsigned char IOC:4;\r
+        } BIT;\r
+    } TIORL;\r
+    unsigned char wk2[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTGE:1;\r
+            unsigned char TTGE2:1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TGIED:1;\r
+            unsigned char TGIEC:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEA:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char wk3[7];\r
+    unsigned short TCNT;\r
+    unsigned char wk4[6];\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned char wk5[8];\r
+    unsigned short TGRC;\r
+    unsigned short TGRD;\r
+    unsigned char wk6[4];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TCFD:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned char wk7[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char TTSE:1;\r
+            unsigned char TTSB:1;\r
+            unsigned char TTSA:1;\r
+        } BIT;\r
+    } TBTM;\r
+};\r
+\r
+struct st_mtu4 {\r
+    unsigned char DMMY;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCR;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char BFE:1;\r
+            unsigned char BFB:1;\r
+            unsigned char BFA:1;\r
+            unsigned char MD:4;\r
+        } BIT;\r
+    } TMDR;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOB:4;\r
+            unsigned char IOA:4;\r
+        } BIT;\r
+    } TIORH;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char IOD:4;\r
+            unsigned char IOC:4;\r
+        } BIT;\r
+    } TIORL;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TTGE:1;\r
+            unsigned char TTGE2:1;\r
+            unsigned char TCIEU:1;\r
+            unsigned char TCIEV:1;\r
+            unsigned char TGIED:1;\r
+            unsigned char TGIEC:1;\r
+            unsigned char TGIEB:1;\r
+            unsigned char TGIEA:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char wk3[8];\r
+    unsigned short TCNT;\r
+    unsigned char wk4[8];\r
+    unsigned short TGRA;\r
+    unsigned short TGRB;\r
+    unsigned char wk5[8];\r
+    unsigned short TGRC;\r
+    unsigned short TGRD;\r
+    unsigned char wk6[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TCFD:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } TSR;\r
+    unsigned char wk7[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char TTSE:1;\r
+            unsigned char TTSB:1;\r
+            unsigned char TTSA:1;\r
+        } BIT;\r
+    } TBTM;\r
+    unsigned char wk8[6];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BF:2;\r
+            unsigned short :6;\r
+            unsigned short UT4AE:1;\r
+            unsigned short DT4AE:1;\r
+            unsigned short UT4BE:1;\r
+            unsigned short DT4BE:1;\r
+            unsigned short ITA3AE:1;\r
+            unsigned short ITA4VE:1;\r
+            unsigned short ITB3AE:1;\r
+            unsigned short ITB4VE:1;\r
+        } BIT;\r
+    } TADCR;\r
+    unsigned char wk9[2];\r
+    unsigned short TADCORA;\r
+    unsigned short TADCORB;\r
+    unsigned short TADCOBRA;\r
+    unsigned short TADCOBRB;\r
+};\r
+\r
+struct st_mtu5 {\r
+    unsigned short TCNTU;\r
+    unsigned short TGRU;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCRU;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char IOC:5;\r
+        } BIT;\r
+    } TIORU;\r
+    unsigned char wk1[9];\r
+    unsigned short TCNTV;\r
+    unsigned short TGRV;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCRV;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char IOC:5;\r
+        } BIT;\r
+    } TIORV;\r
+    unsigned char wk2[9];\r
+    unsigned short TCNTW;\r
+    unsigned short TGRW;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CCLR:3;\r
+            unsigned char CKEG:2;\r
+            unsigned char TPSC:3;\r
+        } BIT;\r
+    } TCRW;\r
+    unsigned char wk3[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char IOC:5;\r
+        } BIT;\r
+    } TIORW;\r
+    unsigned char wk4[11];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char TGIE5U:1;\r
+            unsigned char TGIE5V:1;\r
+            unsigned char TGIE5W:1;\r
+        } BIT;\r
+    } TIER;\r
+    unsigned char wk5[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char CSTU5:1;\r
+            unsigned char CSTV5:1;\r
+            unsigned char CSTW5:1;\r
+        } BIT;\r
+    } TSTR;\r
+    unsigned char wk6[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char CMPCLR5U:1;\r
+            unsigned char CMPCLR5V:1;\r
+            unsigned char CMPCLR5W:1;\r
+        } BIT;\r
+    } TCNTCMPCLR;\r
+};\r
+\r
+struct st_poe {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short POE3F:1;\r
+            unsigned short POE2F:1;\r
+            unsigned short POE1F:1;\r
+            unsigned short POE0F:1;\r
+            unsigned short :3;\r
+            unsigned short PIE1:1;\r
+            unsigned short POE3M:2;\r
+            unsigned short POE2M:2;\r
+            unsigned short POE1M:2;\r
+            unsigned short POE0M:2;\r
+        } BIT;\r
+    } ICSR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short OSF1:1;\r
+            unsigned short :5;\r
+            unsigned short OCE1:1;\r
+            unsigned short OIE1:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } OCSR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short POE7F:1;\r
+            unsigned short POE6F:1;\r
+            unsigned short POE5F:1;\r
+            unsigned short POE4F:1;\r
+            unsigned short :3;\r
+            unsigned short PIE2:1;\r
+            unsigned short POE7M:2;\r
+            unsigned short POE6M:2;\r
+            unsigned short POE5M:2;\r
+            unsigned short POE4M:2;\r
+        } BIT;\r
+    } ICSR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short OSF2:1;\r
+            unsigned short :5;\r
+            unsigned short OCE2:1;\r
+            unsigned short OIE2:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } OCSR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :3;\r
+            unsigned short POE8F:1;\r
+            unsigned short :2;\r
+            unsigned short POE8E:1;\r
+            unsigned short PIE3:1;\r
+            unsigned short :6;\r
+            unsigned short POE8M:2;\r
+        } BIT;\r
+    } ICSR3;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char CH6HIZ:1;\r
+            unsigned char CH910HIZ:1;\r
+            unsigned char CH0HIZ:1;\r
+            unsigned char CH34HIZ:1;\r
+        } BIT;\r
+    } SPOER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char PE7ZE:1;\r
+            unsigned char PE6ZE:1;\r
+            unsigned char PE5ZE:1;\r
+            unsigned char PE4ZE:1;\r
+            unsigned char PE3ZE:1;\r
+            unsigned char PE2ZE:1;\r
+            unsigned char PE1ZE:1;\r
+            unsigned char PE0ZE:1;\r
+        } BIT;\r
+    } POECR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :1;\r
+            unsigned short P1CZEA:1;\r
+            unsigned short P2CZEA:1;\r
+            unsigned short P3CZEA:1;\r
+            unsigned short :1;\r
+            unsigned short P1CZEB:1;\r
+            unsigned short P2CZEB:1;\r
+            unsigned short P3CZEB:1;\r
+            unsigned short :1;\r
+            unsigned short P4CZE:1;\r
+            unsigned short P5CZE:1;\r
+            unsigned short P6CZE:1;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } POECR2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :3;\r
+            unsigned short POE9F:1;\r
+            unsigned short :2;\r
+            unsigned short POE9E:1;\r
+            unsigned short PIE4:1;\r
+            unsigned short :6;\r
+            unsigned short POE9M:2;\r
+        } BIT;\r
+    } ICSR4;\r
+};\r
+\r
+struct st_s12ad {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ADST:1;\r
+            unsigned char ADCS:1;\r
+            unsigned char :1;\r
+            unsigned char ADIE:1;\r
+            unsigned char CKS:2;\r
+            unsigned char TRGE:1;\r
+            unsigned char EXTRG:1;\r
+        } BIT;\r
+    } ADCSR;\r
+    unsigned char wk0[3];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short ANS:8;\r
+        } BIT;\r
+    } ADANS;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short ADS:8;\r
+        } BIT;\r
+    } ADADS;\r
+    unsigned char wk2[2];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char ADC:2;\r
+        } BIT;\r
+    } ADADC;\r
+    unsigned char wk3[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short ADRFMT:1;\r
+            unsigned short :9;\r
+            unsigned short ACE:1;\r
+            unsigned short :5;\r
+        } BIT;\r
+    } ADCER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char ADSTRS:4;\r
+        } BIT;\r
+    } ADSTRGR;\r
+    unsigned char wk4[15];\r
+    unsigned short ADDRA;\r
+    unsigned short ADDRB;\r
+    unsigned short ADDRC;\r
+    unsigned short ADDRD;\r
+    unsigned short ADDRE;\r
+    unsigned short ADDRF;\r
+    unsigned short ADDRG;\r
+    unsigned short ADDRH;\r
+};\r
+\r
+struct st_port0 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char :1;\r
+            unsigned char B5:1;\r
+            unsigned char :1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port1 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port2 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port3 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ODR;\r
+};\r
+\r
+struct st_port4 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port5 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port6 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port7 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port8 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_port9 {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_porta {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portb {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ODR;\r
+    unsigned char wk4[63];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portd {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_porte {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_portf {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+};\r
+\r
+struct st_portg {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DDR;\r
+    unsigned char wk0[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } DR;\r
+    unsigned char wk1[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PORT;\r
+    unsigned char wk2[31];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } ICR;\r
+    unsigned char wk3[95];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char B7:1;\r
+            unsigned char B6:1;\r
+            unsigned char B5:1;\r
+            unsigned char B4:1;\r
+            unsigned char B3:1;\r
+            unsigned char B2:1;\r
+            unsigned char B1:1;\r
+            unsigned char B0:1;\r
+        } BIT;\r
+    } PCR;\r
+};\r
+\r
+struct st_ioport {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CS7E:1;\r
+            unsigned char CS6E:1;\r
+            unsigned char CS5E:1;\r
+            unsigned char CS4E:1;\r
+            unsigned char CS3E:1;\r
+            unsigned char CS2E:1;\r
+            unsigned char CS1E:1;\r
+            unsigned char CS0E:1;\r
+        } BIT;\r
+    } PF0CSE;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CS7S:2;\r
+            unsigned char CS6S:2;\r
+            unsigned char CS5S:2;\r
+            unsigned char CS4S:2;\r
+        } BIT;\r
+    } PF1CSS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char CS3S:2;\r
+            unsigned char CS2S:2;\r
+            unsigned char CS1S:2;\r
+            unsigned char :1;\r
+            unsigned char CS0S:1;\r
+        } BIT;\r
+    } PF2CSS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char A23E:1;\r
+            unsigned char A22E:1;\r
+            unsigned char A21E:1;\r
+            unsigned char A20E:1;\r
+            unsigned char A19E:1;\r
+            unsigned char A18E:1;\r
+            unsigned char A17E:1;\r
+            unsigned char A16E:1;\r
+        } BIT;\r
+    } PF3BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char A15E:1;\r
+            unsigned char A14E:1;\r
+            unsigned char A13E:1;\r
+            unsigned char A12E:1;\r
+            unsigned char A11E:1;\r
+            unsigned char A10E:1;\r
+            unsigned char ADRLE:2;\r
+        } BIT;\r
+    } PF4BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char WR32BC32E:1;\r
+            unsigned char WR1BC1E:1;\r
+            unsigned char DH32E:1;\r
+            unsigned char DHE:1;\r
+            unsigned char :2;\r
+            unsigned char ADRHMS:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } PF5BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SDCLKE:1;\r
+            unsigned char DQM1E:1;\r
+            unsigned char :1;\r
+            unsigned char MDSDE:1;\r
+            unsigned char :2;\r
+            unsigned char WAITS:2;\r
+        } BIT;\r
+    } PF6BUS;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EDMA1S:2;\r
+            unsigned char EDMA0S:2;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } PF7DMA;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ITS15:1;\r
+            unsigned char :1;\r
+            unsigned char ITS13:1;\r
+            unsigned char :1;\r
+            unsigned char ITS11:1;\r
+            unsigned char ITS10:1;\r
+            unsigned char ITS9:1;\r
+            unsigned char ITS8:1;\r
+        } BIT;\r
+    } PF8IRQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ITS7:1;\r
+            unsigned char ITS6:1;\r
+            unsigned char ITS5:1;\r
+            unsigned char ITS4:1;\r
+            unsigned char ITS3:1;\r
+            unsigned char ITS2:1;\r
+            unsigned char ITS1:1;\r
+            unsigned char ITS0:1;\r
+        } BIT;\r
+    } PF9IRQ;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char ADTRG0S:1;\r
+        } BIT;\r
+    } PFAADC;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char TMR3S:1;\r
+            unsigned char TMR2S:1;\r
+            unsigned char :2;\r
+        } BIT;\r
+    } PFBTMR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TCLKS:1;\r
+            unsigned char MTUS6:1;\r
+            unsigned char MTUS5:1;\r
+            unsigned char MTUS4:1;\r
+            unsigned char MTUS3:1;\r
+            unsigned char MTUS2:1;\r
+            unsigned char MTUS1:1;\r
+            unsigned char MTUS0:1;\r
+        } BIT;\r
+    } PFCMTU;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TCLKS:1;\r
+            unsigned char MTUS6:1;\r
+            unsigned char :6;\r
+        } BIT;\r
+    } PFDMTU;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EE:1;\r
+            unsigned char :2;\r
+            unsigned char PHYMODE:1;\r
+            unsigned char ENETE3:1;\r
+            unsigned char ENETE2:1;\r
+            unsigned char ENETE1:1;\r
+            unsigned char ENETE0:1;\r
+        } BIT;\r
+    } PFENET;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char SCI6S:1;\r
+            unsigned char :2;\r
+            unsigned char SCI3S:1;\r
+            unsigned char SCI2S:1;\r
+            unsigned char SCI1S:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } PFFSCI;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SSL3E:1;\r
+            unsigned char SSL2E:1;\r
+            unsigned char SSL1E:1;\r
+            unsigned char SSL0E:1;\r
+            unsigned char MISOE:1;\r
+            unsigned char MOSIE:1;\r
+            unsigned char RSPCKE:1;\r
+            unsigned char RSPIS:1;\r
+        } BIT;\r
+    } PFGSPI;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SSL3E:1;\r
+            unsigned char SSL2E:1;\r
+            unsigned char SSL1E:1;\r
+            unsigned char SSL0E:1;\r
+            unsigned char MISOE:1;\r
+            unsigned char MOSIE:1;\r
+            unsigned char RSPCKE:1;\r
+            unsigned char RSPIS:1;\r
+        } BIT;\r
+    } PFHSPI;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char CAN0E:1;\r
+        } BIT;\r
+    } PFJCAN;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char USBE:1;\r
+            unsigned char PDHZS:1;\r
+            unsigned char PUPHZS:1;\r
+            unsigned char USBMD:2;\r
+        } BIT;\r
+    } PFKUSB;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char USBE:1;\r
+            unsigned char PDHZS:1;\r
+            unsigned char PUPHZS:1;\r
+            unsigned char USBMD:2;\r
+        } BIT;\r
+    } PFLUSB;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char POE7E:1;\r
+            unsigned char POE6E:1;\r
+            unsigned char POE5E:1;\r
+            unsigned char POE4E:1;\r
+            unsigned char POE3E:1;\r
+            unsigned char POE2E:1;\r
+            unsigned char POE1E:1;\r
+            unsigned char POE0E:1;\r
+        } BIT;\r
+    } PFMPOE;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char POE9E:1;\r
+            unsigned char POE8E:1;\r
+        } BIT;\r
+    } PFNPOE;\r
+};\r
+\r
+struct st_flash {\r
+    unsigned char DMMY;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char FLWE:2;\r
+        } BIT;\r
+    } FWEPROR;\r
+    unsigned char wk0[7799160];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char FRDMD:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } FMODR;\r
+    unsigned char wk1[13];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ROMAE:1;\r
+            unsigned char :2;\r
+            unsigned char CMDLK:1;\r
+            unsigned char DFLAE:1;\r
+            unsigned char :1;\r
+            unsigned char DFLRPE:1;\r
+            unsigned char DFLWPE:1;\r
+        } BIT;\r
+    } FASTAT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ROMAEIE:1;\r
+            unsigned char :2;\r
+            unsigned char CMDLKIE:1;\r
+            unsigned char DFLAEIE:1;\r
+            unsigned char :1;\r
+            unsigned char DFLRPEIE:1;\r
+            unsigned char DFLWPEIE:1;\r
+        } BIT;\r
+    } FAEINT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :7;\r
+            unsigned char FRDYIE:1;\r
+        } BIT;\r
+    } FRDYIE;\r
+    unsigned char wk2[45];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short DBRE07:1;\r
+            unsigned short DBRE06:1;\r
+            unsigned short DBRE05:1;\r
+            unsigned short DBRE04:1;\r
+            unsigned short DBRE03:1;\r
+            unsigned short DBRE02:1;\r
+            unsigned short DBRE01:1;\r
+            unsigned short DBRE00:1;\r
+        } BIT;\r
+    } DFLRE0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short DBRE15:1;\r
+            unsigned short DBRE14:1;\r
+            unsigned short DBRE13:1;\r
+            unsigned short DBRE12:1;\r
+            unsigned short DBRE11:1;\r
+            unsigned short DBRE10:1;\r
+            unsigned short DBRE09:1;\r
+            unsigned short DBRE08:1;\r
+        } BIT;\r
+    } DFLRE1;\r
+    unsigned char wk3[12];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short DBWE07:1;\r
+            unsigned short DBWE06:1;\r
+            unsigned short DBWE05:1;\r
+            unsigned short DBWE04:1;\r
+            unsigned short DBWE03:1;\r
+            unsigned short DBWE02:1;\r
+            unsigned short DBWE01:1;\r
+            unsigned short DBWE00:1;\r
+        } BIT;\r
+    } DFLWE0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short DBWE15:1;\r
+            unsigned short DBWE14:1;\r
+            unsigned short DBWE13:1;\r
+            unsigned short DBWE12:1;\r
+            unsigned short DBWE11:1;\r
+            unsigned short DBWE10:1;\r
+            unsigned short DBWE09:1;\r
+            unsigned short DBWE08:1;\r
+        } BIT;\r
+    } DFLWE1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short KEY:8;\r
+            unsigned short :7;\r
+            unsigned short FCRME:1;\r
+        } BIT;\r
+    } FCURAME;\r
+    unsigned char wk4[15194];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FRDY:1;\r
+            unsigned char ILGLERR:1;\r
+            unsigned char ERSERR:1;\r
+            unsigned char PRGERR:1;\r
+            unsigned char SUSRDY:1;\r
+            unsigned char :1;\r
+            unsigned char ERSSPD:1;\r
+            unsigned char PRGSPD:1;\r
+        } BIT;\r
+    } FSTATR0;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char FCUERR:1;\r
+            unsigned char :2;\r
+            unsigned char FLOCKST:1;\r
+            unsigned char :4;\r
+        } BIT;\r
+    } FSTATR1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FEKEY:8;\r
+            unsigned short FENTRYD:1;\r
+            unsigned short :6;\r
+            unsigned short FENTRY0:1;\r
+        } BIT;\r
+    } FENTRYR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FPKEY:8;\r
+            unsigned short :7;\r
+            unsigned short FPROTCN:1;\r
+        } BIT;\r
+    } FPROTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short FPKEY:8;\r
+            unsigned short :7;\r
+            unsigned short FRESET:1;\r
+        } BIT;\r
+    } FRESETR;\r
+    unsigned char wk5[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short CMDR:8;\r
+            unsigned short PCMDR:8;\r
+        } BIT;\r
+    } FCMDR;\r
+    unsigned char wk6[12];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :15;\r
+            unsigned short ESUSPMD:1;\r
+        } BIT;\r
+    } FCPSR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :5;\r
+            unsigned short BCADR:8;\r
+            unsigned short :2;\r
+            unsigned short BCSIZE:1;\r
+        } BIT;\r
+    } DFLBCCNT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short PEERRST:8;\r
+        } BIT;\r
+    } FPESTAT;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :15;\r
+            unsigned short BCST:1;\r
+        } BIT;\r
+    } DFLBCSTAT;\r
+    unsigned char wk7[24];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short PCKA:8;\r
+        } BIT;\r
+    } PCKAR;\r
+};\r
+\r
+struct st_rtc {\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char F64HZ:1;\r
+            unsigned char F32HZ:1;\r
+            unsigned char F16HZ:1;\r
+            unsigned char F8HZ:1;\r
+            unsigned char F4HZ:1;\r
+            unsigned char F2HZ:1;\r
+            unsigned char F1HZ:1;\r
+            unsigned char :1;\r
+        } BIT;\r
+    } R64CNT;\r
+    unsigned char wk0[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char SEC10:3;\r
+            unsigned char SEC1:4;\r
+        } BIT;\r
+    } RSECCNT;\r
+    unsigned char wk1[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char MIN10:3;\r
+            unsigned char MIN1:4;\r
+        } BIT;\r
+    } RMINCNT;\r
+    unsigned char wk2[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char HOUR10:2;\r
+            unsigned char HOUR1:4;\r
+        } BIT;\r
+    } RHRCNT;\r
+    unsigned char wk3[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char DAY:3;\r
+        } BIT;\r
+    } RWKCNT;\r
+    unsigned char wk4[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char DAY10:2;\r
+            unsigned char DAY1:4;\r
+        } BIT;\r
+    } RDAYCNT;\r
+    unsigned char wk5[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :3;\r
+            unsigned char MON10:1;\r
+            unsigned char MON1:4;\r
+        } BIT;\r
+    } RMONCNT;\r
+    unsigned char wk6[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short YEAR1000:4;\r
+            unsigned short YEAR100:4;\r
+            unsigned short YEAR10:4;\r
+            unsigned short YEAR1:4;\r
+        } BIT;\r
+    } RYRCNT;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char SEC10:3;\r
+            unsigned char SEC1:4;\r
+        } BIT;\r
+    } RSECAR;\r
+    unsigned char wk7[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char MIN10:3;\r
+            unsigned char MIN1:4;\r
+        } BIT;\r
+    } RMINAR;\r
+    unsigned char wk8[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char :1;\r
+            unsigned char HOUR10:2;\r
+            unsigned char HOUR1:4;\r
+        } BIT;\r
+    } RHRAR;\r
+    unsigned char wk9[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char :4;\r
+            unsigned char DAY:3;\r
+        } BIT;\r
+    } RWKAR;\r
+    unsigned char wk10[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char :1;\r
+            unsigned char DAY10:2;\r
+            unsigned char DAY1:4;\r
+        } BIT;\r
+    } RDAYAR;\r
+    unsigned char wk11[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char :2;\r
+            unsigned char MON10:1;\r
+            unsigned char MON1:4;\r
+        } BIT;\r
+    } RMONAR;\r
+    unsigned char wk12[1];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short YEAR1000:4;\r
+            unsigned short YEAR100:4;\r
+            unsigned short YEAR10:4;\r
+            unsigned short YEAR1:4;\r
+        } BIT;\r
+    } RYRAR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char ENB:1;\r
+            unsigned char :7;\r
+        } BIT;\r
+    } RYRAREN;\r
+    unsigned char wk13[3];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char PES:3;\r
+            unsigned char :1;\r
+            unsigned char PIE:1;\r
+            unsigned char CIE:1;\r
+            unsigned char AIE:1;\r
+        } BIT;\r
+    } RCR1;\r
+    unsigned char wk14[1];\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :4;\r
+            unsigned char RTCOE:1;\r
+            unsigned char ADJ:1;\r
+            unsigned char RESET:1;\r
+            unsigned char START:1;\r
+        } BIT;\r
+    } RCR2;\r
+};\r
+\r
+struct st_can {\r
+    struct {\r
+        union {\r
+            unsigned long LONG;\r
+            union {\r
+                unsigned short H;\r
+                unsigned short L;\r
+            } WORD;\r
+            struct {\r
+                unsigned char HH;\r
+                unsigned char HL;\r
+                unsigned char LH;\r
+                unsigned char LL;\r
+            } BYTE;\r
+            struct {\r
+                unsigned long IDE:1;\r
+                unsigned long RTR:1;\r
+                unsigned long :1;\r
+                unsigned long SID:11;\r
+                unsigned long EID:18;\r
+            } BIT;\r
+        } ID;\r
+        union {\r
+            unsigned short WORD;\r
+            struct {\r
+                unsigned char :8;\r
+                unsigned char :4;\r
+                unsigned char DLC:4;\r
+            } BIT;\r
+        } DLC;\r
+        unsigned char DATA[8];\r
+        union{ \r
+            unsigned short WORD;\r
+            struct {\r
+                unsigned char TSH;\r
+                unsigned char TSL;\r
+            } BYTE;\r
+        } TS;\r
+    } MB[32];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long :3;\r
+            unsigned long SID:11;\r
+            unsigned long EID:18;\r
+        } BIT;\r
+    } MKR[8];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long IDE:1;\r
+            unsigned long RTR:1;\r
+            unsigned long :1;\r
+            unsigned long SID:11;\r
+            unsigned long EID:18;\r
+        } BIT;\r
+    } FIDCR0;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long IDE:1;\r
+            unsigned long RTR:1;\r
+            unsigned long :1;\r
+            unsigned long SID:11;\r
+            unsigned long EID:18;\r
+        } BIT;\r
+    } FIDCR1;\r
+    unsigned long MKIVLR;\r
+    unsigned long MIER;\r
+    unsigned char wk32[1008];\r
+    union {\r
+        unsigned char BYTE;\r
+        union {\r
+            struct {\r
+                unsigned char TRMREQ:1;\r
+                unsigned char RECREQ:1;\r
+                unsigned char :1;\r
+                unsigned char ONESHOT:1;\r
+                unsigned char :1;\r
+                unsigned char TRMABT:1;\r
+                unsigned char TRMACTIVE:1;\r
+                unsigned char SENTDATA:1;\r
+            } TX;\r
+            struct {\r
+                unsigned char TRMREQ:1;\r
+                unsigned char RECREQ:1;\r
+                unsigned char :1;\r
+                unsigned char ONESHOT:1;\r
+                unsigned char :1;\r
+                unsigned char MSGLOST:1;\r
+                unsigned char INVALDATA:1;\r
+                unsigned char NEWDATA:1;\r
+            } RX;\r
+        } BIT;\r
+    } MCTL[32];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char H;\r
+            unsigned char L;\r
+        } BYTE;\r
+        struct {\r
+            unsigned char :2;\r
+            unsigned char RBOC:1;\r
+            unsigned char BOM:2;\r
+            unsigned char SLPM:1;\r
+            unsigned char CANM:2;\r
+            unsigned char TSPS:2;\r
+            unsigned char TSRC:1;\r
+            unsigned char TPM:1;\r
+            unsigned char MLM:1;\r
+            unsigned char IDFM:2;\r
+            unsigned char MBM:1;\r
+        } BIT;\r
+    } CTLR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char H;\r
+            unsigned char L;\r
+        } BYTE;\r
+        struct {\r
+            unsigned char :1;\r
+            unsigned char RECST:1;\r
+            unsigned char TRMST:1;\r
+            unsigned char BOST:1;\r
+            unsigned char EPST:1;\r
+            unsigned char SLPST:1;\r
+            unsigned char HLTST:1;\r
+            unsigned char RSTST:1;\r
+            unsigned char EST:1;\r
+            unsigned char TABST:1;\r
+            unsigned char FMLST:1;\r
+            unsigned char NMLST:1;\r
+            unsigned char TFST:1;\r
+            unsigned char RFST:1;\r
+            unsigned char SDST:1;\r
+            unsigned char NDST:1;\r
+        } BIT;\r
+    } STR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned short H;\r
+            unsigned short L;\r
+        } WORD;\r
+        struct {\r
+            unsigned char HH;\r
+            unsigned char HL;\r
+            unsigned char LH;\r
+            unsigned char LL;\r
+        } BYTE;\r
+        struct {\r
+            unsigned long TSEG1:4;\r
+            unsigned long :2;\r
+            unsigned long BRP:10;\r
+            unsigned long :2;\r
+            unsigned long SJW:2;\r
+            unsigned long :1;\r
+            unsigned long TSEG2:3;\r
+            unsigned long :8;\r
+        } BIT;\r
+    } BCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char RFEST:1;\r
+            unsigned char RFWST:1;\r
+            unsigned char RFFST:1;\r
+            unsigned char RFMLF:1;\r
+            unsigned char RFUST:3;\r
+            unsigned char RFE:1;\r
+        } BIT;\r
+    } RFCR;\r
+    unsigned char RFPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char TFEST:1;\r
+            unsigned char TFFST:1;\r
+            unsigned char :2;\r
+            unsigned char TFUST:3;\r
+            unsigned char TFE:1;\r
+        } BIT;\r
+    } TFCR;\r
+    unsigned char TFPCR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BLIE:1;\r
+            unsigned char OLIE:1;\r
+            unsigned char ORIE:1;\r
+            unsigned char BORIE:1;\r
+            unsigned char BOEIE:1;\r
+            unsigned char EPIE:1;\r
+            unsigned char EWIE:1;\r
+            unsigned char BEIE:1;\r
+        } BIT;\r
+    } EIER;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char BLIF:1;\r
+            unsigned char OLIF:1;\r
+            unsigned char ORIF:1;\r
+            unsigned char BORIF:1;\r
+            unsigned char BOEIF:1;\r
+            unsigned char EPIF:1;\r
+            unsigned char EWIF:1;\r
+            unsigned char BEIF:1;\r
+        } BIT;\r
+    } EIFR;\r
+    unsigned char RECR;\r
+    unsigned char TECR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char EDPM:1;\r
+            unsigned char ADEF:1;\r
+            unsigned char BE0F:1;\r
+            unsigned char BE1F:1;\r
+            unsigned char CEF:1;\r
+            unsigned char AEF:1;\r
+            unsigned char FEF:1;\r
+            unsigned char SEF:1;\r
+        } BIT;\r
+    } ECSR;\r
+    unsigned char CSSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char SEST:1;\r
+            unsigned char :2;\r
+            unsigned char MBNST:5;\r
+        } BIT;\r
+    } MSSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :6;\r
+            unsigned char MBSM:2;\r
+        } BIT;\r
+    } MSMR;\r
+    unsigned short TSR;\r
+    unsigned short AFSR;\r
+    union {\r
+        unsigned char BYTE;\r
+        struct {\r
+            unsigned char :5;\r
+            unsigned char TSTM:2;\r
+            unsigned char TSTE:1;\r
+        } BIT;\r
+    } TCR;\r
+};\r
+\r
+struct st_usb0 {\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :5;\r
+            unsigned short SCKE:1;\r
+            unsigned short :3;\r
+            unsigned short DCFM:1;\r
+            unsigned short DRPD:1;\r
+            unsigned short DPRPU:1;\r
+            unsigned short :3;\r
+            unsigned short USBE:1;\r
+        } BIT;\r
+    } SYSCFG;\r
+    unsigned char wk0[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short OVCMON:2;\r
+            unsigned short :7;\r
+            unsigned short HTACT:1;\r
+            unsigned short :3;\r
+            unsigned short IDMON:1;\r
+            unsigned short LNST:2;\r
+        } BIT;\r
+    } SYSSTS0;\r
+    unsigned char wk1[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short HNPBTOA:1;\r
+            unsigned short EXICEN:1;\r
+            unsigned short VBUSEN:1;\r
+            unsigned short WKUP:1;\r
+            unsigned short RWUPE:1;\r
+            unsigned short USBRST:1;\r
+            unsigned short RESUME:1;\r
+            unsigned short UACT:1;\r
+            unsigned short :1;\r
+            unsigned short RHST:3;\r
+        } BIT;\r
+    } DVSTCTR0;\r
+    unsigned char wk2[10];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char L;\r
+            unsigned char H;\r
+        } BYTE;\r
+    } CFIFO;\r
+    unsigned char wk3[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char L;\r
+            unsigned char H;\r
+        } BYTE;\r
+    } D0FIFO;\r
+    unsigned char wk4[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned char L;\r
+            unsigned char H;\r
+        } BYTE;\r
+    } D1FIFO;\r
+    unsigned char wk5[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RCNT:1;\r
+            unsigned short REW:1;\r
+            unsigned short :3;\r
+            unsigned short MBW:1;\r
+            unsigned short :1;\r
+            unsigned short BIGEND:1;\r
+            unsigned short :2;\r
+            unsigned short ISEL:1;\r
+            unsigned short :1;\r
+            unsigned short CURPIPE:4;\r
+        } BIT;\r
+    } CFIFOSEL;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BVAL:1;\r
+            unsigned short BCLR:1;\r
+            unsigned short FRDY:1;\r
+            unsigned short :4;\r
+            unsigned short TLN:1;\r
+            unsigned short DTLN:8;\r
+        } BIT;\r
+    } CFIFOCTR;\r
+    unsigned char wk6[4];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RCNT:1;\r
+            unsigned short REW:1;\r
+            unsigned short DCLRM:1;\r
+            unsigned short DREQE:1;\r
+            unsigned short :1;\r
+            unsigned short MBW:1;\r
+            unsigned short :1;\r
+            unsigned short BIGEND:1;\r
+            unsigned short :4;\r
+            unsigned short CURPIPE:4;\r
+        } BIT;\r
+    } D0FIFOSEL;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BVAL:1;\r
+            unsigned short BCLR:1;\r
+            unsigned short FRDY:1;\r
+            unsigned short :4;\r
+            unsigned short TLN:1;\r
+            unsigned short DTLN:8;\r
+        } BIT;\r
+    } D0FIFOCTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short RCNT:1;\r
+            unsigned short REW:1;\r
+            unsigned short DCLRM:1;\r
+            unsigned short DREQE:1;\r
+            unsigned short :1;\r
+            unsigned short MBW:1;\r
+            unsigned short :1;\r
+            unsigned short BIGEND:1;\r
+            unsigned short :4;\r
+            unsigned short CURPIPE:4;\r
+        } BIT;\r
+    } D1FIFOSEL;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BVAL:1;\r
+            unsigned short BCLR:1;\r
+            unsigned short FRDY:1;\r
+            unsigned short :4;\r
+            unsigned short TLN:1;\r
+            unsigned short DTLN:8;\r
+        } BIT;\r
+    } D1FIFOCTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short VBSE:1;\r
+            unsigned short RSME:1;\r
+            unsigned short SOFE:1;\r
+            unsigned short DVSE:1;\r
+            unsigned short CTRE:1;\r
+            unsigned short BEMPE:1;\r
+            unsigned short NRDYE:1;\r
+            unsigned short BRDYE:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } INTENB0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short OVRCRE:1;\r
+            unsigned short BCHGE:1;\r
+            unsigned short :1;\r
+            unsigned short DTCHE:1;\r
+            unsigned short ATTCHE:1;\r
+            unsigned short :4;\r
+            unsigned short EOFERRE:1;\r
+            unsigned short SIGNE:1;\r
+            unsigned short SACKE:1;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } INTENB1;\r
+    unsigned char wk7[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short PIPE9BRDYE:1;\r
+            unsigned short PIPE8BRDYE:1;\r
+            unsigned short PIPE7BRDYE:1;\r
+            unsigned short PIPE6BRDYE:1;\r
+            unsigned short PIPE5BRDYE:1;\r
+            unsigned short PIPE4BRDYE:1;\r
+            unsigned short PIPE3BRDYE:1;\r
+            unsigned short PIPE2BRDYE:1;\r
+            unsigned short PIPE1BRDYE:1;\r
+            unsigned short PIPE0BRDYE:1;\r
+        } BIT;\r
+    } BRDYENB;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short PIPE9BRDYE:1;\r
+            unsigned short PIPE8BRDYE:1;\r
+            unsigned short PIPE7BRDYE:1;\r
+            unsigned short PIPE6BRDYE:1;\r
+            unsigned short PIPE5BRDYE:1;\r
+            unsigned short PIPE4BRDYE:1;\r
+            unsigned short PIPE3BRDYE:1;\r
+            unsigned short PIPE2BRDYE:1;\r
+            unsigned short PIPE1BRDYE:1;\r
+            unsigned short PIPE0BRDYE:1;\r
+        } BIT;\r
+    } NRDYENB;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short PIPE9BEMPE:1;\r
+            unsigned short PIPE8BEMPE:1;\r
+            unsigned short PIPE7BEMPE:1;\r
+            unsigned short PIPE6BEMPE:1;\r
+            unsigned short PIPE5BEMPE:1;\r
+            unsigned short PIPE4BEMPE:1;\r
+            unsigned short PIPE3BEMPE:1;\r
+            unsigned short PIPE2BEMPE:1;\r
+            unsigned short PIPE1BEMPE:1;\r
+            unsigned short PIPE0BEMPE:1;\r
+        } BIT;\r
+    } BEMPENB;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :7;\r
+            unsigned short TRNENSEL:1;\r
+            unsigned short :1;\r
+            unsigned short BRDYM:1;\r
+            unsigned short :1;\r
+            unsigned short EDGESTS:1;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } SOFCFG;\r
+    unsigned char wk8[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short VBINT:1;\r
+            unsigned short RESM:1;\r
+            unsigned short SOFR:1;\r
+            unsigned short DVST:1;\r
+            unsigned short CTRT:1;\r
+            unsigned short BEMP:1;\r
+            unsigned short NRDY:1;\r
+            unsigned short BRDY:1;\r
+            unsigned short VBSTS:1;\r
+            unsigned short DVSQ:3;\r
+            unsigned short VALID:1;\r
+            unsigned short CTSQ:3;\r
+        } BIT;\r
+    } INTSTS0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short OVRCR:1;\r
+            unsigned short BCHG:1;\r
+            unsigned short :1;\r
+            unsigned short DTCH:1;\r
+            unsigned short ATTCH:1;\r
+            unsigned short :4;\r
+            unsigned short EOFERR:1;\r
+            unsigned short SIGN:1;\r
+            unsigned short SACK:1;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } INTSTS1;\r
+    unsigned char wk9[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short PIPE9BRDY:1;\r
+            unsigned short PIPE8BRDY:1;\r
+            unsigned short PIPE7BRDY:1;\r
+            unsigned short PIPE6BRDY:1;\r
+            unsigned short PIPE5BRDY:1;\r
+            unsigned short PIPE4BRDY:1;\r
+            unsigned short PIPE3BRDY:1;\r
+            unsigned short PIPE2BRDY:1;\r
+            unsigned short PIPE1BRDY:1;\r
+            unsigned short PIPE0BRDY:1;\r
+        } BIT;\r
+    } BRDYSTS;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short PIPE9BRDY:1;\r
+            unsigned short PIPE8BRDY:1;\r
+            unsigned short PIPE7BRDY:1;\r
+            unsigned short PIPE6BRDY:1;\r
+            unsigned short PIPE5BRDY:1;\r
+            unsigned short PIPE4BRDY:1;\r
+            unsigned short PIPE3BRDY:1;\r
+            unsigned short PIPE2BRDY:1;\r
+            unsigned short PIPE1BRDY:1;\r
+            unsigned short PIPE0BRDY:1;\r
+        } BIT;\r
+    } NRDYSTS;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short PIPE9BENP:1;\r
+            unsigned short PIPE8BENP:1;\r
+            unsigned short PIPE7BENP:1;\r
+            unsigned short PIPE6BENP:1;\r
+            unsigned short PIPE5BENP:1;\r
+            unsigned short PIPE4BENP:1;\r
+            unsigned short PIPE3BENP:1;\r
+            unsigned short PIPE2BENP:1;\r
+            unsigned short PIPE1BENP:1;\r
+            unsigned short PIPE0BENP:1;\r
+        } BIT;\r
+    } BEMPSTS;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short OVRN:1;\r
+            unsigned short CRCE:1;\r
+            unsigned short :3;\r
+            unsigned short FRNM:11;\r
+        } BIT;\r
+    } FRMNUM;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DVCHG:1;\r
+            unsigned short :15;\r
+        } BIT;\r
+    } DVCHGR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :4;\r
+            unsigned short STSRECOV:4;\r
+            unsigned short :1;\r
+            unsigned short USBADDR:7;\r
+        } BIT;\r
+    } USBADDR;\r
+    unsigned char wk10[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BREQUEST:8;\r
+            unsigned short BMREQUESTTYPE:8;\r
+        } BIT;\r
+    } USBREQ;\r
+    unsigned short USBVAL;\r
+    unsigned short USBINDX;\r
+    unsigned short USBLENG;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short SHTNAK:1;\r
+            unsigned short :2;\r
+            unsigned short DIR:1;\r
+            unsigned short :4;\r
+        } BIT;\r
+    } DCPCFG;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DEVSEL:4;\r
+            unsigned short :5;\r
+            unsigned short MXPS:7;\r
+        } BIT;\r
+    } DCPMAXP;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short SUREQ:1;\r
+            unsigned short :2;\r
+            unsigned short SUREQCLR:1;\r
+            unsigned short :2;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :2;\r
+            unsigned short CCPL:1;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } DCPCTR;\r
+    unsigned char wk11[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :12;\r
+            unsigned short PIPESEL:4;\r
+        } BIT;\r
+    } PIPESEL;\r
+    unsigned char wk12[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short TYPE:2;\r
+            unsigned short :3;\r
+            unsigned short BFRE:1;\r
+            unsigned short DBLB:1;\r
+            unsigned short :1;\r
+            unsigned short SHTNAK:1;\r
+            unsigned short :2;\r
+            unsigned short DIR:1;\r
+            unsigned short EPNUM:4;\r
+        } BIT;\r
+    } PIPECFG;\r
+    unsigned char wk13[2];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short DEVSEL:4;\r
+            unsigned short :3;\r
+            unsigned short XPS:1;\r
+            unsigned short MXPS:8;\r
+        } BIT;\r
+    } PIPEMAXP;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :3;\r
+            unsigned short IFIS:1;\r
+            unsigned short :9;\r
+            unsigned short IITV:3;\r
+        } BIT;\r
+    } PIPEPERI;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short INBUFM:1;\r
+            unsigned short :3;\r
+            unsigned short ATREPM:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE1CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short INBUFM:1;\r
+            unsigned short :3;\r
+            unsigned short ATREPM:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE2CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short INBUFM:1;\r
+            unsigned short :3;\r
+            unsigned short ATREPM:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE3CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short INBUFM:1;\r
+            unsigned short :3;\r
+            unsigned short ATREPM:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE4CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short INBUFM:1;\r
+            unsigned short :3;\r
+            unsigned short ATREPM:1;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE5CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short :5;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE6CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short :5;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE7CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short :5;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE8CTR;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short BSTS:1;\r
+            unsigned short :5;\r
+            unsigned short ACLRM:1;\r
+            unsigned short SQCLR:1;\r
+            unsigned short SQSET:1;\r
+            unsigned short SQMON:1;\r
+            unsigned short PBUSY:1;\r
+            unsigned short :3;\r
+            unsigned short PID:2;\r
+        } BIT;\r
+    } PIPE9CTR;\r
+    unsigned char wk14[14];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short TRENB:1;\r
+            unsigned short TRCLR:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } PIPE1TRE;\r
+    unsigned short PIPE1TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short TRENB:1;\r
+            unsigned short TRCLR:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } PIPE2TRE;\r
+    unsigned short PIPE2TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short TRENB:1;\r
+            unsigned short TRCLR:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } PIPE3TRE;\r
+    unsigned short PIPE3TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short TRENB:1;\r
+            unsigned short TRCLR:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } PIPE4TRE;\r
+    unsigned short PIPE4TRN;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :6;\r
+            unsigned short TRENB:1;\r
+            unsigned short TRCLR:1;\r
+            unsigned short :8;\r
+        } BIT;\r
+    } PIPE5TRE;\r
+    unsigned short PIPE5TRN;\r
+    unsigned char wk15[44];\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } DEVADD0;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } DEVADD1;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } DEVADD2;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } DEVADD3;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } DEVADD4;\r
+    union {\r
+        unsigned short WORD;\r
+        struct {\r
+            unsigned short :8;\r
+            unsigned short USBSPD:2;\r
+            unsigned short :6;\r
+        } BIT;\r
+    } DEVADD5;\r
+};\r
+\r
+struct st_usb {\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long DVSTS1:1;\r
+            unsigned long :1;\r
+            unsigned long DOVCB1:1;\r
+            unsigned long DOVCA1:1;\r
+            unsigned long :2;\r
+            unsigned long DM1:1;\r
+            unsigned long DP1:1;\r
+            unsigned long DVBSTS0:1;\r
+            unsigned long :1;\r
+            unsigned long DOVCB0:1;\r
+            unsigned long DOVCA0:1;\r
+            unsigned long :2;\r
+            unsigned long DM0:1;\r
+            unsigned long DP0:1;\r
+            unsigned long :3;\r
+            unsigned long FIXPHY1:1;\r
+            unsigned long :3;\r
+            unsigned long SRPC1:1;\r
+            unsigned long :3;\r
+            unsigned long FIXPHY0:1;\r
+            unsigned long :3;\r
+            unsigned long SRPC0:1;\r
+        } BIT;\r
+    } DPUSR0R;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long DVBINT1:1;\r
+            unsigned long :1;\r
+            unsigned long DOVRCRB1:1;\r
+            unsigned long DOVRCRA1:1;\r
+            unsigned long :2;\r
+            unsigned long DMINT1:1;\r
+            unsigned long DPINT1:1;\r
+            unsigned long DVBINT0:1;\r
+            unsigned long :1;\r
+            unsigned long DOVRCRB0:1;\r
+            unsigned long DOVRCRA0:1;\r
+            unsigned long :2;\r
+            unsigned long DMINT0:1;\r
+            unsigned long DPINT0:1;\r
+            unsigned long DVBSE1:1;\r
+            unsigned long :1;\r
+            unsigned long DOVRCRBE1:1;\r
+            unsigned long DOVRCRAE1:1;\r
+            unsigned long :2;\r
+            unsigned long DMINTE1:1;\r
+            unsigned long DPINTE1:1;\r
+            unsigned long DVBSE0:1;\r
+            unsigned long :1;\r
+            unsigned long DOVRCRBE0:1;\r
+            unsigned long DOVRCRAE0:1;\r
+            unsigned long :2;\r
+            unsigned long DMINTE0:1;\r
+            unsigned long DPINTE0:1;\r
+        } BIT;\r
+    } DPUSR1R;\r
+};\r
+\r
+struct st_edmac {\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :25;\r
+            unsigned long DE:1;\r
+            unsigned long DL:2;\r
+            unsigned long :3;\r
+            unsigned long SWR:1;\r
+        } BIT;\r
+    } EDMR;\r
+    unsigned char wk0[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :31;\r
+            unsigned long TR:1;\r
+        } BIT;\r
+    } EDTRR;\r
+    unsigned char wk1[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :31;\r
+            unsigned long RR:1;\r
+        } BIT;\r
+    } EDRRR;\r
+    unsigned char wk2[4];\r
+    void *TDLAR;\r
+    unsigned char wk3[4];\r
+    void *RDLAR;\r
+    unsigned char wk4[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long TWB:1;\r
+            unsigned long :3;\r
+            unsigned long TABT:1;\r
+            unsigned long RABT:1;\r
+            unsigned long RFCOF:1;\r
+            unsigned long ADE:1;\r
+            unsigned long ECI:1;\r
+            unsigned long TC:1;\r
+            unsigned long TDE:1;\r
+            unsigned long TFUF:1;\r
+            unsigned long FR:1;\r
+            unsigned long RDE:1;\r
+            unsigned long RFOF:1;\r
+            unsigned long :4;\r
+            unsigned long CND:1;\r
+            unsigned long DLC:1;\r
+            unsigned long CD:1;\r
+            unsigned long TRO:1;\r
+            unsigned long RMAF:1;\r
+            unsigned long :2;\r
+            unsigned long RRF:1;\r
+            unsigned long RTLF:1;\r
+            unsigned long RTSF:1;\r
+            unsigned long PRE:1;\r
+            unsigned long CERF:1;\r
+        } BIT;\r
+    } EESR;\r
+    unsigned char wk5[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :1;\r
+            unsigned long TWBIP:1;\r
+            unsigned long :3;\r
+            unsigned long TABTIP:1;\r
+            unsigned long RABTIP:1;\r
+            unsigned long RFCOFIP:1;\r
+            unsigned long ADEIP:1;\r
+            unsigned long ECIIP:1;\r
+            unsigned long TCIP:1;\r
+            unsigned long TDEIP:1;\r
+            unsigned long TFUFIP:1;\r
+            unsigned long FRIP:1;\r
+            unsigned long RDEIP:1;\r
+            unsigned long RFOFIP:1;\r
+            unsigned long :4;\r
+            unsigned long CNDIP:1;\r
+            unsigned long DLCIP:1;\r
+            unsigned long CDIP:1;\r
+            unsigned long TROIP:1;\r
+            unsigned long RMAFIP:1;\r
+            unsigned long :2;\r
+            unsigned long RRFIP:1;\r
+            unsigned long RTLFIP:1;\r
+            unsigned long RTSFIP:1;\r
+            unsigned long PREIP:1;\r
+            unsigned long CERFIP:1;\r
+        } BIT;\r
+    } EESIPR;\r
+    unsigned char wk6[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :20;\r
+            unsigned long CNDCE:1;\r
+            unsigned long DLCCE:1;\r
+            unsigned long CDCE:1;\r
+            unsigned long TROCE:1;\r
+            unsigned long RMAFCE:1;\r
+            unsigned long :2;\r
+            unsigned long RRFCE:1;\r
+            unsigned long RTLFCE:1;\r
+            unsigned long RTSFCE:1;\r
+            unsigned long PRECE:1;\r
+            unsigned long CERFCE:1;\r
+        } BIT;\r
+    } TRSCER;\r
+    unsigned char wk7[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long MFC:16;\r
+        } BIT;\r
+    } RMFCR;\r
+    unsigned char wk8[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :21;\r
+            unsigned long TFT:11;\r
+        } BIT;\r
+    } TFTR;\r
+    unsigned char wk9[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :19;\r
+            unsigned long TFD:5;\r
+            unsigned long :3;\r
+            unsigned long RFD:5;\r
+        } BIT;\r
+    } FDR;\r
+    unsigned char wk10[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :30;\r
+            unsigned long RNC:1;\r
+            unsigned long RNR:1;\r
+        } BIT;\r
+    } RMCR;\r
+    unsigned char wk11[8];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long UNDER:16;\r
+        } BIT;\r
+    } TFUCR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long OVER:16;\r
+        } BIT;\r
+    } RFOCR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :31;\r
+            unsigned long TLB:1;\r
+        } BIT;\r
+    } IOSR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :13;\r
+            unsigned long RFFO:3;\r
+            unsigned long :13;\r
+            unsigned long RFDO:3;\r
+        } BIT;\r
+    } FCFTR;\r
+    unsigned char wk12[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :14;\r
+            unsigned long PADS:2;\r
+            unsigned long :10;\r
+            unsigned long PADR:6;\r
+        } BIT;\r
+    } RPADIR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :27;\r
+            unsigned long TIM:1;\r
+            unsigned long :3;\r
+            unsigned long TIS:1;\r
+        } BIT;\r
+    } TRIMD;\r
+    unsigned char wk13[72];\r
+    void *RBWAR;\r
+    void *RDFAR;\r
+    unsigned char wk14[4];\r
+    void *TBRAR;\r
+    void *TDFAR;\r
+};\r
+\r
+struct st_etherc {\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :11;\r
+            unsigned long TPC:1;\r
+            unsigned long ZPE:1;\r
+            unsigned long PFR:1;\r
+            unsigned long RXF:1;\r
+            unsigned long TXF:1;\r
+            unsigned long :3;\r
+            unsigned long PRCEF:1;\r
+            unsigned long :2;\r
+            unsigned long MPDE:1;\r
+            unsigned long :2;\r
+            unsigned long RE:1;\r
+            unsigned long TE:1;\r
+            unsigned long :1;\r
+            unsigned long ILB:1;\r
+            unsigned long RTM:1;\r
+            unsigned long DM:1;\r
+            unsigned long PRM:1;\r
+        } BIT;\r
+    } ECMR;\r
+    unsigned char wk0[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :20;\r
+            unsigned long RFL:12;\r
+        } BIT;\r
+    } RFLR;\r
+    unsigned char wk1[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :26;\r
+            unsigned long BFR:1;\r
+            unsigned long PSRTO:1;\r
+            unsigned long :1;\r
+            unsigned long LCHNG:1;\r
+            unsigned long MPD:1;\r
+            unsigned long ICD:1;\r
+        } BIT;\r
+    } ECSR;\r
+    unsigned char wk2[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :26;\r
+            unsigned long BFSIPR:1;\r
+            unsigned long PSRTOIP:1;\r
+            unsigned long :1;\r
+            unsigned long LCHNGIP:1;\r
+            unsigned long MPDIP:1;\r
+            unsigned long ICDIP:1;\r
+        } BIT;\r
+    } ECSIPR;\r
+    unsigned char wk3[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :28;\r
+            unsigned long MDI:1;\r
+            unsigned long MDO:1;\r
+            unsigned long MMD:1;\r
+            unsigned long MDC:1;\r
+        } BIT;\r
+    } PIR;\r
+    unsigned char wk4[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :31;\r
+            unsigned long LMON:1;\r
+        } BIT;\r
+    } PSR;\r
+    unsigned char wk5[20];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :12;\r
+            unsigned long RMD:20;\r
+        } BIT;\r
+    } RDMLR;\r
+    unsigned char wk6[12];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :27;\r
+            unsigned long IPG:5;\r
+        } BIT;\r
+    } IPGR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long AP:16;\r
+        } BIT;\r
+    } APR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long MP:16;\r
+        } BIT;\r
+    } MPR;\r
+    unsigned char wk7[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :24;\r
+            unsigned long RPAUSE:8;\r
+        } BIT;\r
+    } RFCF;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long TPAUSE:16;\r
+        } BIT;\r
+    } TPAUSER;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :24;\r
+            unsigned long TXP:8;\r
+        } BIT;\r
+    } TPAUSECR;\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long BCF:16;\r
+        } BIT;\r
+    } BCFRR;\r
+    unsigned char wk8[80];\r
+    unsigned long MAHR;\r
+    unsigned char wk9[4];\r
+    union {\r
+        unsigned long LONG;\r
+        struct {\r
+            unsigned long :16;\r
+            unsigned long MA:16;\r
+        } BIT;\r
+    } MALR;\r
+    unsigned char wk10[4];\r
+    unsigned long TROCR;\r
+    unsigned long CDCR;\r
+    unsigned long LCCR;\r
+    unsigned long CNDCR;\r
+    unsigned char wk11[4];\r
+    unsigned long CEFCR;\r
+    unsigned long FRECR;\r
+    unsigned long TSFRCR;\r
+    unsigned long TLFRCR;\r
+    unsigned long RFCR;\r
+    unsigned long MAFCR;\r
+};\r
+\r
+enum enum_ir {\r
+IR_BSC_BUSERR=16,\r
+IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,\r
+IR_ICU_SWINT=27,\r
+IR_CMT0_CMI0,\r
+IR_CMT1_CMI1,\r
+IR_CMT2_CMI2,\r
+IR_CMT3_CMI3,\r
+IR_ETHER_EINT,\r
+IR_USB0_D0FIFO0=36,IR_USB0_D1FIFO0,IR_USB0_USBI0,\r
+IR_USB1_D0FIFO1=40,IR_USB1_D1FIFO1,IR_USB1_USBI1,\r
+IR_RSPI0_SPEI0=44,IR_RSPI0_SPRI0,IR_RSPI0_SPTI0,IR_RSPI0_SPII0,\r
+IR_RSPI1_SPEI1,IR_RSPI1_SPRI1,IR_RSPI1_SPTI1,IR_RSPI1_SPII1,\r
+IR_CAN0_ERS0=56,IR_CAN0_RXF0,IR_CAN0_TXF0,IR_CAN0_RXM0,IR_CAN0_TXM0,\r
+IR_RTC_PRD=62,IR_RTC_CUP,\r
+IR_ICU_IRQ0,IR_ICU_IRQ1,IR_ICU_IRQ2,IR_ICU_IRQ3,IR_ICU_IRQ4,IR_ICU_IRQ5,IR_ICU_IRQ6,IR_ICU_IRQ7,IR_ICU_IRQ8,IR_ICU_IRQ9,IR_ICU_IRQ10,IR_ICU_IRQ11,IR_ICU_IRQ12,IR_ICU_IRQ13,IR_ICU_IRQ14,IR_ICU_IRQ15,\r
+IR_USB_USBR0=90,IR_USB_USBR1,\r
+IR_RTC_ALM,\r
+IR_WDT_WOVI=96,\r
+IR_AD0_ADI0=98,\r
+IR_AD1_ADI1,\r
+IR_S12AD_ADI=102,\r
+IR_MTU0_TGIA0=114,IR_MTU0_TGIB0,IR_MTU0_TGIC0,IR_MTU0_TGID0,IR_MTU0_TCIV0,IR_MTU0_TGIE0,IR_MTU0_TGIF0,\r
+IR_MTU1_TGIA1,IR_MTU1_TGIB1,IR_MTU1_TCIV1,IR_MTU1_TCIU1,\r
+IR_MTU2_TGIA2,IR_MTU2_TGIB2,IR_MTU2_TCIV2,IR_MTU2_TCIU2,\r
+IR_MTU3_TGIA3,IR_MTU3_TGIB3,IR_MTU3_TGIC3,IR_MTU3_TGID3,IR_MTU3_TCIV3,\r
+IR_MTU4_TGIA4,IR_MTU4_TGIB4,IR_MTU4_TGIC4,IR_MTU4_TGID4,IR_MTU4_TCIV4,\r
+IR_MTU5_TGIU5,IR_MTU5_TGIV5,IR_MTU5_TGIW5,\r
+IR_MTU6_TGIA6,IR_MTU6_TGIB6,IR_MTU6_TGIC6,IR_MTU6_TGID6,IR_MTU6_TCIV6,IR_MTU6_TGIE6,IR_MTU6_TGIF6,\r
+IR_MTU7_TGIA7,IR_MTU7_TGIB7,IR_MTU7_TCIV7,IR_MTU7_TCIU7,\r
+IR_MTU8_TGIA8,IR_MTU8_TGIB8,IR_MTU8_TCIV8,IR_MTU8_TCIU8,\r
+IR_MTU9_TGIA9,IR_MTU9_TGIB9,IR_MTU9_TGIC9,IR_MTU9_TGID9,IR_MTU9_TCIV9,\r
+IR_MTU10_TGIA10,IR_MTU10_TGIB10,IR_MTU10_TGIC10,IR_MTU10_TGID10,IR_MTU10_TCIV10,\r
+IR_MTU11_TGIU11,IR_MTU11_TGIV11,IR_MTU11_TGIW11,\r
+IR_POE_OEI1,IR_POE_OEI2,IR_POE_OEI3,IR_POE_OEI4,\r
+IR_TMR0_CMIA0,IR_TMR0_CMIB0,IR_TMR0_OVI0,\r
+IR_TMR1_CMIA1,IR_TMR1_CMIB1,IR_TMR1_OVI1,\r
+IR_TMR2_CMIA2,IR_TMR2_CMIB2,IR_TMR2_OVI2,\r
+IR_TMR3_CMIA3,IR_TMR3_CMIB3,IR_TMR3_OVI3,\r
+IR_DMACA_DMAC0I=198,IR_DMACA_DMAC1I,IR_DMACA_DMAC2I,IR_DMACA_DMAC3I,\r
+IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,\r
+IR_SCI0_ERI0=214,IR_SCI0_RXI0,IR_SCI0_TXI0,IR_SCI0_TEI0,\r
+IR_SCI1_ERI1,IR_SCI1_RXI1,IR_SCI1_TXI1,IR_SCI1_TEI1,\r
+IR_SCI2_ERI2,IR_SCI2_RXI2,IR_SCI2_TXI2,IR_SCI2_TEI2,\r
+IR_SCI3_ERI3,IR_SCI3_RXI3,IR_SCI3_TXI3,IR_SCI3_TEI3,\r
+IR_SCI5_ERI5=234,IR_SCI5_RXI5,IR_SCI5_TXI5,IR_SCI5_TEI5,\r
+IR_SCI6_ERI6,IR_SCI6_RXI6,IR_SCI6_TXI6,IR_SCI6_TEI6,\r
+IR_RIIC0_ICEEI0=246,IR_RIIC0_ICRXI0,IR_RIIC0_ICTXI0,IR_RIIC0_ICTEI0,\r
+IR_RIIC1_ICEEI1,IR_RIIC1_ICRXI1,IR_RIIC1_ICTXI1,IR_RIIC1_ICTEI1\r
+};\r
+\r
+enum enum_dtce {\r
+DTCE_BSC_BUSERR=16,\r
+DTCE_FCU_FIFERR=21,DTCE_FCU_FRDYI=23,\r
+DTCE_ICU_SWINT=27,\r
+DTCE_CMT0_CMI0,\r
+DTCE_CMT1_CMI1,\r
+DTCE_CMT2_CMI2,\r
+DTCE_CMT3_CMI3,\r
+DTCE_ETHER_EINT,\r
+DTCE_USB0_D0FIFO0=36,DTCE_USB0_D1FIFO0,DTCE_USB0_USBI0,\r
+DTCE_USB1_D0FIFO1=40,DTCE_USB1_D1FIFO1,DTCE_USB1_USBI1,\r
+DTCE_RSPI0_SPEI0=44,DTCE_RSPI0_SPRI0,DTCE_RSPI0_SPTI0,DTCE_RSPI0_SPII0,\r
+DTCE_RSPI1_SPEI1,DTCE_RSPI1_SPRI1,DTCE_RSPI1_SPTI1,DTCE_RSPI1_SPII1,\r
+DTCE_CAN0_ERS0=56,DTCE_CAN0_RXF0,DTCE_CAN0_TXF0,DTCE_CAN0_RXM0,DTCE_CAN0_TXM0,\r
+DTCE_RTC_PRD=62,DTCE_RTC_CUP,\r
+DTCE_ICU_IRQ0,DTCE_ICU_IRQ1,DTCE_ICU_IRQ2,DTCE_ICU_IRQ3,DTCE_ICU_IRQ4,DTCE_ICU_IRQ5,DTCE_ICU_IRQ6,DTCE_ICU_IRQ7,DTCE_ICU_IRQ8,DTCE_ICU_IRQ9,DTCE_ICU_IRQ10,DTCE_ICU_IRQ11,DTCE_ICU_IRQ12,DTCE_ICU_IRQ13,DTCE_ICU_IRQ14,DTCE_ICU_IRQ15,\r
+DTCE_USB_USBR0=90,DTCE_USB_USBR1,\r
+DTCE_RTC_ALM,\r
+DTCE_WDT_WOVI=96,\r
+DTCE_AD0_ADI0=98,\r
+DTCE_AD1_ADI1,\r
+DTCE_S12AD_ADI=102,\r
+DTCE_MTU0_TGIA0=114,DTCE_MTU0_TGIB0,DTCE_MTU0_TGIC0,DTCE_MTU0_TGID0,DTCE_MTU0_TCIV0,DTCE_MTU0_TGIE0,DTCE_MTU0_TGIF0,\r
+DTCE_MTU1_TGIA1,DTCE_MTU1_TGIB1,DTCE_MTU1_TCIV1,DTCE_MTU1_TCIU1,\r
+DTCE_MTU2_TGIA2,DTCE_MTU2_TGIB2,DTCE_MTU2_TCIV2,DTCE_MTU2_TCIU2,\r
+DTCE_MTU3_TGIA3,DTCE_MTU3_TGIB3,DTCE_MTU3_TGIC3,DTCE_MTU3_TGID3,DTCE_MTU3_TCIV3,\r
+DTCE_MTU4_TGIA4,DTCE_MTU4_TGIB4,DTCE_MTU4_TGIC4,DTCE_MTU4_TGID4,DTCE_MTU4_TCIV4,\r
+DTCE_MTU5_TGIU5,DTCE_MTU5_TGIV5,DTCE_MTU5_TGIW5,\r
+DTCE_MTU6_TGIA6,DTCE_MTU6_TGIB6,DTCE_MTU6_TGIC6,DTCE_MTU6_TGID6,DTCE_MTU6_TCIV6,DTCE_MTU6_TGIE6,DTCE_MTU6_TGIF6,\r
+DTCE_MTU7_TGIA7,DTCE_MTU7_TGIB7,DTCE_MTU7_TCIV7,DTCE_MTU7_TCIU7,\r
+DTCE_MTU8_TGIA8,DTCE_MTU8_TGIB8,DTCE_MTU8_TCIV8,DTCE_MTU8_TCIU8,\r
+DTCE_MTU9_TGIA9,DTCE_MTU9_TGIB9,DTCE_MTU9_TGIC9,DTCE_MTU9_TGID9,DTCE_MTU9_TCIV9,\r
+DTCE_MTU10_TGIA10,DTCE_MTU10_TGIB10,DTCE_MTU10_TGIC10,DTCE_MTU10_TGID10,DTCE_MTU10_TCIV10,\r
+DTCE_MTU11_TGIU11,DTCE_MTU11_TGIV11,DTCE_MTU11_TGIW11,\r
+DTCE_POE_OEI1,DTCE_POE_OEI2,DTCE_POE_OEI3,DTCE_POE_OEI4,\r
+DTCE_TMR0_CMIA0,DTCE_TMR0_CMIB0,DTCE_TMR0_OVI0,\r
+DTCE_TMR1_CMIA1,DTCE_TMR1_CMIB1,DTCE_TMR1_OVI1,\r
+DTCE_TMR2_CMIA2,DTCE_TMR2_CMIB2,DTCE_TMR2_OVI2,\r
+DTCE_TMR3_CMIA3,DTCE_TMR3_CMIB3,DTCE_TMR3_OVI3,\r
+DTCE_DMACA_DMAC0I=198,DTCE_DMACA_DMAC1I,DTCE_DMACA_DMAC2I,DTCE_DMACA_DMAC3I,\r
+DTCE_EXDMAC_EXDMAC0I,DTCE_EXDMAC_EXDMAC1I,\r
+DTCE_SCI0_ERI0=214,DTCE_SCI0_RXI0,DTCE_SCI0_TXI0,DTCE_SCI0_TEI0,\r
+DTCE_SCI1_ERI1,DTCE_SCI1_RXI1,DTCE_SCI1_TXI1,DTCE_SCI1_TEI1,\r
+DTCE_SCI2_ERI2,DTCE_SCI2_RXI2,DTCE_SCI2_TXI2,DTCE_SCI2_TEI2,\r
+DTCE_SCI3_ERI3,DTCE_SCI3_RXI3,DTCE_SCI3_TXI3,DTCE_SCI3_TEI3,\r
+DTCE_SCI5_ERI5=234,DTCE_SCI5_RXI5,DTCE_SCI5_TXI5,DTCE_SCI5_TEI5,\r
+DTCE_SCI6_ERI6,DTCE_SCI6_RXI6,DTCE_SCI6_TXI6,DTCE_SCI6_TEI6,\r
+DTCE_RIIC0_ICEEI0=246,DTCE_RIIC0_ICRXI0,DTCE_RIIC0_ICTXI0,DTCE_RIIC0_ICTEI0,\r
+DTCE_RIIC1_ICEEI1,DTCE_RIIC1_ICRXI1,DTCE_RIIC1_ICTXI1,DTCE_RIIC1_ICTEI1\r
+};\r
+\r
+enum enum_ier {\r
+IER_BSC_BUSERR=0x02,\r
+IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,\r
+IER_ICU_SWINT=0x03,\r
+IER_CMT0_CMI0=0x03,\r
+IER_CMT1_CMI1=0x03,\r
+IER_CMT2_CMI2=0x03,\r
+IER_CMT3_CMI3=0x03,\r
+IER_ETHER_EINT=0x04,\r
+IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,IER_USB0_USBI0=0x04,\r
+IER_USB1_D0FIFO1=0x05,IER_USB1_D1FIFO1=0x05,IER_USB1_USBI1=0x05,\r
+IER_RSPI0_SPEI0=0x05,IER_RSPI0_SPRI0=0x05,IER_RSPI0_SPTI0=0x05,IER_RSPI0_SPII0=0x05,\r
+IER_RSPI1_SPEI1=0x06,IER_RSPI1_SPRI1=0x06,IER_RSPI1_SPTI1=0x06,IER_RSPI1_SPII1=0x06,\r
+IER_CAN0_ERS0=0x07,IER_CAN0_RXF0=0x07,IER_CAN0_TXF0=0x07,IER_CAN0_RXM0=0x07,IER_CAN0_TXM0=0x07,\r
+IER_RTC_PRD=0x07,IER_RTC_CUP=0x07,\r
+IER_ICU_IRQ0=0x08,IER_ICU_IRQ1=0x08,IER_ICU_IRQ2=0x08,IER_ICU_IRQ3=0x08,IER_ICU_IRQ4=0x08,IER_ICU_IRQ5=0x08,IER_ICU_IRQ6=0x08,IER_ICU_IRQ7=0x08,IER_ICU_IRQ8=0x09,IER_ICU_IRQ9=0x09,IER_ICU_IRQ10=0x09,IER_ICU_IRQ11=0x09,IER_ICU_IRQ12=0x09,IER_ICU_IRQ13=0x09,IER_ICU_IRQ14=0x09,IER_ICU_IRQ15=0x09,\r
+IER_USB_USBR0=0x0B,IER_USB_USBR1=0x0B,\r
+IER_RTC_ALM=0x0B,\r
+IER_WDT_WOVI=0x0C,\r
+IER_AD0_ADI0=0x0C,\r
+IER_AD1_ADI1=0x0C,\r
+IER_S12AD_ADI=0x0C,\r
+IER_MTU0_TGIA0=0x0E,IER_MTU0_TGIB0=0x0E,IER_MTU0_TGIC0=0x0E,IER_MTU0_TGID0=0x0E,IER_MTU0_TCIV0=0x0E,IER_MTU0_TGIE0=0x0E,IER_MTU0_TGIF0=0x0F,\r
+IER_MTU1_TGIA1=0x0F,IER_MTU1_TGIB1=0x0F,IER_MTU1_TCIV1=0x0F,IER_MTU1_TCIU1=0x0F,\r
+IER_MTU2_TGIA2=0x0F,IER_MTU2_TGIB2=0x0F,IER_MTU2_TCIV2=0x0F,IER_MTU2_TCIU2=0x10,\r
+IER_MTU3_TGIA3=0x10,IER_MTU3_TGIB3=0x10,IER_MTU3_TGIC3=0x10,IER_MTU3_TGID3=0x10,IER_MTU3_TCIV3=0x10,\r
+IER_MTU4_TGIA4=0x10,IER_MTU4_TGIB4=0x10,IER_MTU4_TGIC4=0x11,IER_MTU4_TGID4=0x11,IER_MTU4_TCIV4=0x11,\r
+IER_MTU5_TGIU5=0x11,IER_MTU5_TGIV5=0x11,IER_MTU5_TGIW5=0x10,\r
+IER_MTU6_TGIA6=0x11,IER_MTU6_TGIB6=0x11,IER_MTU6_TGIC6=0x12,IER_MTU6_TGID6=0x12,IER_MTU6_TCIV6=0x12,IER_MTU6_TGIE6=0x12,IER_MTU6_TGIF6=0x12,\r
+IER_MTU7_TGIA7=0x12,IER_MTU7_TGIB7=0x12,IER_MTU7_TCIV7=0x12,IER_MTU7_TCIU7=0x13,\r
+IER_MTU8_TGIA8=0x13,IER_MTU8_TGIB8=0x13,IER_MTU8_TCIV8=0x13,IER_MTU8_TCIU8=0x13,\r
+IER_MTU9_TGIA9=0x13,IER_MTU9_TGIB9=0x13,IER_MTU9_TGIC9=0x13,IER_MTU9_TGID9=0x14,IER_MTU9_TCIV9=0x14,\r
+IER_MTU10_TGIA10=0x14,IER_MTU10_TGIB10=0x14,IER_MTU10_TGIC10=0x14,IER_MTU10_TGID10=0x14,IER_MTU10_TCIV10=0x14,\r
+IER_MTU11_TGIU11=0x14,IER_MTU11_TGIV11=0x15,IER_MTU11_TGIW11=0x15,\r
+IER_POE_OEI1=0x15,IER_POE_OEI2=0x15,IER_POE_OEI3=0x15,IER_POE_OEI4=0x15,\r
+IER_TMR0_CMIA0=0x15,IER_TMR0_CMIB0=0x15,IER_TMR0_OVI0=0x16,\r
+IER_TMR1_CMIA1=0x16,IER_TMR1_CMIB1=0x16,IER_TMR1_OVI1=0x16,\r
+IER_TMR2_CMIA2=0x16,IER_TMR2_CMIB2=0x16,IER_TMR2_OVI2=0x16,\r
+IER_TMR3_CMIA3=0x16,IER_TMR3_CMIB3=0x17,IER_TMR3_OVI3=0x17,\r
+IER_DMACA_DMAC0I=0x18,IER_DMACA_DMAC1I=0x18,IER_DMACA_DMAC2I=0x19,IER_DMACA_DMAC3I=0x19,\r
+IER_EXDMAC_EXDMAC0I=0x19,IER_EXDMAC_EXDMAC1I=0x19,\r
+IER_SCI0_ERI0=0x1A,IER_SCI0_RXI0=0x1A,IER_SCI0_TXI0=0x1B,IER_SCI0_TEI0=0x1B,\r
+IER_SCI1_ERI1=0x1B,IER_SCI1_RXI1=0x1B,IER_SCI1_TXI1=0x1B,IER_SCI1_TEI1=0x1B,\r
+IER_SCI2_ERI2=0x1B,IER_SCI2_RXI2=0x1B,IER_SCI2_TXI2=0x1C,IER_SCI2_TEI2=0x1C,\r
+IER_SCI3_ERI3=0x1C,IER_SCI3_RXI3=0x1C,IER_SCI3_TXI3=0x1C,IER_SCI3_TEI3=0x1C,\r
+IER_SCI5_ERI5=0x1D,IER_SCI5_RXI5=0x1D,IER_SCI5_TXI5=0x1D,IER_SCI5_TEI5=0x1D,\r
+IER_SCI6_ERI6=0x1D,IER_SCI6_RXI6=0x1D,IER_SCI6_TXI6=0x1E,IER_SCI6_TEI6=0x1E,\r
+IER_RIIC0_ICEEI0=0x1E,IER_RIIC0_ICRXI0=0x1E,IER_RIIC0_ICTXI0=0x1F,IER_RIIC0_ICTEI0=0x1F,\r
+IER_RIIC1_ICEEI1=0x1F,IER_RIIC1_ICRXI1=0x1F,IER_RIIC1_ICTXI1=0x1F,IER_RIIC1_ICTEI1=0x1F\r
+};\r
+\r
+enum enum_ipr {\r
+IPR_BSC_BUSERR=0x00,\r
+IPR_FCU_FIFERR=0x01,IPR_FCU_FRDYI=0x02,\r
+IPR_ICU_SWINT=0x03,\r
+IPR_CMT0_CMI0=0x04,\r
+IPR_CMT1_CMI1=0x05,\r
+IPR_CMT2_CMI2=0x06,\r
+IPR_CMT3_CMI3=0x07,\r
+IPR_ETHER_EINT=0x08,\r
+IPR_USB0_D0FIFO0=0x0C,IPR_USB0_D1FIFO0=0x0D,IPR_USB0_USBI0=0x0E,\r
+IPR_USB1_D0FIFO1=0x10,IPR_USB1_D1FIFO1=0x11,IPR_USB1_USBI1=0x12,\r
+IPR_RSPI0_SPEI0=0x14,IPR_RSPI0_SPRI0=0x14,IPR_RSPI0_SPTI0=0x14,IPR_RSPI0_SPII0=0x14,\r
+IPR_RSPI1_SPEI1=0x15,IPR_RSPI1_SPRI1=0x15,IPR_RSPI1_SPTI1=0x15,IPR_RSPI1_SPII1=0x15,\r
+IPR_CAN0_ERS0=0x18,IPR_CAN0_RXF0=0x18,IPR_CAN0_TXF0=0x18,IPR_CAN0_RXM0=0x18,IPR_CAN0_TXM0=0x18,\r
+IPR_RTC_PRD=0x1E,IPR_RTC_CUP=0x1F,\r
+IPR_ICU_IRQ0=0x20,IPR_ICU_IRQ1=0x21,IPR_ICU_IRQ2=0x22,IPR_ICU_IRQ3=0x23,IPR_ICU_IRQ4=0x24,IPR_ICU_IRQ5=0x25,IPR_ICU_IRQ6=0x26,IPR_ICU_IRQ7=0x27,IPR_ICU_IRQ8=0x28,IPR_ICU_IRQ9=0x29,IPR_ICU_IRQ10=0x2A,IPR_ICU_IRQ11=0x2B,IPR_ICU_IRQ12=0x2C,IPR_ICU_IRQ13=0x2D,IPR_ICU_IRQ14=0x2E,IPR_ICU_IRQ15=0x2F,\r
+IPR_USB_USBR0=0x3A,IPR_USB_USBR1=0x3B,\r
+IPR_RTC_ALM=0x3C,\r
+IPR_WDT_WOVI=0x40,\r
+IPR_AD0_ADI0=0x44,\r
+IPR_AD1_ADI1=0x45,\r
+IPR_S12AD_ADI=0x48,\r
+IPR_MTU0_TGIA0=0x51,IPR_MTU0_TGIB0=0x51,IPR_MTU0_TGIC0=0x51,IPR_MTU0_TGID0=0x51,IPR_MTU0_TCIV0=0x52,IPR_MTU0_TGIE0=0x52,IPR_MTU0_TGIF0=0x52,\r
+IPR_MTU1_TGIA1=0x53,IPR_MTU1_TGIB1=0x53,IPR_MTU1_TCIV1=0x54,IPR_MTU1_TCIU1=0x54,\r
+IPR_MTU2_TGIA2=0x55,IPR_MTU2_TGIB2=0x55,IPR_MTU2_TCIV2=0x56,IPR_MTU2_TCIU2=0x56,\r
+IPR_MTU3_TGIA3=0x57,IPR_MTU3_TGIB3=0x57,IPR_MTU3_TGIC3=0x57,IPR_MTU3_TGID3=0x57,IPR_MTU3_TCIV3=0x58,\r
+IPR_MTU4_TGIA4=0x59,IPR_MTU4_TGIB4=0x59,IPR_MTU4_TGIC4=0x59,IPR_MTU4_TGID4=0x59,IPR_MTU4_TCIV4=0x5A,\r
+IPR_MTU5_TGIU5=0x5B,IPR_MTU5_TGIV5=0x5B,IPR_MTU5_TGIW5=0x5B,\r
+IPR_MTU6_TGIA6=0x5C,IPR_MTU6_TGIB6=0x5C,IPR_MTU6_TGIC6=0x5C,IPR_MTU6_TGID6=0x5C,IPR_MTU6_TCIV6=0x5D,IPR_MTU6_TGIE6=0x5D,IPR_MTU6_TGIF6=0x5D,\r
+IPR_MTU7_TGIA7=0x5E,IPR_MTU7_TGIB7=0x5E,IPR_MTU7_TCIV7=0x5F,IPR_MTU7_TCIU7=0x5F,\r
+IPR_MTU8_TGIA8=0x60,IPR_MTU8_TGIB8=0x60,IPR_MTU8_TCIV8=0x61,IPR_MTU8_TCIU8=0x61,\r
+IPR_MTU9_TGIA9=0x62,IPR_MTU9_TGIB9=0x62,IPR_MTU9_TGIC9=0x62,IPR_MTU9_TGID9=0x62,IPR_MTU9_TCIV9=0x63,\r
+IPR_MTU10_TGIA10=0x64,IPR_MTU10_TGIB10=0x64,IPR_MTU10_TGIC10=0x64,IPR_MTU10_TGID10=0x64,IPR_MTU10_TCIV10=0x65,\r
+IPR_MTU11_TGIU11=0x66,IPR_MTU11_TGIV11=0x66,IPR_MTU11_TGIW11=0x66,\r
+IPR_POE_OEI1=0x67,IPR_POE_OEI2=0x67,IPR_POE_OEI3=0x67,IPR_POE_OEI4=0x67,\r
+IPR_TMR0_CMIA0=0x68,IPR_TMR0_CMIB0=0x68,IPR_TMR0_OVI0=0x68,\r
+IPR_TMR1_CMIA1=0x69,IPR_TMR1_CMIB1=0x69,IPR_TMR1_OVI1=0x69,\r
+IPR_TMR2_CMIA2=0x6A,IPR_TMR2_CMIB2=0x6A,IPR_TMR2_OVI2=0x6A,\r
+IPR_TMR3_CMIA3=0x6B,IPR_TMR3_CMIB3=0x6B,IPR_TMR3_OVI3=0x6B,\r
+IPR_DMACA_DMAC0I=0x70,IPR_DMACA_DMAC1I=0x71,IPR_DMACA_DMAC2I=0x72,IPR_DMACA_DMAC3I=0x73,\r
+IPR_EXDMAC_EXDMAC0I=0x74,IPR_EXDMAC_EXDMAC1I=0x75,\r
+IPR_SCI0_ERI0=0x80,IPR_SCI0_RXI0=0x80,IPR_SCI0_TXI0=0x80,IPR_SCI0_TEI0=0x80,\r
+IPR_SCI1_ERI1=0x81,IPR_SCI1_RXI1=0x81,IPR_SCI1_TXI1=0x81,IPR_SCI1_TEI1=0x81,\r
+IPR_SCI2_ERI2=0x82,IPR_SCI2_RXI2=0x82,IPR_SCI2_TXI2=0x82,IPR_SCI2_TEI2=0x82,\r
+IPR_SCI3_ERI3=0x83,IPR_SCI3_RXI3=0x83,IPR_SCI3_TXI3=0x83,IPR_SCI3_TEI3=0x83,\r
+IPR_SCI5_ERI5=0x85,IPR_SCI5_RXI5=0x85,IPR_SCI5_TXI5=0x85,IPR_SCI5_TEI5=0x85,\r
+IPR_SCI6_ERI6=0x86,IPR_SCI6_RXI6=0x86,IPR_SCI6_TXI6=0x86,IPR_SCI6_TEI6=0x86,\r
+IPR_RIIC0_ICEEI0=0x88,IPR_RIIC0_ICRXI0=0x89,IPR_RIIC0_ICTXI0=0x8A,IPR_RIIC0_ICTEI0=0x8B,\r
+IPR_RIIC1_ICEEI1=0x8C,IPR_RIIC1_ICRXI1=0x8D,IPR_RIIC1_ICTXI1=0x8E,IPR_RIIC1_ICTEI1=0x8F,\r
+IPR_BSC_=0x00,\r
+IPR_CMT0_=0x04,\r
+IPR_CMT1_=0x05,\r
+IPR_CMT2_=0x06,\r
+IPR_CMT3_=0x07,\r
+IPR_ETHER_=0x08,\r
+IPR_RSPI0_=0x14,\r
+IPR_RSPI1_=0x15,\r
+IPR_CAN0_=0x18,\r
+IPR_WDT_=0x40,\r
+IPR_AD0_=0x44,\r
+IPR_AD1_=0x45,\r
+IPR_S12AD_=0x48,\r
+IPR_MTU1_TGI=0x53,\r
+IPR_MTU1_TCI=0x54,\r
+IPR_MTU2_TGI=0x55,\r
+IPR_MTU2_TCI=0x56,\r
+IPR_MTU3_TGI=0x57,\r
+IPR_MTU4_TGI=0x59,\r
+IPR_MTU5_=0x5B,\r
+IPR_MTU5_TGI=0x5B,\r
+IPR_MTU7_TGI=0x5E,\r
+IPR_MTU7_TCI=0x5F,\r
+IPR_MTU8_TGI=0x60,\r
+IPR_MTU8_TCI=0x61,\r
+IPR_MTU9_TGI=0x62,\r
+IPR_MTU10_TGI=0x64,\r
+IPR_MTU11_=0x66,\r
+IPR_MTU11_TGI=0x66,\r
+IPR_POE_=0x67,\r
+IPR_POE_OEI=0x67,\r
+IPR_TMR0_=0x68,\r
+IPR_TMR1_=0x69,\r
+IPR_TMR2_=0x6A,\r
+IPR_TMR3_=0x6B,\r
+IPR_SCI0_=0x80,\r
+IPR_SCI1_=0x81,\r
+IPR_SCI2_=0x82,\r
+IPR_SCI3_=0x83,\r
+IPR_SCI5_=0x85,\r
+IPR_SCI6_=0x86\r
+};\r
+\r
+#define        IEN_BSC_BUSERR          IEN0\r
+#define        IEN_FCU_FIFERR          IEN5\r
+#define        IEN_FCU_FRDYI           IEN7\r
+#define        IEN_ICU_SWINT           IEN3\r
+#define        IEN_CMT0_CMI0           IEN4\r
+#define        IEN_CMT1_CMI1           IEN5\r
+#define        IEN_CMT2_CMI2           IEN6\r
+#define        IEN_CMT3_CMI3           IEN7\r
+#define        IEN_ETHER_EINT          IEN0\r
+#define        IEN_USB0_D0FIFO0        IEN4\r
+#define        IEN_USB0_D1FIFO0        IEN5\r
+#define        IEN_USB0_USBI0          IEN6\r
+#define        IEN_USB1_D0FIFO1        IEN0\r
+#define        IEN_USB1_D1FIFO1        IEN1\r
+#define        IEN_USB1_USBI1          IEN2\r
+#define        IEN_RSPI0_SPEI0         IEN4\r
+#define        IEN_RSPI0_SPRI0         IEN5\r
+#define        IEN_RSPI0_SPTI0         IEN6\r
+#define        IEN_RSPI0_SPII0         IEN7\r
+#define        IEN_RSPI1_SPEI1         IEN0\r
+#define        IEN_RSPI1_SPRI1         IEN1\r
+#define        IEN_RSPI1_SPTI1         IEN2\r
+#define        IEN_RSPI1_SPII1         IEN3\r
+#define        IEN_CAN0_ERS0           IEN0\r
+#define        IEN_CAN0_RXF0           IEN1\r
+#define        IEN_CAN0_TXF0           IEN2\r
+#define        IEN_CAN0_RXM0           IEN3\r
+#define        IEN_CAN0_TXM0           IEN4\r
+#define        IEN_RTC_PRD                     IEN6\r
+#define        IEN_RTC_CUP                     IEN7\r
+#define        IEN_ICU_IRQ0            IEN0\r
+#define        IEN_ICU_IRQ1            IEN1\r
+#define        IEN_ICU_IRQ2            IEN2\r
+#define        IEN_ICU_IRQ3            IEN3\r
+#define        IEN_ICU_IRQ4            IEN4\r
+#define        IEN_ICU_IRQ5            IEN5\r
+#define        IEN_ICU_IRQ6            IEN6\r
+#define        IEN_ICU_IRQ7            IEN7\r
+#define        IEN_ICU_IRQ8            IEN0\r
+#define        IEN_ICU_IRQ9            IEN1\r
+#define        IEN_ICU_IRQ10           IEN2\r
+#define        IEN_ICU_IRQ11           IEN3\r
+#define        IEN_ICU_IRQ12           IEN4\r
+#define        IEN_ICU_IRQ13           IEN5\r
+#define        IEN_ICU_IRQ14           IEN6\r
+#define        IEN_ICU_IRQ15           IEN7\r
+#define        IEN_USB_USBR0           IEN2\r
+#define        IEN_USB_USBR1           IEN3\r
+#define        IEN_RTC_ALM                     IEN4\r
+#define        IEN_WDT_WOVI            IEN0\r
+#define        IEN_AD0_ADI0            IEN2\r
+#define        IEN_AD1_ADI1            IEN3\r
+#define        IEN_S12AD_ADI           IEN6\r
+#define        IEN_MTU0_TGIA0          IEN2\r
+#define        IEN_MTU0_TGIB0          IEN3\r
+#define        IEN_MTU0_TGIC0          IEN4\r
+#define        IEN_MTU0_TGID0          IEN5\r
+#define        IEN_MTU0_TCIV0          IEN6\r
+#define        IEN_MTU0_TGIE0          IEN7\r
+#define        IEN_MTU0_TGIF0          IEN0\r
+#define        IEN_MTU1_TGIA1          IEN1\r
+#define        IEN_MTU1_TGIB1          IEN2\r
+#define        IEN_MTU1_TCIV1          IEN3\r
+#define        IEN_MTU1_TCIU1          IEN4\r
+#define        IEN_MTU2_TGIA2          IEN5\r
+#define        IEN_MTU2_TGIB2          IEN6\r
+#define        IEN_MTU2_TCIV2          IEN7\r
+#define        IEN_MTU2_TCIU2          IEN0\r
+#define        IEN_MTU3_TGIA3          IEN1\r
+#define        IEN_MTU3_TGIB3          IEN2\r
+#define        IEN_MTU3_TGIC3          IEN3\r
+#define        IEN_MTU3_TGID3          IEN4\r
+#define        IEN_MTU3_TCIV3          IEN5\r
+#define        IEN_MTU4_TGIA4          IEN6\r
+#define        IEN_MTU4_TGIB4          IEN7\r
+#define        IEN_MTU4_TGIC4          IEN0\r
+#define        IEN_MTU4_TGID4          IEN1\r
+#define        IEN_MTU4_TCIV4          IEN2\r
+#define        IEN_MTU5_TGIU5          IEN3\r
+#define        IEN_MTU5_TGIV5          IEN4\r
+#define        IEN_MTU5_TGIW5          IEN7\r
+#define        IEN_MTU6_TGIA6          IEN6\r
+#define        IEN_MTU6_TGIB6          IEN7\r
+#define        IEN_MTU6_TGIC6          IEN0\r
+#define        IEN_MTU6_TGID6          IEN1\r
+#define        IEN_MTU6_TCIV6          IEN2\r
+#define        IEN_MTU6_TGIE6          IEN3\r
+#define        IEN_MTU6_TGIF6          IEN4\r
+#define        IEN_MTU7_TGIA7          IEN5\r
+#define        IEN_MTU7_TGIB7          IEN6\r
+#define        IEN_MTU7_TCIV7          IEN7\r
+#define        IEN_MTU7_TCIU7          IEN0\r
+#define        IEN_MTU8_TGIA8          IEN1\r
+#define        IEN_MTU8_TGIB8          IEN2\r
+#define        IEN_MTU8_TCIV8          IEN3\r
+#define        IEN_MTU8_TCIU8          IEN4\r
+#define        IEN_MTU9_TGIA9          IEN5\r
+#define        IEN_MTU9_TGIB9          IEN6\r
+#define        IEN_MTU9_TGIC9          IEN7\r
+#define        IEN_MTU9_TGID9          IEN0\r
+#define        IEN_MTU9_TCIV9          IEN1\r
+#define        IEN_MTU10_TGIA10        IEN2\r
+#define        IEN_MTU10_TGIB10        IEN3\r
+#define        IEN_MTU10_TGIC10        IEN4\r
+#define        IEN_MTU10_TGID10        IEN5\r
+#define        IEN_MTU10_TCIV10        IEN6\r
+#define        IEN_MTU11_TGIU11        IEN7\r
+#define        IEN_MTU11_TGIV11        IEN0\r
+#define        IEN_MTU11_TGIW11        IEN1\r
+#define        IEN_POE_OEI1            IEN2\r
+#define        IEN_POE_OEI2            IEN3\r
+#define        IEN_POE_OEI3            IEN4\r
+#define        IEN_POE_OEI4            IEN5\r
+#define        IEN_TMR0_CMIA0          IEN6\r
+#define        IEN_TMR0_CMIB0          IEN7\r
+#define        IEN_TMR0_OVI0           IEN0\r
+#define        IEN_TMR1_CMIA1          IEN1\r
+#define        IEN_TMR1_CMIB1          IEN2\r
+#define        IEN_TMR1_OVI1           IEN3\r
+#define        IEN_TMR2_CMIA2          IEN4\r
+#define        IEN_TMR2_CMIB2          IEN5\r
+#define        IEN_TMR2_OVI2           IEN6\r
+#define        IEN_TMR3_CMIA3          IEN7\r
+#define        IEN_TMR3_CMIB3          IEN0\r
+#define        IEN_TMR3_OVI3           IEN1\r
+#define        IEN_DMACA_DMAC0I        IEN6\r
+#define        IEN_DMACA_DMAC1I        IEN7\r
+#define        IEN_DMACA_DMAC2I        IEN0\r
+#define        IEN_DMACA_DMAC3I        IEN1\r
+#define        IEN_EXDMAC_EXDMAC0I     IEN2\r
+#define        IEN_EXDMAC_EXDMAC1I     IEN3\r
+#define        IEN_SCI0_ERI0           IEN6\r
+#define        IEN_SCI0_RXI0           IEN7\r
+#define        IEN_SCI0_TXI0           IEN0\r
+#define        IEN_SCI0_TEI0           IEN1\r
+#define        IEN_SCI1_ERI1           IEN2\r
+#define        IEN_SCI1_RXI1           IEN3\r
+#define        IEN_SCI1_TXI1           IEN4\r
+#define        IEN_SCI1_TEI1           IEN5\r
+#define        IEN_SCI2_ERI2           IEN6\r
+#define        IEN_SCI2_RXI2           IEN7\r
+#define        IEN_SCI2_TXI2           IEN0\r
+#define        IEN_SCI2_TEI2           IEN1\r
+#define        IEN_SCI3_ERI3           IEN2\r
+#define        IEN_SCI3_RXI3           IEN3\r
+#define        IEN_SCI3_TXI3           IEN4\r
+#define        IEN_SCI3_TEI3           IEN5\r
+#define        IEN_SCI5_ERI5           IEN2\r
+#define        IEN_SCI5_RXI5           IEN3\r
+#define        IEN_SCI5_TXI5           IEN4\r
+#define        IEN_SCI5_TEI5           IEN5\r
+#define        IEN_SCI6_ERI6           IEN6\r
+#define        IEN_SCI6_RXI6           IEN7\r
+#define        IEN_SCI6_TXI6           IEN0\r
+#define        IEN_SCI6_TEI6           IEN1\r
+#define        IEN_RIIC0_ICEEI0        IEN6\r
+#define        IEN_RIIC0_ICRXI0        IEN7\r
+#define        IEN_RIIC0_ICTXI0        IEN0\r
+#define        IEN_RIIC0_ICTEI0        IEN1\r
+#define        IEN_RIIC1_ICEEI1        IEN2\r
+#define        IEN_RIIC1_ICRXI1        IEN3\r
+#define        IEN_RIIC1_ICTXI1        IEN4\r
+#define        IEN_RIIC1_ICTEI1        IEN5\r
+\r
+#define        VECT_BSC_BUSERR         16\r
+#define        VECT_FCU_FIFERR         21\r
+#define        VECT_FCU_FRDYI          23\r
+#define        VECT_ICU_SWINT          27\r
+#define        VECT_CMT0_CMI0          28\r
+#define        VECT_CMT1_CMI1          29\r
+#define        VECT_CMT2_CMI2          30\r
+#define        VECT_CMT3_CMI3          31\r
+#define        VECT_ETHER_EINT         32\r
+#define        VECT_USB0_D0FIFO0       36\r
+#define        VECT_USB0_D1FIFO0       37\r
+#define        VECT_USB0_USBI0         38\r
+#define        VECT_USB1_D0FIFO1       40\r
+#define        VECT_USB1_D1FIFO1       41\r
+#define        VECT_USB1_USBI1         42\r
+#define        VECT_RSPI0_SPEI0        44\r
+#define        VECT_RSPI0_SPRI0        45\r
+#define        VECT_RSPI0_SPTI0        46\r
+#define        VECT_RSPI0_SPII0        47\r
+#define        VECT_RSPI1_SPEI1        48\r
+#define        VECT_RSPI1_SPRI1        49\r
+#define        VECT_RSPI1_SPTI1        50\r
+#define        VECT_RSPI1_SPII1        51\r
+#define        VECT_CAN0_ERS0          56\r
+#define        VECT_CAN0_RXF0          57\r
+#define        VECT_CAN0_TXF0          58\r
+#define        VECT_CAN0_RXM0          59\r
+#define        VECT_CAN0_TXM0          60\r
+#define        VECT_RTC_PRD            62\r
+#define        VECT_RTC_CUP            63\r
+#define        VECT_ICU_IRQ0           64\r
+#define        VECT_ICU_IRQ1           65\r
+#define        VECT_ICU_IRQ2           66\r
+#define        VECT_ICU_IRQ3           67\r
+#define        VECT_ICU_IRQ4           68\r
+#define        VECT_ICU_IRQ5           69\r
+#define        VECT_ICU_IRQ6           70\r
+#define        VECT_ICU_IRQ7           71\r
+#define        VECT_ICU_IRQ8           72\r
+#define        VECT_ICU_IRQ9           73\r
+#define        VECT_ICU_IRQ10          74\r
+#define        VECT_ICU_IRQ11          75\r
+#define        VECT_ICU_IRQ12          76\r
+#define        VECT_ICU_IRQ13          77\r
+#define        VECT_ICU_IRQ14          78\r
+#define        VECT_ICU_IRQ15          79\r
+#define        VECT_USB_USBR0          90\r
+#define        VECT_USB_USBR1          91\r
+#define        VECT_RTC_ALM            92\r
+#define        VECT_WDT_WOVI           96\r
+#define        VECT_AD0_ADI0           98\r
+#define        VECT_AD1_ADI1           99\r
+#define        VECT_S12AD_ADI          102\r
+#define        VECT_MTU0_TGIA0         114\r
+#define        VECT_MTU0_TGIB0         115\r
+#define        VECT_MTU0_TGIC0         116\r
+#define        VECT_MTU0_TGID0         117\r
+#define        VECT_MTU0_TCIV0         118\r
+#define        VECT_MTU0_TGIE0         119\r
+#define        VECT_MTU0_TGIF0         120\r
+#define        VECT_MTU1_TGIA1         121\r
+#define        VECT_MTU1_TGIB1         122\r
+#define        VECT_MTU1_TCIV1         123\r
+#define        VECT_MTU1_TCIU1         124\r
+#define        VECT_MTU2_TGIA2         125\r
+#define        VECT_MTU2_TGIB2         126\r
+#define        VECT_MTU2_TCIV2         127\r
+#define        VECT_MTU2_TCIU2         128\r
+#define        VECT_MTU3_TGIA3         129\r
+#define        VECT_MTU3_TGIB3         130\r
+#define        VECT_MTU3_TGIC3         131\r
+#define        VECT_MTU3_TGID3         132\r
+#define        VECT_MTU3_TCIV3         133\r
+#define        VECT_MTU4_TGIA4         134\r
+#define        VECT_MTU4_TGIB4         135\r
+#define        VECT_MTU4_TGIC4         136\r
+#define        VECT_MTU4_TGID4         137\r
+#define        VECT_MTU4_TCIV4         138\r
+#define        VECT_MTU5_TGIU5         139\r
+#define        VECT_MTU5_TGIV5         140\r
+#define        VECT_MTU5_TGIW5         141\r
+#define        VECT_MTU6_TGIA6         142\r
+#define        VECT_MTU6_TGIB6         143\r
+#define        VECT_MTU6_TGIC6         144\r
+#define        VECT_MTU6_TGID6         145\r
+#define        VECT_MTU6_TCIV6         146\r
+#define        VECT_MTU6_TGIE6         147\r
+#define        VECT_MTU6_TGIF6         148\r
+#define        VECT_MTU7_TGIA7         149\r
+#define        VECT_MTU7_TGIB7         150\r
+#define        VECT_MTU7_TCIV7         151\r
+#define        VECT_MTU7_TCIU7         152\r
+#define        VECT_MTU8_TGIA8         153\r
+#define        VECT_MTU8_TGIB8         154\r
+#define        VECT_MTU8_TCIV8         155\r
+#define        VECT_MTU8_TCIU8         156\r
+#define        VECT_MTU9_TGIA9         157\r
+#define        VECT_MTU9_TGIB9         158\r
+#define        VECT_MTU9_TGIC9         159\r
+#define        VECT_MTU9_TGID9         160\r
+#define        VECT_MTU9_TCIV9         161\r
+#define        VECT_MTU10_TGIA10       162\r
+#define        VECT_MTU10_TGIB10       163\r
+#define        VECT_MTU10_TGIC10       164\r
+#define        VECT_MTU10_TGID10       165\r
+#define        VECT_MTU10_TCIV10       166\r
+#define        VECT_MTU11_TGIU11       167\r
+#define        VECT_MTU11_TGIV11       168\r
+#define        VECT_MTU11_TGIW11       169\r
+#define        VECT_POE_OEI1           170\r
+#define        VECT_POE_OEI2           171\r
+#define        VECT_POE_OEI3           172\r
+#define        VECT_POE_OEI4           173\r
+#define        VECT_TMR0_CMIA0         174\r
+#define        VECT_TMR0_CMIB0         175\r
+#define        VECT_TMR0_OVI0          176\r
+#define        VECT_TMR1_CMIA1         177\r
+#define        VECT_TMR1_CMIB1         178\r
+#define        VECT_TMR1_OVI1          179\r
+#define        VECT_TMR2_CMIA2         180\r
+#define        VECT_TMR2_CMIB2         181\r
+#define        VECT_TMR2_OVI2          182\r
+#define        VECT_TMR3_CMIA3         183\r
+#define        VECT_TMR3_CMIB3         184\r
+#define        VECT_TMR3_OVI3          185\r
+#define        VECT_DMACA_DMAC0I       198\r
+#define        VECT_DMACA_DMAC1I       199\r
+#define        VECT_DMACA_DMAC2I       200\r
+#define        VECT_DMACA_DMAC3I       201\r
+#define        VECT_EXDMAC_EXDMAC0I    202\r
+#define        VECT_EXDMAC_EXDMAC1I    203\r
+#define        VECT_SCI0_ERI0          214\r
+#define        VECT_SCI0_RXI0          215\r
+#define        VECT_SCI0_TXI0          216\r
+#define        VECT_SCI0_TEI0          217\r
+#define        VECT_SCI1_ERI1          218\r
+#define        VECT_SCI1_RXI1          219\r
+#define        VECT_SCI1_TXI1          220\r
+#define        VECT_SCI1_TEI1          221\r
+#define        VECT_SCI2_ERI2          222\r
+#define        VECT_SCI2_RXI2          223\r
+#define        VECT_SCI2_TXI2          224\r
+#define        VECT_SCI2_TEI2          225\r
+#define        VECT_SCI3_ERI3          226\r
+#define        VECT_SCI3_RXI3          227\r
+#define        VECT_SCI3_TXI3          228\r
+#define        VECT_SCI3_TEI3          229\r
+#define        VECT_SCI5_ERI5          234\r
+#define        VECT_SCI5_RXI5          235\r
+#define        VECT_SCI5_TXI5          236\r
+#define        VECT_SCI5_TEI5          237\r
+#define        VECT_SCI6_ERI6          238\r
+#define        VECT_SCI6_RXI6          239\r
+#define        VECT_SCI6_TXI6          240\r
+#define        VECT_SCI6_TEI6          241\r
+#define        VECT_RIIC0_ICEEI0       246\r
+#define        VECT_RIIC0_ICRXI0       247\r
+#define        VECT_RIIC0_ICTXI0       248\r
+#define        VECT_RIIC0_ICTEI0       249\r
+#define        VECT_RIIC1_ICEEI1       250\r
+#define        VECT_RIIC1_ICRXI1       251\r
+#define        VECT_RIIC1_ICTXI1       252\r
+#define        VECT_RIIC1_ICTEI1       253\r
+\r
+#define        MSTP_EXDMAC     SYSTEM.MSTPCRA.BIT.MSTPA29\r
+#define        MSTP_DMACA      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_AD0        SYSTEM.MSTPCRA.BIT.MSTPA23\r
+#define        MSTP_AD1        SYSTEM.MSTPCRA.BIT.MSTPA22\r
+#define        MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19\r
+#define        MSTP_S12AD      SYSTEM.MSTPCRA.BIT.MSTPA17\r
+#define        MSTP_CMT0       SYSTEM.MSTPCRA.BIT.MSTPA15\r
+#define        MSTP_CMT1       SYSTEM.MSTPCRA.BIT.MSTPA15\r
+#define        MSTP_CMT2       SYSTEM.MSTPCRA.BIT.MSTPA14\r
+#define        MSTP_CMT3       SYSTEM.MSTPCRA.BIT.MSTPA14\r
+#define        MSTP_PPG0       SYSTEM.MSTPCRA.BIT.MSTPA11\r
+#define        MSTP_PPG1       SYSTEM.MSTPCRA.BIT.MSTPA10\r
+#define        MSTP_MTUA       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU0       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU1       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU2       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU4       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTU5       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_MTUB       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU6       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU7       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU8       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU9       SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU10      SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_MTU11      SYSTEM.MSTPCRA.BIT.MSTPA8\r
+#define        MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR01      SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_TMR23      SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_SCI0       SYSTEM.MSTPCRB.BIT.MSTPB31\r
+#define        MSTP_SMCI0      SYSTEM.MSTPCRB.BIT.MSTPB31\r
+#define        MSTP_SCI1       SYSTEM.MSTPCRB.BIT.MSTPB30\r
+#define        MSTP_SMCI1      SYSTEM.MSTPCRB.BIT.MSTPB30\r
+#define        MSTP_SCI2       SYSTEM.MSTPCRB.BIT.MSTPB29\r
+#define        MSTP_SMCI2      SYSTEM.MSTPCRB.BIT.MSTPB29\r
+#define        MSTP_SCI3       SYSTEM.MSTPCRB.BIT.MSTPB28\r
+#define        MSTP_SMCI3      SYSTEM.MSTPCRB.BIT.MSTPB28\r
+#define        MSTP_SCI5       SYSTEM.MSTPCRB.BIT.MSTPB26\r
+#define        MSTP_SMCI5      SYSTEM.MSTPCRB.BIT.MSTPB26\r
+#define        MSTP_SCI6       SYSTEM.MSTPCRB.BIT.MSTPB25\r
+#define        MSTP_SMCI6      SYSTEM.MSTPCRB.BIT.MSTPB25\r
+#define        MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23\r
+#define        MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21\r
+#define        MSTP_RIIC1      SYSTEM.MSTPCRB.BIT.MSTPB20\r
+#define        MSTP_USB0       SYSTEM.MSTPCRB.BIT.MSTPB19\r
+#define        MSTP_USB1       SYSTEM.MSTPCRB.BIT.MSTPB18\r
+#define        MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17\r
+#define        MSTP_RSPI1      SYSTEM.MSTPCRB.BIT.MSTPB16\r
+#define        MSTP_EDMAC      SYSTEM.MSTPCRB.BIT.MSTPB15\r
+#define        MSTP_CAN0       SYSTEM.MSTPCRB.BIT.MSTPB0\r
+#define        MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC1\r
+#define        MSTP_RAM1       SYSTEM.MSTPCRC.BIT.MSTPC0\r
+\r
+#define        __IR( x )               ICU.IR[ IR ## x ].BIT.IR\r
+#define         _IR( x )               __IR( x )\r
+#define          IR( x , y )   _IR( _ ## x ## _ ## y )\r
+#define        __DTCE( x )             ICU.DTCER[ DTCE ## x ].BIT.DTCE\r
+#define         _DTCE( x )             __DTCE( x )\r
+#define          DTCE( x , y ) _DTCE( _ ## x ## _ ## y )\r
+#define        __IEN( x )              ICU.IER[ IER ## x ].BIT.IEN ## x\r
+#define         _IEN( x )              __IEN( x )\r
+#define          IEN( x , y )  _IEN( _ ## x ## _ ## y )\r
+#define        __IPR( x )              ICU.IPR[ IPR ## x ].BIT.IPR\r
+#define         _IPR( x )              __IPR( x )\r
+#define          IPR( x , y )  _IPR( _ ## x ## _ ## y )\r
+#define        __VECT( x )             VECT ## x\r
+#define         _VECT( x )             __VECT( x )\r
+#define          VECT( x , y ) _VECT( _ ## x ## _ ## y )\r
+#define        __MSTP( x )             MSTP ## x\r
+#define         _MSTP( x )             __MSTP( x )\r
+#define          MSTP( x )             _MSTP( _ ## x )\r
+\r
+#define SYSTEM (*(volatile struct st_system *)0x80000)\r
+#define BSC (*(volatile struct st_bsc *)0x81300)\r
+#define DMAC0 (*(volatile struct st_dmac0 *)0x82000)\r
+#define DMAC1 (*(volatile struct st_dmac1 *)0x82040)\r
+#define DMAC2 (*(volatile struct st_dmac1 *)0x82080)\r
+#define DMAC3 (*(volatile struct st_dmac1 *)0x820C0)\r
+#define DMAC (*(volatile struct st_dmac *)0x82200)\r
+#define DTC (*(volatile struct st_dtc *)0x82400)\r
+#define EXDMAC0 (*(volatile struct st_exdmac0 *)0x82800)\r
+#define EXDMAC1 (*(volatile struct st_exdmac0 *)0x82840)\r
+#define EXDMAC (*(volatile struct st_exdmac *)0x82A00)\r
+#define ICU (*(volatile struct st_icu *)0x87000)\r
+#define CMT (*(volatile struct st_cmt *)0x88000)\r
+#define CMT0 (*(volatile struct st_cmt0 *)0x88002)\r
+#define CMT1 (*(volatile struct st_cmt0 *)0x88008)\r
+#define CMT2 (*(volatile struct st_cmt0 *)0x88012)\r
+#define CMT3 (*(volatile struct st_cmt0 *)0x88018)\r
+#define WDT (*(volatile union un_wdt *)0x88028)\r
+#define IWDT (*(volatile struct st_iwdt *)0x88030)\r
+#define AD0 (*(volatile struct st_ad *)0x88040)\r
+#define AD1 (*(volatile struct st_ad *)0x88060)\r
+#define DA (*(volatile struct st_da *)0x880C0)\r
+#define PPG0 (*(volatile struct st_ppg0 *)0x881E6)\r
+#define PPG1 (*(volatile struct st_ppg1 *)0x881F0)\r
+#define TMR0 (*(volatile struct st_tmr0 *)0x88200)\r
+#define TMR1 (*(volatile struct st_tmr1 *)0x88201)\r
+#define TMR01 (*(volatile struct st_tmr01 *)0x88204)\r
+#define TMR2 (*(volatile struct st_tmr0 *)0x88210)\r
+#define TMR3 (*(volatile struct st_tmr1 *)0x88211)\r
+#define TMR23 (*(volatile struct st_tmr01 *)0x88214)\r
+#define SCI0 (*(volatile struct st_sci *)0x88240)\r
+#define SCI1 (*(volatile struct st_sci *)0x88248)\r
+#define SCI2 (*(volatile struct st_sci *)0x88250)\r
+#define SCI3 (*(volatile struct st_sci *)0x88258)\r
+#define SCI5 (*(volatile struct st_sci *)0x88268)\r
+#define SCI6 (*(volatile struct st_sci *)0x88270)\r
+#define SMCI0 (*(volatile struct st_smci *)0x88240)\r
+#define SMCI1 (*(volatile struct st_smci *)0x88248)\r
+#define SMCI2 (*(volatile struct st_smci *)0x88250)\r
+#define SMCI3 (*(volatile struct st_smci *)0x88258)\r
+#define SMCI5 (*(volatile struct st_smci *)0x88268)\r
+#define SMCI6 (*(volatile struct st_smci *)0x88270)\r
+#define CRC (*(volatile struct st_crc *)0x88280)\r
+#define RIIC0 (*(volatile struct st_riic *)0x88300)\r
+#define RIIC1 (*(volatile struct st_riic *)0x88320)\r
+#define RSPI0 (*(volatile struct st_rspi *)0x88380)\r
+#define RSPI1 (*(volatile struct st_rspi *)0x883A0)\r
+#define MTUA (*(volatile struct st_mtu *)0x8860A)\r
+#define MTU0 (*(volatile struct st_mtu0 *)0x88700)\r
+#define MTU1 (*(volatile struct st_mtu1 *)0x88780)\r
+#define MTU2 (*(volatile struct st_mtu2 *)0x88800)\r
+#define MTU3 (*(volatile struct st_mtu3 *)0x88600)\r
+#define MTU4 (*(volatile struct st_mtu4 *)0x88600)\r
+#define MTU5 (*(volatile struct st_mtu5 *)0x88880)\r
+#define POE (*(volatile struct st_poe *)0x88900)\r
+#define MTUB (*(volatile struct st_mtu *)0x88A0A)\r
+#define MTU6 (*(volatile struct st_mtu0 *)0x88B00)\r
+#define MTU7 (*(volatile struct st_mtu1 *)0x88B80)\r
+#define MTU8 (*(volatile struct st_mtu2 *)0x88C00)\r
+#define MTU9 (*(volatile struct st_mtu3 *)0x88A00)\r
+#define MTU10 (*(volatile struct st_mtu4 *)0x88A00)\r
+#define MTU11 (*(volatile struct st_mtu5 *)0x88C80)\r
+#define S12AD (*(volatile struct st_s12ad *)0x89000)\r
+#define PORT0 (*(volatile struct st_port0 *)0x8C000)\r
+#define PORT1 (*(volatile struct st_port1 *)0x8C001)\r
+#define PORT2 (*(volatile struct st_port2 *)0x8C002)\r
+#define PORT3 (*(volatile struct st_port3 *)0x8C003)\r
+#define PORT4 (*(volatile struct st_port4 *)0x8C004)\r
+#define PORT5 (*(volatile struct st_port5 *)0x8C005)\r
+#define PORT6 (*(volatile struct st_port6 *)0x8C006)\r
+#define PORT7 (*(volatile struct st_port7 *)0x8C007)\r
+#define PORT8 (*(volatile struct st_port8 *)0x8C008)\r
+#define PORT9 (*(volatile struct st_port9 *)0x8C009)\r
+#define PORTA (*(volatile struct st_porta *)0x8C00A)\r
+#define PORTB (*(volatile struct st_portb *)0x8C00B)\r
+#define PORTC (*(volatile struct st_portc *)0x8C00C)\r
+#define PORTD (*(volatile struct st_portd *)0x8C00D)\r
+#define PORTE (*(volatile struct st_porte *)0x8C00E)\r
+#define PORTF (*(volatile struct st_portf *)0x8C00F)\r
+#define PORTG (*(volatile struct st_portg *)0x8C010)\r
+#define IOPORT (*(volatile struct st_ioport *)0x8C100)\r
+#define FLASH (*(volatile struct st_flash *)0x8C288)\r
+#define RTC (*(volatile struct st_rtc *)0x8C400)\r
+#define CAN0 (*(volatile struct st_can *)0x90200)\r
+#define USB0 (*(volatile struct st_usb0 *)0xA0000)\r
+#define USB1 (*(volatile struct st_usb0 *)0xA0200)\r
+#define USB (*(volatile struct st_usb *)0xA0400)\r
+#define EDMAC (*(volatile struct st_edmac *)0xC0000)\r
+#define ETHERC (*(volatile struct st_etherc *)0xC0100)\r
+\r
+#endif /*endian*/\r
+\r
+#endif /*IODEFINE_H*/\r
diff --git a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/include/rskrx62ndef.h b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/include/rskrx62ndef.h
new file mode 100644 (file)
index 0000000..5077d74
--- /dev/null
@@ -0,0 +1,98 @@
+\r
+/******************************************************************************\r
+* DISCLAIMER\r
+* Please refer to http://www.renesas.com/disclaimer\r
+******************************************************************************\r
+  Copyright (C) 2008. Renesas Technology Corp., All Rights Reserved.\r
+*******************************************************************************\r
+* File Name    : rsksh7216.h\r
+* Version      : 1.00\r
+* Description  : RSK 7216 board specific settings\r
+******************************************************************************\r
+* History : DD.MM.YYYY Version Description\r
+*         : 06.10.2009 1.00    First Release\r
+******************************************************************************/\r
+\r
+#ifndef RSKRX62N_H\r
+#define RSKRX62N_H\r
+\r
+/******************************************************************************\r
+Includes   <System Includes> , "Project Includes"\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Typedef definitions\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Macro definitions\r
+******************************************************************************/\r
+\r
+/* System Clock Settings */\r
+#define     XTAL_FREQUENCY  (12000000L)\r
+#define     ICLK_MUL        (8)\r
+#define     PCLK_MUL        (4)\r
+#define     BCLK_MUL        (4)\r
+#define     ICLK_FREQUENCY  (XTAL_FREQUENCY * ICLK_MUL)\r
+#define     PCLK_FREQUENCY  (XTAL_FREQUENCY * PCLK_MUL)\r
+#define     BCLK_FREQUENCY  (XTAL_FREQUENCY * BCLK_MUL)\r
+\r
+#define     CMT0_CLK_SELECT (512)\r
+\r
+/* General Values */\r
+#define                LED_ON          (0)\r
+#define        LED_OFF                 (1)\r
+#define        SET_BIT_HIGH    (1)\r
+#define        SET_BIT_LOW             (0)\r
+#define        SET_BYTE_HIGH   (0xFF)\r
+#define        SET_BYTE_LOW    (0x00)\r
+\r
+/* Define switches to be polled if not available as interrupts */\r
+#define                SW_ACTIVE               FALSE\r
+#define        SW1                     PORT0.DR.BIT.B0\r
+#define        SW2                     PORT0.DR.BIT.B1\r
+#define     SW3             PORT0.DR.BIT.B7\r
+#define        SW1_DDR                 PORT0.DDR.BIT.B0\r
+#define        SW2_DDR                 PORT0.DDR.BIT.B1\r
+#define     SW3_DDR         PORT0.DDR.BIT.B7\r
+#define        SW1_ICR                 PORT0.ICR.BIT.B0\r
+#define        SW2_ICR                 PORT0.ICR.BIT.B1\r
+#define     SW3_ICR         PORT0.ICR.BIT.B7\r
+\r
+/* LEDs */\r
+#define                LED0                    PORT0.DR.BIT.B2\r
+#define                LED1                    PORT0.DR.BIT.B3\r
+#define                LED2                    PORT0.DR.BIT.B5\r
+#define                LED3                    PORT3.DR.BIT.B4\r
+#define            LED4                        PORT6.DR.BIT.B0\r
+#define            LED5                        PORT7.DR.BIT.B3\r
+#define                LED0_DDR        PORT0.DDR.BIT.B2\r
+#define                LED1_DDR        PORT0.DDR.BIT.B3\r
+#define                LED2_DDR        PORT0.DDR.BIT.B5\r
+#define                LED3_DDR        PORT3.DDR.BIT.B4\r
+#define            LED4_DDR        PORT6.DDR.BIT.B0\r
+#define            LED5_DDR        PORT7.DDR.BIT.B3\r
+\r
+/* 2x8 segment LCD */\r
+#define     LCD_RS          PORT8.DR.BIT.B4\r
+#define     LCD_EN          PORT8.DR.BIT.B5\r
+#define     LCD_DATA        PORT9.DR.BYTE\r
+#define     LCD_RS_DDR      PORT8.DDR.BIT.B4\r
+#define     LCD_EN_DDR      PORT8.DDR.BIT.B5\r
+#define     LCD_DATA_DDR    PORT9.DDR.BYTE\r
+\r
+\r
+\r
+/******************************************************************************\r
+Variable Externs\r
+******************************************************************************/\r
+\r
+/******************************************************************************\r
+Functions Prototypes\r
+******************************************************************************/\r
+\r
+\r
+\r
+/* RSKRX62N_H */\r
+#endif         \r
+\r
diff --git a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main-blinky.c b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main-blinky.c
new file mode 100644 (file)
index 0000000..8fea457
--- /dev/null
@@ -0,0 +1,217 @@
+/*\r
+    FreeRTOS V6.0.5 - Copyright (C) 2010 Real Time Engineers Ltd.\r
+\r
+    ***************************************************************************\r
+    *                                                                         *\r
+    * If you are:                                                             *\r
+    *                                                                         *\r
+    *    + New to FreeRTOS,                                                   *\r
+    *    + Wanting to learn FreeRTOS or multitasking in general quickly       *\r
+    *    + Looking for basic training,                                        *\r
+    *    + Wanting to improve your FreeRTOS skills and productivity           *\r
+    *                                                                         *\r
+    * then take a look at the FreeRTOS eBook                                  *\r
+    *                                                                         *\r
+    *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *\r
+    *                  http://www.FreeRTOS.org/Documentation                  *\r
+    *                                                                         *\r
+    * A pdf reference manual is also available.  Both are usually delivered   *\r
+    * to your inbox within 20 minutes to two hours when purchased between 8am *\r
+    * and 8pm GMT (although please allow up to 24 hours in case of            *\r
+    * exceptional circumstances).  Thank you for your support!                *\r
+    *                                                                         *\r
+    ***************************************************************************\r
+\r
+    This file is part of the FreeRTOS distribution.\r
+\r
+    FreeRTOS is free software; you can redistribute it and/or modify it under\r
+    the terms of the GNU General Public License (version 2) as published by the\r
+    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.\r
+    ***NOTE*** The exception to the GPL is included to allow you to distribute\r
+    a combined work that includes FreeRTOS without being obliged to provide the\r
+    source code for proprietary components outside of the FreeRTOS kernel.\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT\r
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\r
+    more details. You should have received a copy of the GNU General Public \r
+    License and the FreeRTOS license exception along with FreeRTOS; if not it \r
+    can be viewed here: http://www.freertos.org/a00114.html and also obtained \r
+    by writing to Richard Barry, contact details for whom are available on the\r
+    FreeRTOS WEB site.\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    http://www.FreeRTOS.org - Documentation, latest information, license and\r
+    contact details.\r
+\r
+    http://www.SafeRTOS.com - A version that is certified for use in safety\r
+    critical systems.\r
+\r
+    http://www.OpenRTOS.com - Commercial support, development, porting,\r
+    licensing and training services.\r
+*/\r
+\r
+/* \r
+ * This is a very simple demo that creates two tasks and one queue.  One task\r
+ * (the queue receive task) blocks on the queue to wait for data to arrive, \r
+ * toggling an LED each time '100' is received.  The other task (the queue send\r
+ * task) repeatedly blocks for a fixed period before sending '100' to the queue\r
+ * (causing the first task to toggle the LED). \r
+ *\r
+ * For a much more complete and complex example select either the Debug or\r
+ * Debug_with_optimisation build configurations within the HEW IDE. \r
+*/\r
+\r
+/* Hardware specific includes. */\r
+#include "iodefine.h"\r
+\r
+/* Kernel includes. */\r
+#include "FreeRTOS.h"\r
+#include "task.h"\r
+#include "queue.h"\r
+\r
+/* Priorities at which the tasks are created. */\r
+#define        configQUEUE_RECEIVE_TASK_PRIORITY       ( tskIDLE_PRIORITY + 1 )\r
+#define                configQUEUE_SEND_TASK_PRIORITY          ( tskIDLE_PRIORITY + 2 )\r
+\r
+/* The rate at which data is sent to the queue, specified in milliseconds. */\r
+#define mainQUEUE_SEND_FREQUENCY_MS                            ( 500 / portTICK_RATE_MS )\r
+\r
+/* The number of items the queue can hold.  This is 1 as the receive task\r
+will remove items as they are added so the send task should always find the\r
+queue empty. */\r
+#define mainQUEUE_LENGTH                                               ( 1 )\r
+\r
+/*\r
+ * The tasks as defined at the top of this file.\r
+ */\r
+static void prvQueueReceiveTask( void *pvParameters );\r
+static void prvQueueSendTask( void *pvParameters );\r
+\r
+/* The queue used by both tasks. */\r
+static xQueueHandle xQueue = NULL;\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+void main(void)\r
+{\r
+extern void HardwareSetup( void );\r
+\r
+       /* Renesas provided CPU configuration routine.  The clocks are configured in\r
+       here. */\r
+       HardwareSetup();\r
+       \r
+       /* Turn all LEDs off. */\r
+       vParTestInitialise();\r
+       \r
+       /* Create the queue. */\r
+       xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( unsigned long ) );\r
+\r
+       if( xQueue != NULL )\r
+       {\r
+               /* Start the two tasks as described at the top of this file. */\r
+               xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
+\r
+               /* Start the tasks running. */\r
+               vTaskStartScheduler();\r
+       }\r
+       \r
+       /* If all is well we will never reach here as the scheduler will now be\r
+       running.  If we do reach here then it is likely that there was insufficient\r
+       heap available for the idle task to be created. */\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+static void prvQueueSendTask( void *pvParameters )\r
+{\r
+portTickType xNextWakeTime;\r
+const unsigned long ulValueToSend = 100UL;\r
+\r
+       /* Initialise xNextWakeTime - this only needs to be done once. */\r
+       xNextWakeTime = xTaskGetTickCount();\r
+\r
+       for( ;; )\r
+       {\r
+               /* Place this task in the blocked state until it is time to run again. \r
+               The block state is specified in ticks, the constant used converts ticks\r
+               to ms. */\r
+               vTaskDelayUntil( &xNextWakeTime, mainQUEUE_SEND_FREQUENCY_MS );\r
+\r
+               /* Send to the queue - causing the queue receive task to flash its LED.  0\r
+               is used so the send does not block - it shouldn't need to as the queue\r
+               should always be empty here. */\r
+               xQueueSend( xQueue, &ulValueToSend, 0 );\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+static void prvQueueReceiveTask( void *pvParameters )\r
+{\r
+unsigned long ulReceivedValue;\r
+\r
+       for( ;; )\r
+       {\r
+               /* Wait until something arives in the queue - this will block \r
+               indefinitely provided INCLUDE_vTaskSuspend is set to 1 in\r
+               FreeRTOSConfig.h. */\r
+               xQueueReceive( xQueue, &ulReceivedValue, portMAX_DELAY );\r
+\r
+               /*  To get here something must have arrived, but is it the expected\r
+               value?  If it is, toggle the LED. */\r
+               if( ulReceivedValue == 100UL )\r
+               {\r
+                       vParTestToggleLED( 0 );\r
+               }\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vApplicationSetupTimerInterrupt( void )\r
+{\r
+       /* Enable compare match timer 0. */\r
+       MSTP( CMT0 ) = 0;\r
+       \r
+       /* Interrupt on compare match. */\r
+       CMT0.CMCR.BIT.CMIE = 1;\r
+       \r
+       /* Set the compare match value. */\r
+       CMT0.CMCOR = ( unsigned short ) ( ( ( configPERIPHERAL_CLOCK_HZ / configTICK_RATE_HZ ) -1 ) / 8 );\r
+       \r
+       /* Divide the PCLK by 8. */\r
+       CMT0.CMCR.BIT.CKS = 0;\r
+       \r
+       /* Enable the interrupt... */\r
+       _IEN( _CMT0_CMI0 ) = 1;\r
+       \r
+       /* ...and set its priority to the application defined kernel priority. */\r
+       _IPR( _CMT0_CMI0 ) = configKERNEL_INTERRUPT_PRIORITY;\r
+       \r
+       /* Start the timer. */\r
+       CMT.CMSTR0.BIT.STR0 = 1;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained by the comments above its prototype at the top\r
+of this file. */\r
+void vApplicationMallocFailedHook( void )\r
+{\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained by the comments above its prototype at the top\r
+of this file. */\r
+void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )\r
+{\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained by the comments above its prototype at the top\r
+of this file. */\r
+void vApplicationIdleHook( void )\r
+{\r
+}\r
+/*-----------------------------------------------------------*/\r
diff --git a/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main-full.c b/Demo/RX600_RX62N-MDK_GNURX/RTOSDemo/main-full.c
new file mode 100644 (file)
index 0000000..b06deaf
--- /dev/null
@@ -0,0 +1,649 @@
+/*\r
+    FreeRTOS V6.0.5 - Copyright (C) 2010 Real Time Engineers Ltd.\r
+\r
+    ***************************************************************************\r
+    *                                                                         *\r
+    * If you are:                                                             *\r
+    *                                                                         *\r
+    *    + New to FreeRTOS,                                                   *\r
+    *    + Wanting to learn FreeRTOS or multitasking in general quickly       *\r
+    *    + Looking for basic training,                                        *\r
+    *    + Wanting to improve your FreeRTOS skills and productivity           *\r
+    *                                                                         *\r
+    * then take a look at the FreeRTOS eBook                                  *\r
+    *                                                                         *\r
+    *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *\r
+    *                  http://www.FreeRTOS.org/Documentation                  *\r
+    *                                                                         *\r
+    * A pdf reference manual is also available.  Both are usually delivered   *\r
+    * to your inbox within 20 minutes to two hours when purchased between 8am *\r
+    * and 8pm GMT (although please allow up to 24 hours in case of            *\r
+    * exceptional circumstances).  Thank you for your support!                *\r
+    *                                                                         *\r
+    ***************************************************************************\r
+\r
+    This file is part of the FreeRTOS distribution.\r
+\r
+    FreeRTOS is free software; you can redistribute it and/or modify it under\r
+    the terms of the GNU General Public License (version 2) as published by the\r
+    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.\r
+    ***NOTE*** The exception to the GPL is included to allow you to distribute\r
+    a combined work that includes FreeRTOS without being obliged to provide the\r
+    source code for proprietary components outside of the FreeRTOS kernel.\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT\r
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\r
+    more details. You should have received a copy of the GNU General Public \r
+    License and the FreeRTOS license exception along with FreeRTOS; if not it \r
+    can be viewed here: http://www.freertos.org/a00114.html and also obtained \r
+    by writing to Richard Barry, contact details for whom are available on the\r
+    FreeRTOS WEB site.\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    http://www.FreeRTOS.org - Documentation, latest information, license and\r
+    contact details.\r
+\r
+    http://www.SafeRTOS.com - A version that is certified for use in safety\r
+    critical systems.\r
+\r
+    http://www.OpenRTOS.com - Commercial support, development, porting,\r
+    licensing and training services.\r
+*/\r
+\r
+/* \r
+ * This project includes a lot of tasks and tests and is therefore complex.\r
+ * If you would prefer a much simpler project to get started with then select\r
+ * the 'Blinky' build configuration within the HEW IDE.\r
+ *\r
+ * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
+ * documentation provides more details of the standard demo application tasks,\r
+ * which provide no particular functionality but do provide a good example of\r
+ * how to use the FreeRTOS API.  The tasks defined in flop.c are included in the\r
+ * set of standard demo tasks to ensure the floating point unit gets some\r
+ * exercise. \r
+ *\r
+ * In addition to the standard demo tasks, the following tasks and tests are \r
+ * defined and/or created within this file:\r
+ *\r
+ * "Reg test" tasks - These fill the registers with known values, then check\r
+ * that each register still contains its expected value.  Each task uses\r
+ * different values.  The tasks run with very low priority so get preempted very\r
+ * frequently.  A register containing an unexpected value is indicative of an\r
+ * error in the context switching mechanism and will result in interrupts being\r
+ * disabled and a branch to a null loop.  This has the effect of stopping \r
+ * execution of all the tests and tasks, which in turn results in all LED\r
+ * activity stopping too.  The nature of the reg test tasks necessitates that \r
+ * they are written in assembly code.  The check task (described below) checks \r
+ * that the reg test tasks are still executing and will indicate an error if\r
+ * either reg test task is found to have stalled.\r
+ *\r
+ * "Check" task - This only executes every five seconds but has a high priority\r
+ * to ensure it gets processor time.  Its main function is to check that all the\r
+ * standard demo tasks are still operational.  While no errors have been\r
+ * discovered the check task will toggle LED 5 every 5 seconds - the toggle\r
+ * rate increasing to 200ms being a visual indication that at least one task has\r
+ * reported unexpected behaviour.\r
+ *\r
+ * "High frequency timer test" - A high frequency periodic interrupt is \r
+ * generated using a timer - the interrupt is assigned a priority above \r
+ * configMAX_SYSCALL_INTERRUPT_PRIORITY so should not be effected by anything\r
+ * the kernel is doing.  The interrupt service routine measures the number of \r
+ * counts a separate timer performs between each interrupt to determine the \r
+ * jitter in the interrupt timing.\r
+ *\r
+ * *NOTE 1* If LED5 is toggling every 5 seconds then all the demo application\r
+ * tasks are executing as expected and no errors have been reported in any \r
+ * tasks.  The toggle rate increasing to 200ms indicates that at least one task\r
+ * has reported unexpected behaviour.\r
+ * \r
+ * *NOTE 2* vApplicationSetupTimerInterrupt() is called by the kernel to let\r
+ * the application set up a timer to generate the tick interrupt.  In this\r
+ * example a compare match timer is used for this purpose.  \r
+ *\r
+ * *NOTE 3* The CPU must be in Supervisor mode when the scheduler is started.\r
+ * The PowerON_Reset_PC() supplied in resetprg.c with this demo has \r
+ * Change_PSW_PM_to_UserMode() commented out to ensure this is the case.\r
+ *\r
+ * *NOTE 4* The IntQueue common demo tasks test interrupt nesting and make use\r
+ * of all the 8bit timers (as two cascaded 16bit units).\r
+*/\r
+\r
+/* Hardware specific includes. */\r
+#include "iodefine.h"\r
+\r
+/* Kernel includes. */\r
+#include "FreeRTOS.h"\r
+#include "task.h"\r
+\r
+/* Standard demo includes. */\r
+#include "partest.h"\r
+#include "flash.h"\r
+#include "IntQueue.h"\r
+#include "BlockQ.h"\r
+#include "death.h"\r
+#include "integer.h"\r
+#include "blocktim.h"\r
+#include "semtest.h"\r
+#include "PollQ.h"\r
+#include "GenQTest.h"\r
+#include "QPeek.h"\r
+#include "recmutex.h"\r
+#include "flop.h"\r
+\r
+/* Values that are passed into the reg test tasks using the task parameter.  The \r
+tasks check that the values are passed in correctly. */\r
+#define mainREG_TEST_1_PARAMETER       ( 0x12121212UL )\r
+#define mainREG_TEST_2_PARAMETER       ( 0x12345678UL )\r
+\r
+/* Priorities at which the tasks are created. */\r
+#define mainCHECK_TASK_PRIORITY                ( configMAX_PRIORITIES - 1 )\r
+#define mainQUEUE_POLL_PRIORITY                ( tskIDLE_PRIORITY + 1 )\r
+#define mainSEM_TEST_PRIORITY          ( tskIDLE_PRIORITY + 1 )\r
+#define mainBLOCK_Q_PRIORITY           ( tskIDLE_PRIORITY + 2 )\r
+#define mainCREATOR_TASK_PRIORITY   ( tskIDLE_PRIORITY + 3 )\r
+#define mainFLASH_TASK_PRIORITY                ( tskIDLE_PRIORITY + 1 )\r
+#define mainuIP_TASK_PRIORITY          ( tskIDLE_PRIORITY + 2 )\r
+#define mainINTEGER_TASK_PRIORITY   ( tskIDLE_PRIORITY )\r
+#define mainGEN_QUEUE_TASK_PRIORITY    ( tskIDLE_PRIORITY )\r
+#define mainFLOP_TASK_PRIORITY         ( tskIDLE_PRIORITY )\r
+\r
+/* The LED toggled by the check task. */\r
+#define mainCHECK_LED                                          ( 5 )\r
+\r
+/* The rate at which mainCHECK_LED will toggle when all the tasks are running\r
+without error.  Controlled by the check task as described at the top of this\r
+file. */\r
+#define mainNO_ERROR_CYCLE_TIME                                ( 5000 / portTICK_RATE_MS )\r
+\r
+/* The rate at which mainCHECK_LED will toggle when an error has been reported\r
+by at least one task.  Controlled by the check task as described at the top of \r
+this file. */\r
+#define mainERROR_CYCLE_TIME                           ( 200 / portTICK_RATE_MS )\r
+\r
+/* The period of the peripheral clock in nano seconds.  This is used to calculate\r
+the jitter time in nano seconds as part of the high frequency timer test.  The\r
+clock driving the timer is divided by 8. */\r
+#define mainNS_PER_CLOCK                                       ( ( unsigned long ) ( ( 1.0 /  ( ( double ) configPERIPHERAL_CLOCK_HZ ) / 8.0 ) * 1000000000.0 ) )\r
+\r
+/*\r
+ * vApplicationMallocFailedHook() will only be called if\r
+ * configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h.  It is a hook\r
+ * function that will execute if a call to pvPortMalloc() fails.\r
+ * pvPortMalloc() is called internally by the kernel whenever a task, queue or\r
+ * semaphore is created.  It is also called by various parts of the demo\r
+ * application.  \r
+ */\r
+void vApplicationMallocFailedHook( void );\r
+\r
+/*\r
+ * vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set to 1\r
+ * in FreeRTOSConfig.h.  It is a hook function that is called on each iteration\r
+ * of the idle task.  It is essential that code added to this hook function\r
+ * never attempts to block in any way (for example, call xQueueReceive() with\r
+ * a block time specified).  If the application makes use of the vTaskDelete()\r
+ * API function (as this demo application does) then it is also important that\r
+ * vApplicationIdleHook() is permitted to return to its calling function because\r
+ * it is the responsibility of the idle task to clean up memory allocated by the\r
+ * kernel to any task that has since been deleted.\r
+ */\r
+void vApplicationIdleHook( void );\r
+\r
+/*\r
+ * vApplicationStackOverflowHook() will only be called if \r
+ * configCHECK_FOR_STACK_OVERFLOW is set to a non-zero value.  The handle and \r
+ * name of the offending task should be passed in the function parameters, but\r
+ * it is possible that the stack overflow will have corrupted these - in which\r
+ * case pxCurrentTCB can be inspected to find the same information.\r
+ */\r
+void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName );\r
+\r
+/*\r
+ * The reg test tasks as described at the top of this file.\r
+ */\r
+static void prvRegTest1Task( void *pvParameters );\r
+static void prvRegTest2Task( void *pvParameters );\r
+\r
+/*\r
+ * The actual implementation of the reg test functionality, which, because of\r
+ * the direct register access, have to be in assembly.\r
+ */\r
+static void prvRegTest1Implementation( void );\r
+static void prvRegTest2Implementation( void );\r
+\r
+/*\r
+ * The check task as described at the top of this file.\r
+ */\r
+static void prvCheckTask( void *pvParameters );\r
+\r
+/* Variables that are incremented on each iteration of the reg test tasks - \r
+provided the tasks have not reported any errors.  The check task inspects these\r
+variables to ensure they are still incrementing as expected.  If a variable \r
+stops incrementing then it is likely that its associate task has stalled. */\r
+unsigned long ulRegTest1CycleCount = 0UL, ulRegTest2CycleCount = 0UL;\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+void main(void)\r
+{\r
+extern void HardwareSetup( void );\r
+\r
+       /* Renesas provided CPU configuration routine.  The clocks are configured in\r
+       here. */\r
+       HardwareSetup();\r
+       \r
+       /* Turn all LEDs off. */\r
+       vParTestInitialise();\r
+       \r
+       /* Start the reg test tasks which test the context switching mechanism. */\r
+       xTaskCreate( prvRegTest1Task, "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest2Task, "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+\r
+       /* Start the check task as described at the top of this file. */\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE * 3, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+\r
+       /* Create the standard demo tasks. */\r
+       vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
+       vCreateBlockTimeTasks();\r
+    vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
+    vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
+    vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );\r
+    vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );\r
+       vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );\r
+    vStartQueuePeekTasks();\r
+       vStartRecursiveMutexTasks();\r
+       vStartInterruptQueueTasks();\r
+       vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
+\r
+       /* The suicide tasks must be created last as they need to know how many\r
+       tasks were running prior to their creation in order to ascertain whether\r
+       or not the correct/expected number of tasks are running at any given time. */\r
+    vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
+\r
+       /* Start the tasks running. */\r
+       vTaskStartScheduler();\r
+       \r
+       /* If all is well we will never reach here as the scheduler will now be\r
+       running.  If we do reach here then it is likely that there was insufficient\r
+       heap available for the idle task to be created. */\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+static void prvCheckTask( void *pvParameters )\r
+{\r
+static volatile unsigned long ulLastRegTest1CycleCount = 0UL, ulLastRegTest2CycleCount = 0UL;\r
+portTickType xNextWakeTime, xCycleFrequency = mainNO_ERROR_CYCLE_TIME;\r
+extern void vSetupHighFrequencyTimer( void );\r
+extern volatile unsigned short usMaxJitter;\r
+volatile unsigned long ulActualJitter = 0;\r
+static char cErrorText[ 100 ];\r
+\r
+       /* If this is being executed then the kernel has been started.  Start the high\r
+       frequency timer test as described at the top of this file.  This is only \r
+       included in the optimised build configuration - otherwise it takes up too much\r
+       CPU time. */\r
+       #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
+               vSetupHighFrequencyTimer();\r
+       #endif\r
+\r
+       /* Initialise xNextWakeTime - this only needs to be done once. */\r
+       xNextWakeTime = xTaskGetTickCount();\r
+\r
+       for( ;; )\r
+       {\r
+               /* Place this task in the blocked state until it is time to run again. */\r
+               vTaskDelayUntil( &xNextWakeTime, xCycleFrequency );\r
+\r
+               /* Check the standard demo tasks are running without error. */\r
+               if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
+               {\r
+                       /* Increase the rate at which this task cycles, which will increase the\r
+                       rate at which mainCHECK_LED flashes to give visual feedback that an error\r
+                       has occurred. */\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: GenQueue" );\r
+               }\r
+               else if( xAreQueuePeekTasksStillRunning() != pdTRUE )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: QueuePeek" );\r
+               }\r
+               else if( xAreBlockingQueuesStillRunning() != pdTRUE )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: BlockQueue" );\r
+               }\r
+               else if( xAreBlockTimeTestTasksStillRunning() != pdTRUE )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: BlockTime" );\r
+               }\r
+           else if( xAreSemaphoreTasksStillRunning() != pdTRUE )\r
+           {\r
+               xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: SemTest" );\r
+           }\r
+           else if( xArePollingQueuesStillRunning() != pdTRUE )\r
+           {\r
+               xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: PollQueue" );\r
+           }\r
+           else if( xIsCreateTaskStillRunning() != pdTRUE )\r
+           {\r
+               xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: Death" );\r
+           }\r
+           else if( xAreIntegerMathsTaskStillRunning() != pdTRUE )\r
+           {\r
+               xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: IntMath" );\r
+           }\r
+           else if( xAreRecursiveMutexTasksStillRunning() != pdTRUE )\r
+           {\r
+               xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: RecMutex" );\r
+           }\r
+               else if( xAreIntQueueTasksStillRunning() != pdPASS )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: IntQueue" );\r
+               }\r
+               else if( xAreMathsTaskStillRunning() != pdPASS )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: Flop" );\r
+               }\r
+\r
+               /* Check the reg test tasks are still cycling.  They will stop incrementing\r
+               their loop counters if they encounter an error. */\r
+               if( ulRegTest1CycleCount == ulLastRegTest1CycleCount )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: RegTest1" );\r
+               }\r
+\r
+               if( ulRegTest2CycleCount == ulLastRegTest2CycleCount )\r
+               {\r
+                       xCycleFrequency = mainERROR_CYCLE_TIME;\r
+                       strncpy( cErrorText, "Error: RegTest2" );\r
+               }\r
+               \r
+               ulLastRegTest1CycleCount = ulRegTest1CycleCount;\r
+               ulLastRegTest2CycleCount = ulRegTest2CycleCount;\r
+               \r
+               /* Toggle the check LED to give an indication of the system status.  If \r
+               the LED toggles every 5 seconds then everything is ok.  A faster toggle \r
+               indicates an error. */\r
+               vParTestToggleLED( mainCHECK_LED );\r
+               \r
+               /* Calculate the maximum jitter experienced by the high frequency timer \r
+               test and print it out.  It is ok to use printf without worrying about \r
+               mutual exclusion as it is not used anywhere else in this demo. */\r
+               //sprintf( cTempBuf, "%s [%fns]\n", "Max Jitter = ", ( ( float ) usMaxJitter ) * mainNS_PER_CLOCK );\r
+               ulActualJitter = ( ( unsigned long ) usMaxJitter ) * mainNS_PER_CLOCK;\r
+               \r
+               if( xCycleFrequency == mainERROR_CYCLE_TIME )\r
+               {\r
+                       nop();\r
+               }\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* The RX port uses this callback function to configure its tick interrupt.  \r
+This allows the application to choose the tick interrupt source. */\r
+void vApplicationSetupTimerInterrupt( void )\r
+{\r
+       /* Enable compare match timer 0. */\r
+       MSTP( CMT0 ) = 0;\r
+       \r
+       /* Interrupt on compare match. */\r
+       CMT0.CMCR.BIT.CMIE = 1;\r
+       \r
+       /* Set the compare match value. */\r
+       CMT0.CMCOR = ( unsigned short ) ( ( ( configPERIPHERAL_CLOCK_HZ / configTICK_RATE_HZ ) -1 ) / 8 );\r
+       \r
+       /* Divide the PCLK by 8. */\r
+       CMT0.CMCR.BIT.CKS = 0;\r
+       \r
+       /* Enable the interrupt... */\r
+       _IEN( _CMT0_CMI0 ) = 1;\r
+       \r
+       /* ...and set its priority to the application defined kernel priority. */\r
+       _IPR( _CMT0_CMI0 ) = configKERNEL_INTERRUPT_PRIORITY;\r
+       \r
+       /* Start the timer. */\r
+       CMT.CMSTR0.BIT.STR0 = 1;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained by the comments above its prototype at the top\r
+of this file. */\r
+void vApplicationMallocFailedHook( void )\r
+{\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained by the comments above its prototype at the top\r
+of this file. */\r
+void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )\r
+{\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained by the comments above its prototype at the top\r
+of this file. */\r
+void vApplicationIdleHook( void )\r
+{\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained in the comments at the top of this file. */\r
+static void prvRegTest1Task( void *pvParameters )\r
+{\r
+       if( ( ( unsigned long ) pvParameters ) != mainREG_TEST_1_PARAMETER )\r
+       {\r
+               /* The parameter did not contain the expected value. */\r
+               for( ;; )\r
+               {\r
+                       /* Stop the tick interrupt so its obvious something has gone wrong. */\r
+                       taskDISABLE_INTERRUPTS();\r
+               }\r
+       }\r
+       \r
+       /* This is an inline asm function that never returns. */\r
+       prvRegTest1Implementation();            \r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained in the comments at the top of this file. */\r
+static void prvRegTest2Task( void *pvParameters )\r
+{\r
+       if( ( ( unsigned long ) pvParameters ) != mainREG_TEST_2_PARAMETER )\r
+       {\r
+               /* The parameter did not contain the expected value. */\r
+               for( ;; )\r
+               {\r
+                       /* Stop the tick interrupt so its obvious something has gone wrong. */\r
+                       taskDISABLE_INTERRUPTS();\r
+               }\r
+       }\r
+       \r
+       /* This is an inline asm function that never returns. */\r
+       prvRegTest2Implementation();            \r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained in the comments at the top of this file. */\r
+#pragma inline_asm prvRegTest1Implementation\r
+static void prvRegTest1Implementation( void )\r
+{\r
+       ; Put a known value in each register.\r
+       MOV.L   #1, R1\r
+       MOV.L   #2, R2\r
+       MOV.L   #3, R3\r
+       MOV.L   #4, R4\r
+       MOV.L   #5, R5\r
+       MOV.L   #6, R6\r
+       MOV.L   #7, R7\r
+       MOV.L   #8, R8\r
+       MOV.L   #9, R9\r
+       MOV.L   #10, R10\r
+       MOV.L   #11, R11\r
+       MOV.L   #12, R12\r
+       MOV.L   #13, R13\r
+       MOV.L   #14, R14\r
+       MOV.L   #15, R15\r
+       \r
+       ; Loop, checking each itteration that each register still contains the\r
+       ; expected value.\r
+TestLoop1:     \r
+\r
+       ; Push the registers that are going to get clobbered.\r
+       PUSHM   R14-R15\r
+       \r
+       ; Increment the loop counter to show this task is still getting CPU time.\r
+       MOV.L   #_ulRegTest1CycleCount, R14\r
+       MOV.L   [ R14 ], R15\r
+       ADD             #1, R15\r
+       MOV.L   R15, [ R14 ]\r
+       \r
+       ; Yield to extend the text coverage.  Set the bit in the ITU SWINTR register.\r
+       MOV.L   #1, R14\r
+       MOV.L   #0872E0H, R15\r
+       MOV.B   R14, [R15]\r
+       NOP\r
+       NOP\r
+       \r
+       ; Restore the clobbered registers.\r
+       POPM    R14-R15\r
+       \r
+       ; Now compare each register to ensure it still contains the value that was\r
+       ; set before this loop was entered.\r
+       CMP             #1, R1\r
+       BNE             RegTest2Error\r
+       CMP             #2, R2\r
+       BNE             RegTest2Error\r
+       CMP             #3, R3\r
+       BNE             RegTest2Error\r
+       CMP             #4, R4\r
+       BNE             RegTest2Error\r
+       CMP             #5, R5\r
+       BNE             RegTest2Error\r
+       CMP             #6, R6\r
+       BNE             RegTest2Error\r
+       CMP             #7, R7\r
+       BNE             RegTest2Error\r
+       CMP             #8, R8\r
+       BNE             RegTest2Error\r
+       CMP             #9, R9\r
+       BNE             RegTest2Error\r
+       CMP             #10, R10\r
+       BNE             RegTest2Error\r
+       CMP             #11, R11\r
+       BNE             RegTest2Error\r
+       CMP             #12, R12\r
+       BNE             RegTest2Error\r
+       CMP             #13, R13\r
+       BNE             RegTest2Error\r
+       CMP             #14, R14\r
+       BNE             RegTest2Error\r
+       CMP             #15, R15\r
+       BNE             RegTest2Error\r
+\r
+       ; All comparisons passed, start a new itteratio of this loop.\r
+       BRA             TestLoop1\r
+       \r
+RegTest1Error:\r
+       ; A compare failed, something has gone wrong.  Stop the tick and any other \r
+       ; interrupts to make it obvious that things have halted.\r
+       CLRPSW  I\r
+       BRA RegTest1Error\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* This function is explained in the comments at the top of this file. */\r
+#pragma inline_asm prvRegTest2Implementation\r
+static void prvRegTest2Implementation( void )\r
+{\r
+       ; Put a known value in each register.\r
+       MOV.L   #10, R1\r
+       MOV.L   #20, R2\r
+       MOV.L   #30, R3\r
+       MOV.L   #40, R4\r
+       MOV.L   #50, R5\r
+       MOV.L   #60, R6\r
+       MOV.L   #70, R7\r
+       MOV.L   #80, R8\r
+       MOV.L   #90, R9\r
+       MOV.L   #100, R10\r
+       MOV.L   #110, R11\r
+       MOV.L   #120, R12\r
+       MOV.L   #130, R13\r
+       MOV.L   #140, R14\r
+       MOV.L   #150, R15\r
+       \r
+       ; Loop, checking on each itteration that each register still contains the\r
+       ; expected value.\r
+TestLoop2:     \r
+       \r
+       ; Push the registers that are going to get clobbered.\r
+       PUSHM   R14-R15\r
+       \r
+       ; Increment the loop counter to show this task is still getting CPU time.\r
+       MOV.L   #_ulRegTest2CycleCount, R14\r
+       MOV.L   [ R14 ], R15\r
+       ADD             #1, R15\r
+       MOV.L   R15, [ R14 ]\r
+       \r
+       ; Restore the clobbered registers.\r
+       POPM    R14-R15 \r
+       \r
+       CMP             #10, R1\r
+       BNE             RegTest2Error\r
+       CMP             #20, R2\r
+       BNE             RegTest2Error\r
+       CMP             #30, R3\r
+       BNE             RegTest2Error\r
+       CMP             #40, R4\r
+       BNE             RegTest2Error\r
+       CMP             #50, R5\r
+       BNE             RegTest2Error\r
+       CMP             #60, R6\r
+       BNE             RegTest2Error\r
+       CMP             #70, R7\r
+       BNE             RegTest2Error\r
+       CMP             #80, R8\r
+       BNE             RegTest2Error\r
+       CMP             #90, R9\r
+       BNE             RegTest2Error\r
+       CMP             #100, R10\r
+       BNE             RegTest2Error\r
+       CMP             #110, R11\r
+       BNE             RegTest2Error\r
+       CMP             #120, R12\r
+       BNE             RegTest2Error\r
+       CMP             #130, R13\r
+       BNE             RegTest2Error\r
+       CMP             #140, R14\r
+       BNE             RegTest2Error\r
+       CMP             #150, R15\r
+       BNE             RegTest2Error\r
+\r
+       ; All comparisons passed, start a new itteratio of this loop.\r
+       BRA             TestLoop2\r
+       \r
+RegTest2Error:\r
+       ; A compare failed, something went wrong.  Stop the tick and any other \r
+       ; interrupts to make it obvious that things have halted.\r
+       CLRPSW  I\r
+       BRA RegTest2Error\r
+}\r
+\r
+\r
+\r
+\r
+\r
index 35f1d261f843681852dcf640dc079301c2b2a5e9..960c1f55388f4be949f6ad3b3eb84505ddbe16c9 100644 (file)
@@ -3,12 +3,12 @@
 [DATABASE_VERSION]\r
 "11.0" \r
 [WORKSPACE_DETAILS]\r
-"RX600_RX62N_MDK_GNURX" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RX600_RX62N_MDK_GNURX.hws" "RX" "KPIT GNURX [ELF]" \r
+"RX600_RX62N_MDK_GNURX" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RX600_RX62N_MDK_GNURX.hws" "RX" "KPIT GNURX [ELF]" \r
 [SHARED_WORKSPACE_CONTROL_STATUS]\r
 "" "" "" \r
 "" "" "" \r
 [PROJECTS]\r
-"RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\RTOSDemo.hwp" 0 \r
+"RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo" "C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\RTOSDemo.hwp" 0 \r
 [INFORMATION]\r
 "No workspace information available" \r
 [SCRAP]\r
index ec05cd4c3009e7a63462fa3aaa9b3b74ea1bb619..d48ee78607f178489783d27526ddf7b19771c5d1 100644 (file)
@@ -7,11 +7,17 @@
 [GENERAL_DATA]\r
 [BREAKPOINTS]\r
 [OPEN_WORKSPACE_FILES]\r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" \r
 [WORKSPACE_FILE_STATES]\r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\GNU-Files\start.asm" 0 0 1104 409 0 0 \r
-"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N_MDK_GNURX\RTOSDemo\main.c" -4 -23 1314 638 1 1 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\GNU-Files\start.asm" 110 110 794 413 0 2 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Demo\RX600_RX62N-MDK_GNURX\RTOSDemo\main-blinky.c" -4 -23 1000 609 1 0 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\RX600\port.c" 0 0 1000 454 0 4 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\queue.c" 0 0 1314 638 0 1 \r
+"C:\E\Dev\FreeRTOS\WorkingCopy\Source\tasks.c" 176 176 794 413 0 3 \r
 [LOADED_PROJECTS]\r
 "RTOSDemo" \r
 [END]\r