]> git.sur5r.net Git - freertos/commitdiff
Start to create an RX64M demo.
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 3 Mar 2014 16:39:41 +0000 (16:39 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 3 Mar 2014 16:39:41 +0000 (16:39 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2221 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

29 files changed:
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.HardwareDebuglinker [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.cproject [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.info [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.project [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.settings/CodeGenerator/cgprojectDatas.datas [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.settings/Project_Generation_Prefrences.prefs [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/RTOSDemo HardwareDebug.launch [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/FreeRTOSConfig.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/ParTest.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc_user.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cmt.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cmt.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_dbsct.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_hardware_setup.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_intprg.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_iodefine.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_macrodriver.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_resetprg.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_sbrk.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_sbrk.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_stacksct.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_userdefine.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_vect.h [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_vecttbl.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/main.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/main_blinky.c [new file with mode: 0644]
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/makefile.init [new file with mode: 0644]

diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.HardwareDebuglinker b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.HardwareDebuglinker
new file mode 100644 (file)
index 0000000..99f3c2c
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ASCII"?>\r
+<com.renesas.linkersection.model:SectionContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.renesas.linkersection.model="http:///LinkerSection.ecore">\r
+  <sections name="B_1">\r
+    <sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4"/>\r
+  </sections>\r
+  <sections name="R_1"/>\r
+  <sections name="B_2"/>\r
+  <sections name="R_2"/>\r
+  <sections name="B"/>\r
+  <sections name="R"/>\r
+  <sections name="SU"/>\r
+  <sections name="SI"/>\r
+  <sections name="PResetPRG">\r
+    <sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294934528"/>\r
+  </sections>\r
+  <sections name="C_1">\r
+    <sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294934784"/>\r
+  </sections>\r
+  <sections name="C_2"/>\r
+  <sections name="C"/>\r
+  <sections name="C$DSEC"/>\r
+  <sections name="C$BSEC"/>\r
+  <sections name="C$INIT"/>\r
+  <sections name="C$VTBL"/>\r
+  <sections name="C$VECT"/>\r
+  <sections name="D_1"/>\r
+  <sections name="D_2"/>\r
+  <sections name="D"/>\r
+  <sections name="P"/>\r
+  <sections name="PIntPRG"/>\r
+  <sections name="W_1"/>\r
+  <sections name="W_2"/>\r
+  <sections name="W"/>\r
+  <sections name="L"/>\r
+  <sections name="FIXEDVECT">\r
+    <sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967248"/>\r
+  </sections>\r
+</com.renesas.linkersection.model:SectionContainer>\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.cproject b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.cproject
new file mode 100644 (file)
index 0000000..412d691
--- /dev/null
@@ -0,0 +1,233 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<?fileVersion 4.0.0?>\r
+\r
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">\r
+       <storageModule moduleId="org.eclipse.cdt.core.settings">\r
+               <cconfiguration id="com.renesas.cdt.rxc.release.win32.configuration.Id.1672907423">\r
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.renesas.cdt.rxc.release.win32.configuration.Id.1672907423" moduleId="org.eclipse.cdt.core.settings" name="Release">\r
+                               <externalSettings/>\r
+                               <extensions>\r
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>\r
+                                       <extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITGCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITVCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITGASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITMakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITGLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.CCRXErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                               </extensions>\r
+                       </storageModule>\r
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">\r
+                               <configuration artifactName="RX64MStartUp" buildArtefactType="com.renesas.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=com.renesas.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf *.lst *.lis *.lpp *.map *.x *.lbp src/*.src src/*.p src/*.pp *.bls *.libelf *.lbk *.abs" description="Release - No Debug" errorParsers="com.renesas.cdt.core.KPITMakeErrorParser;com.renesas.cdt.core.KPITGCCErrorParser;com.renesas.cdt.core.KPITGASErrorParser;com.renesas.cdt.core.KPITGLDErrorParser;com.renesas.cdt.core.KPITVCErrorParser;com.renesas.cdt.core.CCRXErrorParser" id="com.renesas.cdt.rxc.release.win32.configuration.Id.1672907423" name="Release" parent="com.renesas.cdt.rxc.release.win32.configuration.Id">\r
+                                       <folderInfo id="com.renesas.cdt.rxc.release.win32.configuration.Id.1672907423." name="/" resourcePath="">\r
+                                               <toolChain id="com.renesas.cdt.rxc.release.win32.toolChain.Id.979371638" name="Renesas RXC Toolchain" superClass="com.renesas.cdt.rxc.release.win32.toolChain.Id">\r
+                                                       <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.rxc.release.win32.targetPlatform.IdId.326289097" osList="win32" superClass="com.renesas.cdt.rxc.release.win32.targetPlatform.IdId"/>\r
+                                                       <builder buildPath="${workspace_loc:/RX64MStartUp}/Release" id="com.renesas.cdt.rxc.release.win32.builder.Id.1780466888" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="SHC Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.rxc.release.win32.builder.Id"/>\r
+                                                       <tool id="com.renesas.cdt.rxc.release.win32.tool.compiler.Id.1494256709" name="Compiler" superClass="com.renesas.cdt.rxc.release.win32.tool.compiler.Id">\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.defines.535029115" name="Defines" superClass="com.renesas.cdt.renesas.Compiler.option.defines" valueType="definedSymbols">\r
+                                                                       <listOptionValue builtIn="false" value="__RX"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.cpuType.773963808" name="CPU type" superClass="com.renesas.cdt.rxc.Release.Compiler.option.cpuType" value="RX600" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.endian.1825401874" name="Data Endian" superClass="com.renesas.cdt.rxc.Release.Compiler.option.endian" value="Little-endian data" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.roundTo.897838305" name="Round to" superClass="com.renesas.cdt.rxc.Release.Compiler.option.roundTo" value="Nearest" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.precisionDouble.540860970" name="Precision of double" superClass="com.renesas.cdt.rxc.Release.Compiler.option.precisionDouble" value="Single precision" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.signChar.1383946864" name="Sign of char" superClass="com.renesas.cdt.rxc.Release.Compiler.option.signChar" value="unsigned" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.signBitField.946035889" name="Sign of bit field" superClass="com.renesas.cdt.rxc.Release.Compiler.option.signBitField" value="unsigned" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.allocLowerBit.3737301" name="Allocate from lower bit" superClass="com.renesas.cdt.rxc.Release.Compiler.option.allocLowerBit" value="Lower bit" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.widthDivergence.1887628902" name="Width of divergence of function" superClass="com.renesas.cdt.rxc.Release.Compiler.option.widthDivergence" value="24 bit" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.patchCode.1241305343" name="Patch code generation" superClass="com.renesas.cdt.rxc.Release.Compiler.option.patchCode" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.registerFastInterrupt.968046492" name="Fast interrupt register" superClass="com.renesas.cdt.rxc.Release.Compiler.option.registerFastInterrupt" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.ROM.1819672052" name="ROM" superClass="com.renesas.cdt.rxc.Release.Compiler.option.ROM" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.RAM.2013992852" name="RAM" superClass="com.renesas.cdt.rxc.Release.Compiler.option.RAM" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.addressRegister.759178237" name="Address Register" superClass="com.renesas.cdt.rxc.Release.Compiler.option.addressRegister" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.device.337119841" name="Device" superClass="com.renesas.cdt.renesas.Compiler.option.device" value="R5F564ML" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.deviceShortName.561062042" name="DeviceShortName" superClass="com.renesas.cdt.renesas.Compiler.option.deviceShortName" value="R5F564MLDxFC" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.incFileDirectories.417739342" name="Include file directories" superClass="com.renesas.cdt.renesas.Compiler.option.incFileDirectories" valueType="includePath">\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${TCINSTALL}/include&quot;"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.CPUSeries.1432961866" name="Cpu Series" superClass="com.renesas.cdt.renesas.Compiler.option.CPUSeries" value="RX64M" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.UserDef.1388700075" name="User-defined options" superClass="com.renesas.cdt.renesas.Compiler.option.UserDef" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="-nologo"/>\r
+                                                                       <listOptionValue builtIn="false" value="-change_message=warning"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Compiler.option.cpu.1320717512" name="CPU" superClass="com.renesas.cdt.rxc.Release.Compiler.option.cpu" value="RX64M" valueType="string"/>\r
+                                                               <inputType id="%Base.Compiler.Shc.C.Input.Id.129210005" name="C Input" superClass="%Base.Compiler.Shc.C.Input.Id"/>\r
+                                                               <inputType id="%Base.Compiler.Shc.C.Input1.Id.1021200129" name="C++ Input" superClass="%Base.Compiler.Shc.C.Input1.Id"/>\r
+                                                       </tool>\r
+                                                       <tool id="%com.renesas.cdt.rxc.release.win32.tool.assembler.Id.409101298" name="Assembler" superClass="%com.renesas.cdt.rxc.release.win32.tool.assembler.Id">\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Assembler.option.endian.534674149" name="Data Endian" superClass="com.renesas.cdt.rxc.Release.Assembler.option.endian" value="Little-endian data" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.Assembler.option.address.852994699" name="Address" superClass="com.renesas.cdt.rxc.Release.Assembler.option.address" value="00000000" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Assembler.option.userDefine.370665869" name="User-defined options" superClass="com.renesas.cdt.renesas.Assembler.option.userDefine" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="-nologo"/>\r
+                                                                       <listOptionValue builtIn="false" value=""/>\r
+                                                                       <listOptionValue builtIn="false" value=""/>\r
+                                                               </option>\r
+                                                               <inputType id="%Base.Assembler.shcInputType.Id.1346544456" name="Assembler InputType" superClass="%Base.Assembler.shcInputType.Id"/>\r
+                                                       </tool>\r
+                                                       <tool id="com.renesas.cdt.rxc.release.win32.tool.linker.Id.1020824477" name="Linker" superClass="com.renesas.cdt.rxc.release.win32.tool.linker.Id">\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.rom.644591168" name="ROM to RAM mapped section" superClass="com.renesas.cdt.renesas.Linker.option.rom" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="D=R"/>\r
+                                                                       <listOptionValue builtIn="false" value="D_1=R_1"/>\r
+                                                                       <listOptionValue builtIn="false" value="D_2=R_2"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.linkOrderList.1750231185" name="" superClass="com.renesas.cdt.renesas.Linker.option.linkOrderList" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\src\RX64MStartUp.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\src\dbsct.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\src\interrupt_handlers.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\src\reset_program.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\src\sbrk.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\src\vector_table.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\RX64MStartUp.lib&quot;"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.typeOfOutputFileOption.5828690" name="Type of output file:" superClass="com.renesas.cdt.renesas.Linker.option.typeOfOutputFileOption" value="Stype via absolute" valueType="enumerated"/>\r
+                                                       </tool>\r
+                                                       <tool command="lbgrx" id="%com.renesas.cdt.rxc.release.win32.tool.libgen.Id.695800513" name="Standard Library" superClass="%com.renesas.cdt.rxc.release.win32.tool.libgen.Id">\r
+                                                               <option id="com.renesas.cdt.rxc.Release.StandardLibrary.option.endian.2085196719" name="Data Endian" superClass="com.renesas.cdt.rxc.Release.StandardLibrary.option.endian" value="Little-endian data" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.Release.StandardLibrary.option.address.1396339506" name="Address" superClass="com.renesas.cdt.rxc.Release.StandardLibrary.option.address" value="00000000" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.libConfiguration.508834085" name="Library configuration" superClass="com.renesas.cdt.renesas.StandardLibrary.option.libConfiguration" value="C(C89)" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.mathc89.1881776053" name="math.h (C89/C99): Mathematical/trigonometric operations (double-precision)" superClass="com.renesas.cdt.renesas.StandardLibrary.option.mathc89" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.stdioc89.1128197584" name="stdio.h (C89/C99): Input/Output" superClass="com.renesas.cdt.renesas.StandardLibrary.option.stdioc89" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.stdlibc89.284113515" name="stdlib.h (C89/C99): General purpose library features" superClass="com.renesas.cdt.renesas.StandardLibrary.option.stdlibc89" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.stringc89.245389191" name="string.h (C89/C99): String handling operations" superClass="com.renesas.cdt.renesas.StandardLibrary.option.stringc89" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.rxcnewCPP.1295998752" name="new (EC++): Memory allocation and deallocation routines" superClass="com.renesas.cdt.renesas.StandardLibrary.option.rxcnewCPP" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.mode.741613136" name="Mode" superClass="com.renesas.cdt.renesas.StandardLibrary.option.mode" value="com.renesas.cdt.renesas.StandardLibrary.option.buildOnlyWhenOptionsChanged" valueType="enumerated"/>\r
+                                                       </tool>\r
+                                                       <tool id="com.renesas.cdt.rxc.release.win32.tool.convertor.Id.2027596800" name="Converter" superClass="com.renesas.cdt.rxc.release.win32.tool.convertor.Id"/>\r
+                                               </toolChain>\r
+                                       </folderInfo>\r
+                                       <sourceEntries>\r
+                                               <entry excluding="src" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name=""/>\r
+                                       </sourceEntries>\r
+                               </configuration>\r
+                       </storageModule>\r
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>\r
+               </cconfiguration>\r
+               <cconfiguration id="com.renesas.cdt.rxc.hardwaredebug.win32.configuration.Id.534038930">\r
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.renesas.cdt.rxc.hardwaredebug.win32.configuration.Id.534038930" moduleId="org.eclipse.cdt.core.settings" name="HardwareDebug">\r
+                               <externalSettings/>\r
+                               <extensions>\r
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>\r
+                                       <extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITGCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITVCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITGASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITMakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.KPITGLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                                       <extension id="com.renesas.cdt.core.CCRXErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>\r
+                               </extensions>\r
+                       </storageModule>\r
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">\r
+                               <configuration artifactExtension="mot" artifactName="RTOSDemo" buildArtefactType="com.renesas.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=com.renesas.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf *.lst *.lis *.lpp *.map *.x *.lbp src/*.src src/*.p src/*.pp *.bls *.libelf *.lbk *.abs" description="Debug on hardware" errorParsers="com.renesas.cdt.core.KPITMakeErrorParser;com.renesas.cdt.core.KPITGCCErrorParser;com.renesas.cdt.core.KPITGASErrorParser;com.renesas.cdt.core.KPITGLDErrorParser;com.renesas.cdt.core.KPITVCErrorParser;com.renesas.cdt.core.CCRXErrorParser" id="com.renesas.cdt.rxc.hardwaredebug.win32.configuration.Id.534038930" name="HardwareDebug" parent="com.renesas.cdt.rxc.hardwaredebug.win32.configuration.Id">\r
+                                       <folderInfo id="com.renesas.cdt.rxc.hardwaredebug.win32.configuration.Id.534038930." name="/" resourcePath="">\r
+                                               <toolChain id="com.renesas.cdt.rxc.hardwaredebug.win32.toolChain.Id.1837389222" name="Renesas RXC Toolchain" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.toolChain.Id" targetTool="com.renesas.cdt.rxc.hardwaredebug.win32.tool.convertor.Id">\r
+                                                       <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.rxc.hardwaredebug.win32.targetPlatform.Id.557837330" isAbstract="false" osList="win32" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.targetPlatform.Id"/>\r
+                                                       <builder buildPath="${workspace_loc:/RX64MStartUp}/HardwareDebug" id="com.renesas.cdt.rxc.hardwaredebug.win32.builder.Id.1379234292" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="SHC Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.builder.Id"/>\r
+                                                       <tool id="com.renesas.cdt.rxc.hardwaredebug.win32.tool.compiler.Id.244125284" name="Compiler" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.tool.compiler.Id">\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.defines.1076306498" name="Defines" superClass="com.renesas.cdt.renesas.Compiler.option.defines" valueType="definedSymbols">\r
+                                                                       <listOptionValue builtIn="false" value="__RX"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.cpuType.1318876804" name="CPU type" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.cpuType" value="RX600" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.endian.2086943611" name="Data Endian" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.endian" value="Little-endian data" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.roundTo.1452702820" name="Round to" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.roundTo" value="Nearest" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.precisionDouble.82075516" name="Precision of double" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.precisionDouble" value="Single precision" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.signChar.1316535736" name="Sign of char" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.signChar" value="unsigned" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.signBitField.292825430" name="Sign of bit field" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.signBitField" value="unsigned" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.allocLowerBit.1288051450" name="Allocate from lower bit" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.allocLowerBit" value="Lower bit" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.widthDivergence.284310033" name="Width of divergence of function" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.widthDivergence" value="24 bit" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.patchCode.83005627" name="Patch code generation" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.patchCode" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.registerFastInterrupt.509396515" name="Fast interrupt register" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.registerFastInterrupt" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.ROM.72057556" name="ROM" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.ROM" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.RAM.1551486348" name="RAM" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.RAM" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.addressRegister.627011296" name="Address Register" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.addressRegister" value="None" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.device.2106445058" name="Device" superClass="com.renesas.cdt.renesas.Compiler.option.device" value="R5F564ML" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.deviceShortName.849913083" name="DeviceShortName" superClass="com.renesas.cdt.renesas.Compiler.option.deviceShortName" value="R5F564MLDxFC" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.incFileDirectories.92846512" name="Include file directories" superClass="com.renesas.cdt.renesas.Compiler.option.incFileDirectories" valueType="includePath">\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${TCINSTALL}/include&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Source/Common_Demo_Source/include}&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Source/FreeRTOS_Source/include}&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Source}&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Source/FreeRTOS_Source/portable/Renesas/RX600v2}&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/Source/Renesas_Code/cg_src}&quot;"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.CPUSeries.1984701036" name="Cpu Series" superClass="com.renesas.cdt.renesas.Compiler.option.CPUSeries" value="RX64M" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Compiler.option.UserDef.342737713" name="User-defined options" superClass="com.renesas.cdt.renesas.Compiler.option.UserDef" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="-nologo"/>\r
+                                                                       <listOptionValue builtIn="false" value="-change_message=warning"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.cpu.1044477391" name="CPU" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.cpu" value="RX64M" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel.826566403" name="Optimize level" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel" value="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel.0" valueType="enumerated"/>\r
+                                                               <inputType id="%Base.Compiler.Shc.C.Input.Id.1890187174" name="C Input" superClass="%Base.Compiler.Shc.C.Input.Id"/>\r
+                                                               <inputType id="%Base.Compiler.Shc.C.Input1.Id.396506632" name="C++ Input" superClass="%Base.Compiler.Shc.C.Input1.Id"/>\r
+                                                       </tool>\r
+                                                       <tool id="com.renesas.cdt.rxc.hardwaredebug.win32.tool.assembler.Id.1919439319" name="Assembler" outputFlag="" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.tool.assembler.Id">\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Assembler.option.endian.911305238" name="Data Endian" superClass="com.renesas.cdt.rxc.HardwareDebug.Assembler.option.endian" value="Little-endian data" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Assembler.option.address.1626852461" name="Address" superClass="com.renesas.cdt.rxc.HardwareDebug.Assembler.option.address" value="00000000" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Assembler.option.userDefine.879789928" name="User-defined options" superClass="com.renesas.cdt.renesas.Assembler.option.userDefine" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="-nologo"/>\r
+                                                                       <listOptionValue builtIn="false" value=""/>\r
+                                                                       <listOptionValue builtIn="false" value=""/>\r
+                                                               </option>\r
+                                                               <inputType id="%Base.Assembler.shcInputType.Id.1753262605" name="Assembler InputType" superClass="%Base.Assembler.shcInputType.Id"/>\r
+                                                       </tool>\r
+                                                       <tool command="optlnk" id="com.renesas.cdt.rxc.hardwaredebug.win32.tool.linker.Id.1242574850" name="Linker" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.tool.linker.Id">\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.rom.1225547808" name="ROM to RAM mapped section" superClass="com.renesas.cdt.renesas.Linker.option.rom" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="D=R"/>\r
+                                                                       <listOptionValue builtIn="false" value="D_1=R_1"/>\r
+                                                                       <listOptionValue builtIn="false" value="D_2=R_2"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.linkOrderList.1184295097" name="" superClass="com.renesas.cdt.renesas.Linker.option.linkOrderList" valueType="stringList">\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_cgc.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_cgc_user.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_cmt.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_cmt_user.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_dbsct.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_hardware_setup.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_intprg.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_resetprg.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_sbrk.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/Renesas_Code/cg_src\r_cg_vecttbl.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source/portable/Renesas/RX600v2\port.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source/portable/Renesas/RX600v2\port_asm.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source/portable/MemMang\heap_4.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source\event_groups.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source\list.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source\queue.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source\tasks.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source/FreeRTOS_Source\timers.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\Source\main.obj&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;.\RTOSDemo.lib&quot;"/>\r
+                                                               </option>\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.typeOfOutputFileOption.2104356968" name="Type of output file:" superClass="com.renesas.cdt.renesas.Linker.option.typeOfOutputFileOption" value="Stype via absolute" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.renesas.Linker.option.linkOrder.1520767120" name="%option.name.179" superClass="com.renesas.cdt.renesas.Linker.option.linkOrder" valueType="stringList"/>\r
+                                                       </tool>\r
+                                                       <tool command="lbgrx" id="%com.renesas.cdt.rxc.hardwaredebug.win32.tool.libgen.Id.1405860605" name="Standard Library" superClass="%com.renesas.cdt.rxc.hardwaredebug.win32.tool.libgen.Id">\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.StandardLibrary.option.endian.402722613" name="Data Endian" superClass="com.renesas.cdt.rxc.HardwareDebug.StandardLibrary.option.endian" value="Little-endian data" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.StandardLibrary.option.address.2030989684" name="Address" superClass="com.renesas.cdt.rxc.HardwareDebug.StandardLibrary.option.address" value="00000000" valueType="string"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.libConfiguration.365502198" name="Library configuration" superClass="com.renesas.cdt.renesas.StandardLibrary.option.libConfiguration" value="C(C89)" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.mathc89.1961101149" name="math.h (C89/C99): Mathematical/trigonometric operations (double-precision)" superClass="com.renesas.cdt.renesas.StandardLibrary.option.mathc89" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.stdioc89.219852317" name="stdio.h (C89/C99): Input/Output" superClass="com.renesas.cdt.renesas.StandardLibrary.option.stdioc89" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.stdlibc89.603288235" name="stdlib.h (C89/C99): General purpose library features" superClass="com.renesas.cdt.renesas.StandardLibrary.option.stdlibc89" value="true" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.stringc89.298274803" name="string.h (C89/C99): String handling operations" superClass="com.renesas.cdt.renesas.StandardLibrary.option.stringc89" value="true" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.rxcnewCPP.207113089" name="new (EC++): Memory allocation and deallocation routines" superClass="com.renesas.cdt.renesas.StandardLibrary.option.rxcnewCPP" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.mode.1359818153" name="Mode" superClass="com.renesas.cdt.renesas.StandardLibrary.option.mode" value="com.renesas.cdt.renesas.StandardLibrary.option.mode.buildOnlyWhenOptionsChanged" valueType="enumerated"/>\r
+                                                               <option id="com.renesas.cdt.renesas.StandardLibrary.option.userSpecifiedLibrary.1612193964" name="User-specified library file" superClass="com.renesas.cdt.renesas.StandardLibrary.option.userSpecifiedLibrary" value="C:\E\Dev\FreeRTOS\WORKIN~1\FreeRTOS\Demo\RX2097~1\HARDWA~2\RTOSDemo.lib" valueType="string"/>\r
+                                                       </tool>\r
+                                                       <tool command="optlnk" id="com.renesas.cdt.rxc.hardwaredebug.win32.tool.convertor.Id.1803349405" name="Converter" superClass="com.renesas.cdt.rxc.hardwaredebug.win32.tool.convertor.Id"/>\r
+                                               </toolChain>\r
+                                       </folderInfo>\r
+                                       <sourceEntries>\r
+                                               <entry excluding="src" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name=""/>\r
+                                       </sourceEntries>\r
+                               </configuration>\r
+                       </storageModule>\r
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>\r
+               </cconfiguration>\r
+       </storageModule>\r
+       <storageModule moduleId="cdtBuildSystem" version="4.0.0">\r
+               <project id="RX64MStartUp.com.renesas.cdt.rxc.projectType.win32.Id.32669381" name="Executable (Renesas)" projectType="com.renesas.cdt.rxc.projectType.win32.Id"/>\r
+       </storageModule>\r
+       <storageModule moduleId="scannerConfiguration">\r
+               <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>\r
+       </storageModule>\r
+       <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>\r
+</cproject>\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.info b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.info
new file mode 100644 (file)
index 0000000..5306972
--- /dev/null
@@ -0,0 +1,6 @@
+TOOL_CHAIN=Renesas RXC Toolchain
+VERSION=v1.02.01
+TC_INSTALL=C:\Devtools\Renesas\Hew\Tools\Renesas\RX\1_2_1\
+VERSION_IDE=3.06.02.004
+E2STUDIO_VERSION=2.2.0.13
+ACTIVE_CONFIGURATION=HardwareDebug
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.project b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.project
new file mode 100644 (file)
index 0000000..29a634b
--- /dev/null
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<projectDescription>\r
+       <name>RTOSDemo</name>\r
+       <comment></comment>\r
+       <projects>\r
+       </projects>\r
+       <buildSpec>\r
+               <buildCommand>\r
+                       <name>com.renesas.cdt.core.genmakebuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>\r
+                       <triggers>full,incremental,</triggers>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+       </buildSpec>\r
+       <natures>\r
+               <nature>org.eclipse.cdt.core.cnature</nature>\r
+               <nature>com.renesas.cdt.core.kpitcnature</nature>\r
+               <nature>com.renesas.cdt.core.kpitccnature</nature>\r
+               <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>\r
+               <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>\r
+       </natures>\r
+       <linkedResources>\r
+               <link>\r
+                       <name>Source/Common_Demo_Source</name>\r
+                       <type>2</type>\r
+                       <locationURI>virtual:/virtual</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source</name>\r
+                       <type>2</type>\r
+                       <locationURI>virtual:/virtual</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/Common_Demo_Source/include</name>\r
+                       <type>2</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Demo/Common/include</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/event_groups.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/event_groups.c</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/include</name>\r
+                       <type>2</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/include</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/list.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/list.c</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/portable</name>\r
+                       <type>2</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/portable</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/queue.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/queue.c</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/tasks.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/tasks.c</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>Source/FreeRTOS_Source/timers.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS/Source/timers.c</locationURI>\r
+               </link>\r
+       </linkedResources>\r
+       <filteredResources>\r
+               <filter>\r
+                       <id>1393853702360</id>\r
+                       <name>Source/FreeRTOS_Source/portable</name>\r
+                       <type>9</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-MemMang</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1393853702376</id>\r
+                       <name>Source/FreeRTOS_Source/portable</name>\r
+                       <type>9</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-Renesas</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1393853718739</id>\r
+                       <name>Source/FreeRTOS_Source/portable/MemMang</name>\r
+                       <type>5</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-heap_4.c</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1393853791165</id>\r
+                       <name>Source/FreeRTOS_Source/portable/Renesas</name>\r
+                       <type>9</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-RX600v2</arguments>\r
+                       </matcher>\r
+               </filter>\r
+       </filteredResources>\r
+       <variableList>\r
+               <variable>\r
+                       <name>FREERTOS_ROOT</name>\r
+                       <value>$%7BPARENT-3-PROJECT_LOC%7D</value>\r
+               </variable>\r
+       </variableList>\r
+</projectDescription>\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.settings/CodeGenerator/cgprojectDatas.datas b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.settings/CodeGenerator/cgprojectDatas.datas
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.settings/Project_Generation_Prefrences.prefs b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/.settings/Project_Generation_Prefrences.prefs
new file mode 100644 (file)
index 0000000..aa47bfa
--- /dev/null
@@ -0,0 +1,71 @@
+com.renesas.cdt.renesas.Assembler.option.userDefine=-nologo;;;\r
+com.renesas.cdt.renesas.Compiler.option.C=com.renesas.cdt.renesas.Compiler.option.C89\r
+com.renesas.cdt.renesas.Compiler.option.UserDef=-nologo;-change_message\=warning;\r
+com.renesas.cdt.renesas.Compiler.option.defines=__RX;\r
+com.renesas.cdt.renesas.Compiler.option.incFileDirectories="${TCINSTALL}\\include";\r
+com.renesas.cdt.renesas.Linker.option.rom=D\=R;D_1\=R_1;D_2\=R_2;\r
+com.renesas.cdt.renesas.Linker.option.typeOfOutputFileOption=Stype via absolute\r
+com.renesas.cdt.renesas.StandardLibrary.option.complexC99=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.ctypec89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.fenvC99=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.inttypesC99=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.libConfiguration=C(C89)\r
+com.renesas.cdt.renesas.StandardLibrary.option.mathc89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.mathfc89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.mode=com.renesas.cdt.renesas.StandardLibrary.option.buildOnlyWhenOptionsChanged\r
+com.renesas.cdt.renesas.StandardLibrary.option.runtime=true\r
+com.renesas.cdt.renesas.StandardLibrary.option.rxccomplexCPP=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.rxciosCPP=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.rxcnewCPP=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.rxcstringCPP=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.stdargc89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.stdioc89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.stdlibc89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.stringc89=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.wcharC99=false\r
+com.renesas.cdt.renesas.StandardLibrary.option.wctypeC99=false\r
+com.renesas.cdt.rxc.HardwareDebug.Assembler.option.endian=Little-endian data\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.RAM=None\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.ROM=None\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.address=00000000\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.addressRegister=None\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.allocLowerBit=Lower bit\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.cpuType=RX600\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.denormalized=false\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.endian=Little-endian data\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.enumSize=false\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.packStructures=false\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.patchCode=None\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.precisionDouble=Single precision\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.registerFastInterrupt=None\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.replaceFromIntWithShort=false\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.roundTo=Nearest\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.signBitField=unsigned\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.signChar=unsigned\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.useDynamic=false\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.useTry=false\r
+com.renesas.cdt.rxc.HardwareDebug.Compiler.option.widthDivergence=24 bit\r
+com.renesas.cdt.rxc.HardwareDebug.StandardLibrary.option.endian=Little-endian data\r
+com.renesas.cdt.rxc.Release.Assembler.option.endian=Little-endian data\r
+com.renesas.cdt.rxc.Release.Compiler.option.RAM=None\r
+com.renesas.cdt.rxc.Release.Compiler.option.ROM=None\r
+com.renesas.cdt.rxc.Release.Compiler.option.address=00000000\r
+com.renesas.cdt.rxc.Release.Compiler.option.addressRegister=None\r
+com.renesas.cdt.rxc.Release.Compiler.option.allocLowerBit=Lower bit\r
+com.renesas.cdt.rxc.Release.Compiler.option.cpuType=RX600\r
+com.renesas.cdt.rxc.Release.Compiler.option.denormalized=false\r
+com.renesas.cdt.rxc.Release.Compiler.option.endian=Little-endian data\r
+com.renesas.cdt.rxc.Release.Compiler.option.enumSize=false\r
+com.renesas.cdt.rxc.Release.Compiler.option.packStructures=false\r
+com.renesas.cdt.rxc.Release.Compiler.option.patchCode=None\r
+com.renesas.cdt.rxc.Release.Compiler.option.precisionDouble=Single precision\r
+com.renesas.cdt.rxc.Release.Compiler.option.registerFastInterrupt=None\r
+com.renesas.cdt.rxc.Release.Compiler.option.replaceFromIntWithShort=false\r
+com.renesas.cdt.rxc.Release.Compiler.option.roundTo=Nearest\r
+com.renesas.cdt.rxc.Release.Compiler.option.signBitField=unsigned\r
+com.renesas.cdt.rxc.Release.Compiler.option.signChar=unsigned\r
+com.renesas.cdt.rxc.Release.Compiler.option.useDynamic=false\r
+com.renesas.cdt.rxc.Release.Compiler.option.useTry=false\r
+com.renesas.cdt.rxc.Release.Compiler.option.widthDivergence=24 bit\r
+com.renesas.cdt.rxc.Release.StandardLibrary.option.endian=Little-endian data\r
+eclipse.preferences.version=1\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/RTOSDemo HardwareDebug.launch b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/RTOSDemo HardwareDebug.launch
new file mode 100644 (file)
index 0000000..aa932db
--- /dev/null
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<launchConfiguration type="com.renesas.cdt.launch.dsf.gdbremote.launchConfigurationType">\r
+<intAttribute key="com.renesas.cdt.core.admPortNumber" value="61236"/>\r
+<stringAttribute key="com.renesas.cdt.core.initCommands" value=""/>\r
+<stringAttribute key="com.renesas.cdt.core.ipAddress" value="localhost"/>\r
+<stringAttribute key="com.renesas.cdt.core.jtagDevice" value="E1"/>\r
+<stringAttribute key="com.renesas.cdt.core.jtagDeviceId" value="com.renesas.hardwaredebug.rx.e1"/>\r
+<booleanAttribute key="com.renesas.cdt.core.loadImage" value="true"/>\r
+<stringAttribute key="com.renesas.cdt.core.optionInitCommands" value=""/>\r
+<intAttribute key="com.renesas.cdt.core.portNumber" value="61234"/>\r
+<stringAttribute key="com.renesas.cdt.core.runCommands" value=""/>\r
+<stringAttribute key="com.renesas.cdt.core.serverParam" value="-g E1  -l 0 -t R5F564ML  -p 61234 -d 61236 -uClockSrcHoco= 0 -uInputClock= 12.0000 -uAllowClockSourceInternal= 1 -uUseFine= 0 -uJTagClockFreq= 16.5 -w 0 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -b -n 0 -uWorkRamAddress= 1000 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0"/>\r
+<booleanAttribute key="com.renesas.cdt.core.setResume" value="true"/>\r
+<booleanAttribute key="com.renesas.cdt.core.setStopAt" value="true"/>\r
+<booleanAttribute key="com.renesas.cdt.core.startServer" value="true"/>\r
+<stringAttribute key="com.renesas.cdt.core.stopAt" value="main"/>\r
+<stringAttribute key="com.renesas.cdt.core.targetDevice" value="R5F564ML"/>\r
+<booleanAttribute key="com.renesas.cdt.core.useRemoteTarget" value="true"/>\r
+<booleanAttribute key="com.renesas.cdt.core.verboseMode" value="false"/>\r
+<stringAttribute key="com.renesas.cdt.debug.realtimemanager.memory.mruRanges" value=""/>\r
+<stringAttribute key="com.renesas.cdt.launch.dsf.IO_MAP" value="${eclipse_home}..\internal\IoFiles\RX\RX64M.sfrx"/>\r
+<booleanAttribute key="com.renesas.cdt.launch.dsf.USE_DEFAULT_IO_MAP" value="true"/>\r
+<stringAttribute key="com.renesas.cdt.launch.dsf.launchSeqType" value="com.renesas.cdt.launch.dsf.launchSequence.e2GdbServer"/>\r
+<stringAttribute key="com.renesas.cdt.launch.dsf.serverPath" value="${eclipse_home}../DebugComp/e2-server-gdb.exe"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.clock.source.internal" value="true"/>\r
+<intAttribute key="com.renesas.hardwaredebug.e1.clock_source" value="0"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.connection.mode" value="0"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.e1_pwr" value="false"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.enable_external_flash" value="false"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.execute.program" value="false"/>\r
+<listAttribute key="com.renesas.hardwaredebug.e1.ext_flash_definitions"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.ext_flash_registers" value="2.1,0,"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.external_memory" value=""/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.fine.baud.rate" value="2.00"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.flash_overwrite_blocks" value=""/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.hook_Stop_func" value="0x0"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_Stop" value="false"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_start" value="false"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.hook_start_func" value="0x0"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.hw_break" value="true"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.inputclock" value="12.0000"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.clock.freq" value="16.5"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.or.fine" value="0"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.le" value="true"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.mode" value="0"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.mode_pin" value="0"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_dflash" value="false"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_irom" value="false"/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.serial_number" value=""/>\r
+<stringAttribute key="com.renesas.hardwaredebug.e1.supply.voltage" value="3.3V"/>\r
+<intAttribute key="com.renesas.hardwaredebug.e1.work_ram_start" value="4096"/>\r
+<booleanAttribute key="com.renesas.hardwaredebug.e20.le" value="true"/>\r
+<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.delay" value="3"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="false"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="false"/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>\r
+<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${eclipse_home}../DebugComp/rx-elf-gdb --rx-force-64bit-double -rx-force-v2"/>\r
+<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="true"/>\r
+<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>\r
+<booleanAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN" value="true"/>\r
+<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN_SYMBOL" value="main"/>\r
+<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="HardwareDebug\RX64MStartUp.x"/>\r
+<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="RX64MStartUp"/>\r
+<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>\r
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">\r
+<listEntry value="/RX64MStartUp"/>\r
+</listAttribute>\r
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">\r
+<listEntry value="4"/>\r
+</listAttribute>\r
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>\r
+<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;/&gt;&#13;&#10;"/>\r
+<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>\r
+</launchConfiguration>\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/FreeRTOSConfig.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/FreeRTOSConfig.h
new file mode 100644 (file)
index 0000000..b370b3d
--- /dev/null
@@ -0,0 +1,176 @@
+/*\r
+    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+    All rights reserved\r
+\r
+    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    FreeRTOS provides completely free yet professionally developed,    *\r
+     *    robust, strictly quality controlled, supported, and cross          *\r
+     *    platform software that has become a de facto standard.             *\r
+     *                                                                       *\r
+     *    Help yourself get started quickly and support the FreeRTOS         *\r
+     *    project by purchasing a FreeRTOS tutorial book, reference          *\r
+     *    manual, or both from: http://www.FreeRTOS.org/Documentation        *\r
+     *                                                                       *\r
+     *    Thank you!                                                         *\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
+\r
+    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
+    >>! a combined work that includes FreeRTOS without being obliged to provide\r
+    >>! the source code for proprietary components outside of the FreeRTOS\r
+    >>! kernel.\r
+\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
+    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
+    FOR A PARTICULAR PURPOSE.  Full license text is available from the following\r
+    link: http://www.freertos.org/a00114.html\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    Having a problem?  Start by reading the FAQ "My application does   *\r
+     *    not run, what could be wrong?"                                     *\r
+     *                                                                       *\r
+     *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
+     *                                                                       *\r
+    ***************************************************************************\r
+\r
+    http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
+    license and Real Time Engineers Ltd. contact details.\r
+\r
+    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
+    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
+    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
+\r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
+    licenses offer ticketed support, indemnification and middleware.\r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
+    mission critical applications that require provable dependability.\r
+\r
+    1 tab == 4 spaces!\r
+*/\r
+\r
+#ifndef FREERTOS_CONFIG_H\r
+#define FREERTOS_CONFIG_H\r
+\r
+/* Prevent Renesas headers redefining some stdint.h types. */\r
+#define __TYPEDEF__    1\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                            1\r
+#define configUSE_TICK_HOOK                            0\r
+#define configCPU_CLOCK_HZ                             ( 120000000UL ) /*_RB_ guess*/\r
+#define configPERIPHERAL_CLOCK_HZ              ( 60000000UL ) /*_RB_ guess*/\r
+#define configTICK_RATE_HZ                             ( ( TickType_t ) 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                   ( 7 )\r
+#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
+\r
+/* Software timer definitions. */\r
+#define configUSE_TIMERS                               1\r
+#define configTIMER_TASK_PRIORITY              ( 3 )\r
+#define configTIMER_QUEUE_LENGTH               5\r
+#define configTIMER_TASK_STACK_DEPTH   ( configMINIMAL_STACK_SIZE )\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
+#define INCLUDE_eTaskGetState                          1\r
+\r
+void vAssertCalled( void );\r
+#define configASSERT( x ) if( ( x ) == 0 ) vAssertCalled()\r
+\r
+/* Override some of the priorities set in the common demo tasks.  This is\r
+required to ensure flase positive timing errors are not reported. */\r
+#define bktPRIMARY_PRIORITY            ( configMAX_PRIORITIES - 3 )\r
+#define bktSECONDARY_PRIORITY  ( configMAX_PRIORITIES - 4 )\r
+#define intqHIGHER_PRIORITY            ( configMAX_PRIORITIES - 3 )\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         200\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
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/ParTest.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/ParTest.c
new file mode 100644 (file)
index 0000000..80d5cb0
--- /dev/null
@@ -0,0 +1,198 @@
+/*\r
+    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+    All rights reserved\r
+\r
+    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    FreeRTOS provides completely free yet professionally developed,    *\r
+     *    robust, strictly quality controlled, supported, and cross          *\r
+     *    platform software that has become a de facto standard.             *\r
+     *                                                                       *\r
+     *    Help yourself get started quickly and support the FreeRTOS         *\r
+     *    project by purchasing a FreeRTOS tutorial book, reference          *\r
+     *    manual, or both from: http://www.FreeRTOS.org/Documentation        *\r
+     *                                                                       *\r
+     *    Thank you!                                                         *\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
+\r
+    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
+    >>! a combined work that includes FreeRTOS without being obliged to provide\r
+    >>! the source code for proprietary components outside of the FreeRTOS\r
+    >>! kernel.\r
+\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
+    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
+    FOR A PARTICULAR PURPOSE.  Full license text is available from the following\r
+    link: http://www.freertos.org/a00114.html\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    Having a problem?  Start by reading the FAQ "My application does   *\r
+     *    not run, what could be wrong?"                                     *\r
+     *                                                                       *\r
+     *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
+     *                                                                       *\r
+    ***************************************************************************\r
+\r
+    http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
+    license and Real Time Engineers Ltd. contact details.\r
+\r
+    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
+    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
+    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
+\r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
+    licenses offer ticketed support, indemnification and middleware.\r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
+    mission critical applications that require provable dependability.\r
+\r
+    1 tab == 4 spaces!\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 ( 4 )\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
+/*-----------------------------------------------------------*/\r
+\r
+void vParTestSetLED( unsigned long ulLED, signed long xValue )\r
+{\r
+#if 0\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
+                               }\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
+                               }\r
+\r
+                       }\r
+                       taskEXIT_CRITICAL();\r
+               }\r
+       }\r
+#endif\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vParTestToggleLED( unsigned long ulLED )\r
+{\r
+#if 0\r
+       if( ulLED < partestNUM_LEDS )\r
+       {\r
+               taskENTER_CRITICAL();\r
+               {\r
+                       if( lParTestGetLEDState( ulLED ) != 0x00 )\r
+                       {\r
+                               vParTestSetLED( ulLED, 0 );\r
+                       }\r
+                       else\r
+                       {\r
+                               vParTestSetLED( ulLED, 1 );\r
+                       }\r
+               }\r
+               taskEXIT_CRITICAL();\r
+       }\r
+#endif\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+long lParTestGetLEDState( unsigned long ulLED )\r
+{\r
+long lReturn = pdTRUE;\r
+#if 0\r
+       if( ulLED < partestNUM_LEDS )\r
+       {\r
+               switch( ulLED )\r
+               {\r
+                       case 0  :       if( LED0 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdFALSE;\r
+                                               }\r
+                                               break;\r
+                       case 1  :       if( LED1 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdFALSE;\r
+                                               }\r
+                                               break;\r
+                       case 2  :       if( LED2 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdFALSE;\r
+                                               }\r
+                                               break;\r
+                       case 3  :       if( LED3 != 0 )\r
+                                               {\r
+                                                       lReturn =  pdFALSE;\r
+                                               }\r
+                                               break;\r
+               }\r
+       }\r
+#endif\r
+       return lReturn;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc.c
new file mode 100644 (file)
index 0000000..b580867
--- /dev/null
@@ -0,0 +1,108 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_cgc.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements device driver for CGC module.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include "r_cg_cgc.h"\r
+/* Start user code for include. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+/* Start user code for global. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+* Function Name: R_CGC_Create\r
+* Description  : This function initializes the clock generator.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_CGC_Create(void)\r
+{\r
+    /* Set main clock control registers */\r
+    SYSTEM.MOFCR.BYTE = _00_CGC_MAINOSC_RESONATOR | _00_CGC_MAINOSC_UNDER24M;  \r
+    SYSTEM.MOSCWTCR.BYTE = _52_CGC_MOSCWTCR_VALUE;\r
+\r
+    /* Set main clock operation */\r
+    SYSTEM.MOSCCR.BIT.MOSTP = 0U;\r
+\r
+    /* Wait for main clock oscillator wait counter overflow */\r
+    while (1U != SYSTEM.OSCOVFSR.BIT.MOOVF);\r
+\r
+    /* Set system clock */\r
+    SYSTEM.SCKCR.LONG = _00000001_CGC_PCLKD_DIV_2 | _00000010_CGC_PCLKC_DIV_2 | _00000100_CGC_PCLKB_DIV_2 | \r
+                        _00001000_CGC_PCLKA_DIV_2 | _00010000_CGC_BCLK_DIV_2 | _01000000_CGC_ICLK_DIV_2 | \r
+                        _10000000_CGC_FCLK_DIV_2;\r
+\r
+    /* Set PLL circuit */\r
+    SYSTEM.PLLCR2.BIT.PLLEN = 0U;\r
+    SYSTEM.PLLCR.BIT.PLLSRCSEL = 0U;\r
+    SYSTEM.PLLCR.WORD = _0001_CGC_PLL_FREQ_DIV_2 | _1300_CGC_PLL_FREQ_MUL_10_0;\r
+\r
+    /* Wait for PLL wait counter overflow */\r
+    while (1U != SYSTEM.OSCOVFSR.BIT.PLOVF);\r
+\r
+\r
+    /* Disable sub-clock */\r
+    SYSTEM.SOSCCR.BIT.SOSTP = 1U;\r
+\r
+    /* Wait for the register modification to complete */\r
+    while (1U != SYSTEM.SOSCCR.BIT.SOSTP);\r
+\r
+    /* Set LOCO */\r
+    SYSTEM.LOCOCR.BIT.LCSTP = 0U;\r
+\r
+    /* Set UCLK */\r
+    SYSTEM.SCKCR2.WORD = _0020_CGC_UCLK_DIV_3;\r
+\r
+    /* Set SDCLK */\r
+    SYSTEM.SCKCR.BIT.PSTOP0 = 1U;\r
+\r
+    /* Set clock source */\r
+    SYSTEM.SCKCR3.WORD = _0400_CGC_CLOCKSOURCE_PLL;\r
+}\r
+\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc.h
new file mode 100644 (file)
index 0000000..5d925b0
--- /dev/null
@@ -0,0 +1,230 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_cgc.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements device driver for CGC module.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef CGC_H\r
+#define CGC_H\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+/*\r
+    System Clock Control Register (SCKCR)\r
+*/\r
+/* Peripheral Module Clock D (PCLKD) */\r
+#define _00000000_CGC_PCLKD_DIV_1           (0x00000000UL) /* x1 */\r
+#define _00000001_CGC_PCLKD_DIV_2           (0x00000001UL) /* x1/2 */\r
+#define _00000002_CGC_PCLKD_DIV_4           (0x00000002UL) /* x1/4 */\r
+#define _00000003_CGC_PCLKD_DIV_8           (0x00000003UL) /* x1/8 */\r
+#define _00000004_CGC_PCLKD_DIV_16          (0x00000004UL) /* x1/16 */\r
+#define _00000005_CGC_PCLKD_DIV_32          (0x00000005UL) /* x1/32 */\r
+#define _00000006_CGC_PCLKD_DIV_64          (0x00000006UL) /* x1/64 */\r
+/* Peripheral Module Clock C (PCLKC) */\r
+#define _00000000_CGC_PCLKC_DIV_1           (0x00000000UL) /* x1 */\r
+#define _00000010_CGC_PCLKC_DIV_2           (0x00000010UL) /* x1/2 */\r
+#define _00000020_CGC_PCLKC_DIV_4           (0x00000020UL) /* x1/4 */\r
+#define _00000030_CGC_PCLKC_DIV_8           (0x00000030UL) /* x1/8 */\r
+#define _00000040_CGC_PCLKC_DIV_16          (0x00000040UL) /* x1/16 */\r
+#define _00000050_CGC_PCLKC_DIV_32          (0x00000050UL) /* x1/32 */\r
+#define _00000060_CGC_PCLKC_DIV_64          (0x00000060UL) /* x1/64 */\r
+/* Peripheral Module Clock B (PCLKB) */\r
+#define _00000000_CGC_PCLKB_DIV_1           (0x00000000UL) /* x1 */\r
+#define _00000100_CGC_PCLKB_DIV_2           (0x00000100UL) /* x1/2 */\r
+#define _00000200_CGC_PCLKB_DIV_4           (0x00000200UL) /* x1/4 */\r
+#define _00000300_CGC_PCLKB_DIV_8           (0x00000300UL) /* x1/8 */\r
+#define _00000400_CGC_PCLKB_DIV_16          (0x00000400UL) /* x1/16 */\r
+#define _00000500_CGC_PCLKB_DIV_32          (0x00000500UL) /* x1/32 */\r
+#define _00000600_CGC_PCLKB_DIV_64          (0x00000600UL) /* x1/64 */\r
+/* Peripheral Module Clock A (PCLKA) */\r
+#define _00000000_CGC_PCLKA_DIV_1           (0x00000000UL) /* x1 */\r
+#define _00001000_CGC_PCLKA_DIV_2           (0x00001000UL) /* x1/2 */\r
+#define _00002000_CGC_PCLKA_DIV_4           (0x00002000UL) /* x1/4 */\r
+#define _00003000_CGC_PCLKA_DIV_8           (0x00003000UL) /* x1/8 */\r
+#define _00004000_CGC_PCLKA_DIV_16          (0x00004000UL) /* x1/16 */\r
+#define _00005000_CGC_PCLKA_DIV_32          (0x00005000UL) /* x1/32 */\r
+#define _00006000_CGC_PCLKA_DIV_64          (0x00006000UL) /* x1/64 */\r
+/* External Bus Clock (BCLK) */\r
+#define _00000000_CGC_BCLK_DIV_1            (0x00000000UL) /* x1 */\r
+#define _00010000_CGC_BCLK_DIV_2            (0x00010000UL) /* x1/2 */\r
+#define _00020000_CGC_BCLK_DIV_4            (0x00020000UL) /* x1/4 */\r
+#define _00030000_CGC_BCLK_DIV_8            (0x00030000UL) /* x1/8 */\r
+#define _00040000_CGC_BCLK_DIV_16           (0x00040000UL) /* x1/16 */\r
+#define _00050000_CGC_BCLK_DIV_32           (0x00050000UL) /* x1/32 */\r
+#define _00060000_CGC_BCLK_DIV_64           (0x00060000UL) /* x1/64 */\r
+/* System Clock (ICLK) */\r
+#define _00000000_CGC_ICLK_DIV_1            (0x00000000UL) /* x1 */\r
+#define _01000000_CGC_ICLK_DIV_2            (0x01000000UL) /* x1/2 */\r
+#define _02000000_CGC_ICLK_DIV_4            (0x02000000UL) /* x1/4 */\r
+#define _03000000_CGC_ICLK_DIV_8            (0x03000000UL) /* x1/8 */\r
+#define _04000000_CGC_ICLK_DIV_16           (0x04000000UL) /* x1/16 */\r
+#define _05000000_CGC_ICLK_DIV_32           (0x05000000UL) /* x1/32 */\r
+#define _06000000_CGC_ICLK_DIV_64           (0x06000000UL) /* x1/64 */\r
+/* System Clock (FCLK) */\r
+#define _00000000_CGC_FCLK_DIV_1            (0x00000000UL) /* x1 */\r
+#define _10000000_CGC_FCLK_DIV_2            (0x10000000UL) /* x1/2 */\r
+#define _20000000_CGC_FCLK_DIV_4            (0x20000000UL) /* x1/4 */\r
+#define _30000000_CGC_FCLK_DIV_8            (0x30000000UL) /* x1/8 */\r
+#define _40000000_CGC_FCLK_DIV_16           (0x40000000UL) /* x1/16 */\r
+#define _50000000_CGC_FCLK_DIV_32           (0x50000000UL) /* x1/32 */\r
+#define _60000000_CGC_FCLK_DIV_64           (0x60000000UL) /* x1/64 */\r
+\r
+/*\r
+    System Clock Control Register 2 (SCKCR2)\r
+*/\r
+#define _0010_CGC_UCLK_DIV_1                (0x0010U) /* x1/2 */\r
+#define _0020_CGC_UCLK_DIV_3                (0x0020U) /* x1/3 */\r
+#define _0030_CGC_UCLK_DIV_4                (0x0030U) /* x1/4 */\r
+#define _0040_CGC_UCLK_DIV_5                (0x0040U) /* x1/5 */\r
+\r
+/*\r
+    System Clock Control Register 3 (SCKCR3)\r
+*/\r
+#define _0000_CGC_CLOCKSOURCE_LOCO          (0x0000U) /* LOCO */\r
+#define _0100_CGC_CLOCKSOURCE_HOCO          (0x0100U) /* HOCO */\r
+#define _0200_CGC_CLOCKSOURCE_MAINCLK       (0x0200U) /* Main clock oscillator */\r
+#define _0300_CGC_CLOCKSOURCE_SUBCLK        (0x0300U) /* Sub-clock oscillator */\r
+#define _0400_CGC_CLOCKSOURCE_PLL           (0x0400U) /* PLL circuit */\r
+\r
+/*\r
+    PLL Control Register (PLLCR)\r
+*/\r
+/* PLL Input Frequency Division Ratio Select (PLIDIV[1:0]) */\r
+#define _0000_CGC_PLL_FREQ_DIV_1            (0x0000U) /* x1 */\r
+#define _0001_CGC_PLL_FREQ_DIV_2            (0x0001U) /* x1/2 */\r
+#define _0002_CGC_PLL_FREQ_DIV_3            (0x0002U) /* x1/3 */\r
+/* Frequency Multiplication Factor Select (STC[5:0]) */\r
+#define _1300_CGC_PLL_FREQ_MUL_10_0         (0x1300U) /* x10.0 */\r
+#define _1400_CGC_PLL_FREQ_MUL_10_5         (0x1400U) /* x10.5 */\r
+#define _1500_CGC_PLL_FREQ_MUL_11_0         (0x1500U) /* x11.0 */\r
+#define _1600_CGC_PLL_FREQ_MUL_11_5         (0x1600U) /* x11.5 */\r
+#define _1700_CGC_PLL_FREQ_MUL_12_0         (0x1700U) /* x12.0 */\r
+#define _1800_CGC_PLL_FREQ_MUL_12_5         (0x1800U) /* x12.5 */\r
+#define _1900_CGC_PLL_FREQ_MUL_13_0         (0x1900U) /* x13.0 */\r
+#define _1A00_CGC_PLL_FREQ_MUL_13_5         (0x1A00U) /* x13.5 */\r
+#define _1B00_CGC_PLL_FREQ_MUL_14_0         (0x1B00U) /* x14.0 */\r
+#define _1C00_CGC_PLL_FREQ_MUL_14_5         (0x1C00U) /* x14.5 */\r
+#define _1D00_CGC_PLL_FREQ_MUL_15_0         (0x1D00U) /* x15.0 */\r
+#define _1E00_CGC_PLL_FREQ_MUL_15_5         (0x1E00U) /* x15.5 */\r
+#define _1F00_CGC_PLL_FREQ_MUL_16_0         (0x1F00U) /* x16.0 */\r
+#define _2000_CGC_PLL_FREQ_MUL_16_5         (0x2000U) /* x16.5 */\r
+#define _2100_CGC_PLL_FREQ_MUL_17_0         (0x2100U) /* x17.0 */\r
+#define _2200_CGC_PLL_FREQ_MUL_17_5         (0x2200U) /* x17.5 */\r
+#define _2300_CGC_PLL_FREQ_MUL_18_0         (0x2300U) /* x18.0 */\r
+#define _2400_CGC_PLL_FREQ_MUL_18_5         (0x2400U) /* x18.5 */\r
+#define _2500_CGC_PLL_FREQ_MUL_19_0         (0x2500U) /* x19.0 */\r
+#define _2600_CGC_PLL_FREQ_MUL_19_5         (0x2600U) /* x19.5 */\r
+#define _2700_CGC_PLL_FREQ_MUL_20_0         (0x2700U) /* x20.0 */\r
+#define _2800_CGC_PLL_FREQ_MUL_20_5         (0x2800U) /* x20.5 */\r
+#define _2900_CGC_PLL_FREQ_MUL_21_0         (0x2900U) /* x21.0 */\r
+#define _2A00_CGC_PLL_FREQ_MUL_21_5         (0x2A00U) /* x21.5 */\r
+#define _2B00_CGC_PLL_FREQ_MUL_22_0         (0x2B00U) /* x22.0 */\r
+#define _2C00_CGC_PLL_FREQ_MUL_22_5         (0x2C00U) /* x22.5 */\r
+#define _2D00_CGC_PLL_FREQ_MUL_23_0         (0x2D00U) /* x23.0 */\r
+#define _2E00_CGC_PLL_FREQ_MUL_23_5         (0x2E00U) /* x23.5 */\r
+#define _2F00_CGC_PLL_FREQ_MUL_24_0         (0x2F00U) /* x24.0 */\r
+#define _3000_CGC_PLL_FREQ_MUL_24_5         (0x3000U) /* x24.5 */\r
+#define _3100_CGC_PLL_FREQ_MUL_25_0         (0x3100U) /* x25.0 */\r
+#define _3200_CGC_PLL_FREQ_MUL_25_5         (0x3200U) /* x25.5 */\r
+#define _3300_CGC_PLL_FREQ_MUL_26_0         (0x3300U) /* x26.0 */\r
+#define _3400_CGC_PLL_FREQ_MUL_26_5         (0x3400U) /* x26.5 */\r
+#define _3500_CGC_PLL_FREQ_MUL_27_0         (0x3500U) /* x27.0 */\r
+#define _3600_CGC_PLL_FREQ_MUL_27_5         (0x3600U) /* x27.5 */\r
+#define _3700_CGC_PLL_FREQ_MUL_28_0         (0x3700U) /* x28.0 */\r
+#define _3800_CGC_PLL_FREQ_MUL_28_5         (0x3800U) /* x28.5 */\r
+#define _3900_CGC_PLL_FREQ_MUL_29_0         (0x3900U) /* x29.0 */\r
+#define _3A00_CGC_PLL_FREQ_MUL_29_5         (0x3A00U) /* x29.5 */\r
+#define _3B00_CGC_PLL_FREQ_MUL_30_0         (0x3B00U) /* x30.0 */\r
+\r
+/*\r
+    Oscillation Stop Detection Control Register (OSTDCR)\r
+*/\r
+/* Oscillation Stop Detection Interrupt Enable (OSTDIE) */\r
+#define _00_CGC_OSC_STOP_INT_DISABLE        (0x00U) /* The oscillation stop detection interrupt is disabled */\r
+#define _01_CGC_OSC_STOP_INT_ENABLE         (0x01U) /* The oscillation stop detection interrupt is enabled */\r
+/* Oscillation Stop Detection Function Enable (OSTDE) */\r
+#define _00_CGC_OSC_STOP_DISABLE            (0x00U) /* Oscillation stop detection function is disabled */\r
+#define _80_CGC_OSC_STOP_ENABLE             (0x80U) /* Oscillation stop detection function is enabled */\r
+\r
+/*\r
+    High-Speed On-Chip Oscillator Control Register 2 (HOCOCR2)\r
+*/\r
+/* HOCO Frequency Setting (HCFRQ[1:0]) */\r
+#define _00_CGC_HOCO_CLK_16                 (0x00U) /* 16 MHz */\r
+#define _01_CGC_HOCO_CLK_18                 (0x01U) /* 18 MHz */\r
+#define _02_CGC_HOCO_CLK_20                 (0x02U) /* 20 MHz */\r
+\r
+/*\r
+    Clock Output Control Register (CKOCR)\r
+*/\r
+/* Clock Output Source Select (CKOSEL[2:0]) */\r
+#define _0000_CGC_CLKOUT_LOCO               (0x0000U) /* LOCO */\r
+#define _0100_CGC_CLKOUT_HOCO               (0x0100U) /* HOCO */\r
+#define _0200_CGC_CLKOUT_MAINCLK            (0x0200U) /* Main clock oscillator */\r
+#define _0300_CGC_CLKOUT_SUBCLK             (0x0300U) /* Sub-clock oscillator */\r
+/* Clock Output Division Ratio Select (CKODIV[2:0]) */\r
+#define _0000_CGC_CLKOUT_DIV_1              (0x0000U) /* x1 */\r
+#define _1000_CGC_CLKOUT_DIV_2              (0x1000U) /* x1/2 */\r
+#define _2000_CGC_CLKOUT_DIV_4              (0x2000U) /* x1/4 */\r
+#define _3000_CGC_CLKOUT_DIV_8              (0x3000U) /* x1/8 */\r
+#define _4000_CGC_CLKOUT_DIV_16             (0x4000U) /* x1/16 */\r
+/* Clock Output Control (CKOSTP) */\r
+#define _0000_CGC_CLKOUT_ENABLE             (0x0000U) /* CLKOUT pin output is operating */\r
+#define _8000_CGC_CLKOUT_DISABLE            (0x8000U) /* CLKOUT pin output is stopped (fixed at low level) */\r
+\r
+/*\r
+    Main Clock Oscillator Forced Oscillation Control Register (MOFCR)\r
+*/\r
+/* Main Oscillator Drive Capability 2 Switching (MODRV2[1:0]) */\r
+#define _00_CGC_MAINOSC_UNDER24M            (0x00U) /* 20.1 to 24 MHz */\r
+#define _10_CGC_MAINOSC_UNDER20M            (0x10U) /* 16.1 to 20 MHz */\r
+#define _20_CGC_MAINOSC_UNDER16M            (0x20U) /* 8.1 to 16 MHz */\r
+#define _30_CGC_MAINOSC_EQUATE8M            (0x30U) /* 8 MHz */\r
+/* Main Clock Oscillator Switch (MOSEL) */\r
+#define _00_CGC_MAINOSC_RESONATOR           (0x00U) /* Resonator */\r
+#define _40_CGC_MAINOSC_EXTERNAL            (0x40U) /* External oscillator input */\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+#define _52_CGC_MOSCWTCR_VALUE               (0x52U) /* Main Clock Oscillator Wait Time */\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+void R_CGC_Create(void);\r
+\r
+/* Start user code for function. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc_user.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cgc_user.c
new file mode 100644 (file)
index 0000000..678edd1
--- /dev/null
@@ -0,0 +1,57 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_cgc_user.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements device driver for CGC module.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include "r_cg_cgc.h"\r
+/* Start user code for include. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+/* Start user code for global. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cmt.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cmt.c
new file mode 100644 (file)
index 0000000..69cbee7
--- /dev/null
@@ -0,0 +1,106 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_cmt.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements device driver for CMT module.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include "r_cg_cmt.h"\r
+/* Start user code for include. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+/* Start user code for global. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+* Function Name: R_CMT0_Create\r
+* Description  : This function initializes the CMT0 channel.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_CMT0_Create(void)\r
+{\r
+    /* Disable CMI interrupt */\r
+    IEN(CMT0, CMI0) = 0U;\r
+\r
+    /* Cancel CMT stop state in LPC */\r
+    MSTP(CMT0) = 0U;\r
+\r
+    /* Set control registers */\r
+    CMT0.CMCR.WORD = _0002_CMT_CMCR_CKS_PCLK128 | _0040_CMT_CMCR_CMIE_ENABLE;\r
+    CMT0.CMCOR = _B71B_CMT0_CMCOR_VALUE;\r
+\r
+    /* Set CMI0 priority level */\r
+    IPR(CMT0,CMI0) = _08_CMT_PRIORITY_LEVEL8;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: R_CMT0_Start\r
+* Description  : This function starts the CMT0 channel counter.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_CMT0_Start(void)\r
+{\r
+    /* Enable CMI0 interrupt in ICU */\r
+    IEN(CMT0,CMI0) = 1U;\r
+\r
+    /* Start CMT0 count */\r
+    CMT.CMSTR0.BIT.STR0 = 1U;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: R_CMT0_Stop\r
+* Description  : This function stops the CMT0 channel counter.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_CMT0_Stop(void)\r
+{\r
+    /* Disable CMI0 interrupt in ICU */\r
+    IEN(CMT0,CMI0) = 0U;\r
+\r
+    /* Stop CMT0 count */\r
+    CMT.CMSTR0.BIT.STR0 = 0U;\r
+}\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cmt.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_cmt.h
new file mode 100644 (file)
index 0000000..945b268
--- /dev/null
@@ -0,0 +1,91 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_cmt.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements device driver for CMT module.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef CMT_H\r
+#define CMT_H\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+/*\r
+    Compare Match Timer Control Register (CMCR)\r
+*/\r
+/* Clock Select (CKS[1:0]) */\r
+#define _0000_CMT_CMCR_CKS_PCLK8                (0x0000U) /* PCLK/8 */\r
+#define _0001_CMT_CMCR_CKS_PCLK32               (0x0001U) /* PCLK/32 */\r
+#define _0002_CMT_CMCR_CKS_PCLK128              (0x0002U) /* PCLK/128 */\r
+#define _0003_CMT_CMCR_CKS_PCLK512              (0x0003U) /* PCLK/512 */\r
+/* Compare Match Interrupt Enable (CMIE) */\r
+#define _0000_CMT_CMCR_CMIE_DISABLE             (0x0000U) /* Compare match interrupt (CMIn) disabled */\r
+#define _0040_CMT_CMCR_CMIE_ENABLE              (0x0040U) /* Compare match interrupt (CMIn) enabled */\r
+\r
+/*\r
+    Interrupt Source Priority Register n (IPRn)\r
+*/\r
+/* Interrupt Priority Level Select (IPR[3:0]) */\r
+#define _00_CMT_PRIORITY_LEVEL0                 (0x00U) /* Level 0 (interrupt disabled) */\r
+#define _01_CMT_PRIORITY_LEVEL1                 (0x01U) /* Level 1 */\r
+#define _02_CMT_PRIORITY_LEVEL2                 (0x02U) /* Level 2 */\r
+#define _03_CMT_PRIORITY_LEVEL3                 (0x03U) /* Level 3 */\r
+#define _04_CMT_PRIORITY_LEVEL4                 (0x04U) /* Level 4 */\r
+#define _05_CMT_PRIORITY_LEVEL5                 (0x05U) /* Level 5 */\r
+#define _06_CMT_PRIORITY_LEVEL6                 (0x06U) /* Level 6 */\r
+#define _07_CMT_PRIORITY_LEVEL7                 (0x07U) /* Level 7 */\r
+#define _08_CMT_PRIORITY_LEVEL8                 (0x08U) /* Level 8 */\r
+#define _09_CMT_PRIORITY_LEVEL9                 (0x09U) /* Level 9 */\r
+#define _0A_CMT_PRIORITY_LEVEL10                (0x0AU) /* Level 10 */\r
+#define _0B_CMT_PRIORITY_LEVEL11                (0x0BU) /* Level 11 */\r
+#define _0C_CMT_PRIORITY_LEVEL12                (0x0CU) /* Level 12 */\r
+#define _0D_CMT_PRIORITY_LEVEL13                (0x0DU) /* Level 13 */\r
+#define _0E_CMT_PRIORITY_LEVEL14                (0x0EU) /* Level 14 */\r
+#define _0F_CMT_PRIORITY_LEVEL15                (0x0FU) /* Level 15 (highest) */\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+/* Compare Match Timer Constant Register (CMCOR) */\r
+#define _B71B_CMT0_CMCOR_VALUE                  (0xB71BU)\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+void R_CMT0_Create(void);\r
+void R_CMT0_Start(void);\r
+void R_CMT0_Stop(void);\r
+\r
+/* Start user code for function. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_dbsct.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_dbsct.c
new file mode 100644 (file)
index 0000000..b434d79
--- /dev/null
@@ -0,0 +1,89 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_dbsct.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : Setting of B.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+\r
+#pragma unpack\r
+\r
+#pragma section C C$DSEC\r
+extern const struct {\r
+    uint8_t *rom_s;       /* Start address of the initialized data section in ROM */\r
+    uint8_t *rom_e;       /* End address of the initialized data section in ROM   */\r
+    uint8_t *ram_s;       /* Start address of the initialized data section in RAM */\r
+}   _DTBL[] = {\r
+    { __sectop("D"), __secend("D"), __sectop("R") },\r
+    { __sectop("D_2"), __secend("D_2"), __sectop("R_2") },\r
+    { __sectop("D_1"), __secend("D_1"), __sectop("R_1") }\r
+};\r
+#pragma section C C$BSEC\r
+extern const struct {\r
+    uint8_t *b_s;         /* Start address of non-initialized data section */\r
+    uint8_t *b_e;         /* End address of non-initialized data section */\r
+}   _BTBL[] = {\r
+    { __sectop("B"), __secend("B") },\r
+    { __sectop("B_2"), __secend("B_2") },\r
+    { __sectop("B_1"), __secend("B_1") }\r
+};\r
+\r
+#pragma section\r
+\r
+/*\r
+** CTBL prevents excessive output of L1100 messages when linking.\r
+** Even if CTBL is deleted, the operation of the program does not change.\r
+*/\r
+uint8_t * const _CTBL[] = {\r
+    __sectop("C_1"), __sectop("C_2"), __sectop("C"),\r
+    __sectop("W_1"), __sectop("W_2"), __sectop("W"),\r
+    __sectop("L"), __sectop("SU"),\r
+    __sectop("C$DSEC"), __sectop("C$BSEC"),\r
+    __sectop("C$INIT"), __sectop("C$VTBL"), __sectop("C$VECT")\r
+};\r
+\r
+#pragma packoption\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_hardware_setup.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_hardware_setup.c
new file mode 100644 (file)
index 0000000..427d83a
--- /dev/null
@@ -0,0 +1,93 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_hardware_setup.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements system initializing function.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include "r_cg_cgc.h"\r
+#include "r_cg_cmt.h"\r
+/* Start user code for include. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+/* Start user code for global. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+* Function Name: R_Systeminit\r
+* Description  : This function initializes every macro.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_Systeminit(void)\r
+{\r
+    /* Enable writing to registers related to operating modes, LPC, CGC and software reset */\r
+    SYSTEM.PRCR.WORD = 0xA50BU; \r
+\r
+    /* Enable writing to MPC pin function control registers */\r
+    MPC.PWPR.BIT.B0WI = 0U;\r
+    MPC.PWPR.BIT.PFSWE = 1U;\r
+\r
+    /* Set peripheral settings */\r
+    R_CGC_Create();\r
+\r
+    /* Disable writing to MPC pin function control registers */\r
+    MPC.PWPR.BIT.PFSWE = 0U;    \r
+    MPC.PWPR.BIT.B0WI = 1U;     \r
+\r
+    /* Enable protection */\r
+    SYSTEM.PRCR.WORD = 0xA500U;  \r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: HardwareSetup\r
+* Description  : This function initializes hardware setting.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void HardwareSetup(void)\r
+{\r
+    R_Systeminit();\r
+}\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_intprg.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_intprg.c
new file mode 100644 (file)
index 0000000..ea96262
--- /dev/null
@@ -0,0 +1,111 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_intprg.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : Setting of B.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include <machine.h>\r
+#include "r_cg_vect.h"\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+\r
+#pragma section IntPRG\r
+\r
+/* Undefined exceptions for supervisor instruction, undefined instruction and floating point exceptions */\r
+void r_undefined_exception(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* Reserved */\r
+void r_reserved_exception(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* NMI */\r
+void r_nmi_exception(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* ICU GROUPBE0 */\r
+void r_icua_group_be0_interrupt(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* ICU GROUPBL0 */\r
+void r_icua_group_bl0_interrupt(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* ICU GROUPBL1 */\r
+void r_icua_group_bl1_interrupt(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* ICU GROUPAL0 */\r
+void r_icua_group_al0_interrupt(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* ICU GROUPAL1 */\r
+void r_icua_group_al1_interrupt(void)\r
+{\r
+    /* Start user code. Do not edit comment generated here */\r
+    /* End user code. Do not edit comment generated here */\r
+}\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_iodefine.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_iodefine.h
new file mode 100644 (file)
index 0000000..3d7ede8
--- /dev/null
@@ -0,0 +1,18605 @@
+/********************************************************************************\r
+*\r
+* Device     : RX/RX600/RX64M\r
+*\r
+* File Name  : iodefine.h\r
+*\r
+* Abstract   : Definition of I/O Register\r
+*\r
+* History    : 0.20 (2013-05-30)  [Hardware Manual Revision : 0.40]\r
+*\r
+* Note       : This is a typical example.\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation and\r
+* Renesas Solutions Corp. All rights reserved.\r
+*\r
+*********************************************************************************/\r
+/*                                                                              */\r
+/*  DESCRIPTION : Definition of ICU Register                                    */\r
+/*  CPU TYPE    : RX64M                                                         */\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
+/*     for example :                                                            */\r
+/*       IR(BSC,BUSERR) = 0;     expands to :                                   */\r
+/*         ICU.IR[16].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
+/*  Usage : #pragma interrupt Function_Identifier(vect=**)                      */\r
+/*     The number of vector is "(interrupt source, name)".                      */\r
+/*     for example :                                                            */\r
+/*       #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0))          expands to :  */\r
+/*         #pragma interrupt INT_IRQ0(vect=64)                                  */\r
+/*       #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0))    expands to :  */\r
+/*         #pragma interrupt INT_CMT0_CMI0(vect=28)                             */\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
+/*     for example :                                                            */\r
+/*       MSTP(TMR2) = 0;    // TMR2,TMR3                          expands to :  */\r
+/*         SYSTEM.MSTPCRA.BIT.MSTPA4  = 0;                                      */\r
+/*       MSTP(SCI0) = 0;    // SCI0,SMCI0                         expands to :  */\r
+/*         SYSTEM.MSTPCRB.BIT.MSTPB31 = 0;                                      */\r
+/*       MSTP(TPU4) = 0;    // TPU0,TPU1,TPU2,TPU3,TPU4,TPU5      expands to :  */\r
+/*         SYSTEM.MSTPCRA.BIT.MSTPA13 = 0;                                      */\r
+/*       MSTP(CMT3) = 0;    // CMT2,CMT3                          expands to :  */\r
+/*         SYSTEM.MSTPCRA.BIT.MSTPA14 = 0;                                      */\r
+/*                                                                              */\r
+/*                                                                              */\r
+/********************************************************************************/\r
+#ifndef __RX64MIODEFINE_HEADER__\r
+#define __RX64MIODEFINE_HEADER__\r
+#pragma bit_order left\r
+#pragma unpack\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
+       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
+       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
+       char           wk2[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ADDR:13;\r
+               } BIT;\r
+       } BERSR2;\r
+       char           wk3[4];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short BPEB:2;\r
+                       unsigned short BPFB:2;\r
+                       unsigned short BPHB:2;\r
+                       unsigned short BPGB:2;\r
+                       unsigned short BPIB:2;\r
+                       unsigned short BPRO:2;\r
+                       unsigned short BPRA:2;\r
+               } BIT;\r
+       } BUSPRI;\r
+       char           wk4[7408];\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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       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
+       } 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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       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
+       } 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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       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
+       } 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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       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
+       } 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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       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
+       } 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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       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
+       } 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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       char           wk11[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 :2;\r
+                       unsigned long AWAIT:2;\r
+                       unsigned long :1;\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
+       char           wk12[1926];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk13[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
+       char           wk14[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk15[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
+       char           wk16[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk17[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
+       char           wk18[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk19[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
+       char           wk20[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk21[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
+       char           wk22[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk23[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
+       char           wk24[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk25[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
+       char           wk26[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short MPXEN:1;\r
+                       unsigned short :3;\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
+       char           wk27[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
+       char           wk28[4];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short RCVENM7:1;\r
+                       unsigned short RCVENM6:1;\r
+                       unsigned short RCVENM5:1;\r
+                       unsigned short RCVENM4:1;\r
+                       unsigned short RCVENM3:1;\r
+                       unsigned short RCVENM2:1;\r
+                       unsigned short RCVENM1:1;\r
+                       unsigned short RCVENM0:1;\r
+                       unsigned short RCVEN7:1;\r
+                       unsigned short RCVEN6:1;\r
+                       unsigned short RCVEN5:1;\r
+                       unsigned short RCVEN4:1;\r
+                       unsigned short RCVEN3:1;\r
+                       unsigned short RCVEN2:1;\r
+                       unsigned short RCVEN1:1;\r
+                       unsigned short RCVEN0:1;\r
+               } BIT;\r
+       } CSRECEN;\r
+       char           wk29[894];\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
+       char           wk30[13];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char SFEN:1;\r
+               } BIT;\r
+       } SDSELF;\r
+       char           wk31[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
+       char           wk32[9];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char INIRQ:1;\r
+               } BIT;\r
+       } SDICR;\r
+       char           wk33[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
+       char           wk34[26];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char MXC:2;\r
+               } BIT;\r
+       } SDADR;\r
+       char           wk35[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
+       char           wk36[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_cac {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char CFME:1;\r
+               } BIT;\r
+       } CACR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char EDGES:2;\r
+                       unsigned char TCSS:2;\r
+                       unsigned char FMCS:3;\r
+                       unsigned char CACREFE:1;\r
+               } BIT;\r
+       } CACR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DFS:2;\r
+                       unsigned char RCDS:2;\r
+                       unsigned char RSCS:3;\r
+                       unsigned char RPS:1;\r
+               } BIT;\r
+       } CACR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char OVFFCL:1;\r
+                       unsigned char MENDFCL:1;\r
+                       unsigned char FERRFCL:1;\r
+                       unsigned char :1;\r
+                       unsigned char OVFIE:1;\r
+                       unsigned char MENDIE:1;\r
+                       unsigned char FERRIE:1;\r
+               } BIT;\r
+       } CAICR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char OVFF:1;\r
+                       unsigned char MENDF:1;\r
+                       unsigned char FERRF:1;\r
+               } BIT;\r
+       } CASTR;\r
+       char           wk0[1];\r
+       unsigned short CAULVR;\r
+       unsigned short CALLVR;\r
+       unsigned short CACNTBR;\r
+};\r
+\r
+struct st_can {\r
+       struct {\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
+               } ID;\r
+               unsigned short DLC;             \r
+               unsigned char  DATA[8];\r
+               unsigned short 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
+       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 char MB31:1;\r
+                       unsigned char MB30:1;\r
+                       unsigned char MB29:1;\r
+                       unsigned char MB28:1;\r
+                       unsigned char MB27:1;\r
+                       unsigned char MB26:1;\r
+                       unsigned char MB25:1;\r
+                       unsigned char MB24:1;\r
+                       unsigned char MB23:1;\r
+                       unsigned char MB22:1;\r
+                       unsigned char MB21:1;\r
+                       unsigned char MB20:1;\r
+                       unsigned char MB19:1;\r
+                       unsigned char MB18:1;\r
+                       unsigned char MB17:1;\r
+                       unsigned char MB16:1;\r
+                       unsigned char MB15:1;\r
+                       unsigned char MB14:1;\r
+                       unsigned char MB13:1;\r
+                       unsigned char MB12:1;\r
+                       unsigned char MB11:1;\r
+                       unsigned char MB10:1;\r
+                       unsigned char MB9:1;\r
+                       unsigned char MB8:1;\r
+                       unsigned char MB7:1;\r
+                       unsigned char MB6:1;\r
+                       unsigned char MB5:1;\r
+                       unsigned char MB4:1;\r
+                       unsigned char MB3:1;\r
+                       unsigned char MB2:1;\r
+                       unsigned char MB1:1;\r
+                       unsigned char MB0:1;\r
+               } BIT;\r
+       } MKIVLR;\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 char MB31:1;\r
+                       unsigned char MB30:1;\r
+                       unsigned char MB29:1;\r
+                       unsigned char MB28:1;\r
+                       unsigned char MB27:1;\r
+                       unsigned char MB26:1;\r
+                       unsigned char MB25:1;\r
+                       unsigned char MB24:1;\r
+                       unsigned char MB23:1;\r
+                       unsigned char MB22:1;\r
+                       unsigned char MB21:1;\r
+                       unsigned char MB20:1;\r
+                       unsigned char MB19:1;\r
+                       unsigned char MB18:1;\r
+                       unsigned char MB17:1;\r
+                       unsigned char MB16:1;\r
+                       unsigned char MB15:1;\r
+                       unsigned char MB14:1;\r
+                       unsigned char MB13:1;\r
+                       unsigned char MB12:1;\r
+                       unsigned char MB11:1;\r
+                       unsigned char MB10:1;\r
+                       unsigned char MB9:1;\r
+                       unsigned char MB8:1;\r
+                       unsigned char MB7:1;\r
+                       unsigned char MB6:1;\r
+                       unsigned char MB5:1;\r
+                       unsigned char MB4:1;\r
+                       unsigned char MB3:1;\r
+                       unsigned char MB2:1;\r
+                       unsigned char MB1:1;\r
+                       unsigned char MB0:1;\r
+               } BIT;\r
+       } MIER;\r
+       char           wk0[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 :7;\r
+                       unsigned long CCLKS:1;\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_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
+       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
+struct st_cmtw {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short STR:1;\r
+               } BIT;\r
+       } CMWSTR;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CLLR:3;\r
+                       unsigned short :3;\r
+                       unsigned short CMS:1;\r
+                       unsigned short :1;\r
+                       unsigned short OC1IE:1;\r
+                       unsigned short OC0IE:1;\r
+                       unsigned short IC1IE:1;\r
+                       unsigned short IC0IE:1;\r
+                       unsigned short CM2IE:1;\r
+                       unsigned short :1;\r
+                       unsigned short CKS:2;\r
+               } BIT;\r
+       } CMWCR;\r
+       char           wk1[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CM2E:1;\r
+                       unsigned short :1;\r
+                       unsigned short OC1E:1;\r
+                       unsigned short OC0E:1;\r
+                       unsigned short OC1:2;\r
+                       unsigned short OC0:2;\r
+                       unsigned short :2;\r
+                       unsigned short IC1E:1;\r
+                       unsigned short IC0E:1;\r
+                       unsigned short IC1:2;\r
+                       unsigned short IC0:2;\r
+               } BIT;\r
+       } CMWIOR;\r
+       char           wk2[6];\r
+       unsigned long  CMWCNT;\r
+       unsigned long  CMWCOR;\r
+       unsigned long  CMWICR0;\r
+       unsigned long  CMWICR1;\r
+       unsigned long  CMWOCR0;\r
+       unsigned long  CMWOCR1;\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_da {\r
+//     union {\r
+//             unsigned short WORD;\r
+//             struct {\r
+//                     unsigned short :4;\r
+//                     unsigned short B11:1;\r
+//                     unsigned short B10:1;\r
+//                     unsigned short B9:1;\r
+//                     unsigned short B8:1;\r
+//                     unsigned short B7:1;\r
+//                     unsigned short B6:1;\r
+//                     unsigned short B5:1;\r
+//                     unsigned short B4:1;\r
+//                     unsigned short B3:1;\r
+//                     unsigned short B2:1;\r
+//                     unsigned short B1:1;\r
+//                     unsigned short B0:1;\r
+//             } BIT;\r
+//     } DADR0;\r
+//     union {\r
+//             unsigned short WORD;\r
+//             struct {\r
+//                     unsigned short :4;\r
+//                     unsigned short B11:1;\r
+//                     unsigned short B10:1;\r
+//                     unsigned short B9:1;\r
+//                     unsigned short B8:1;\r
+//                     unsigned short B7:1;\r
+//                     unsigned short B6:1;\r
+//                     unsigned short B5:1;\r
+//                     unsigned short B4:1;\r
+//                     unsigned short B3:1;\r
+//                     unsigned short B2:1;\r
+//                     unsigned short B1:1;\r
+//                     unsigned short B0:1;\r
+//             } BIT;\r
+//     } DADR1;\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
+               } BIT;\r
+       } DACR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DPSEL:1;\r
+               } BIT;\r
+       } DADPR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DAADST:1;\r
+               } BIT;\r
+       } DAADSCR;\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DAAMP1:1;\r
+                       unsigned char DAAMP0:1;\r
+               } BIT;\r
+       } DAAMPCR;\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
+       char           wk0[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DMIS7:1;\r
+                       unsigned char DMIS6:1;\r
+                       unsigned char DMIS5:1;\r
+                       unsigned char DMIS4:1;\r
+               } BIT;\r
+       } DMIST;\r
+};\r
+\r
+struct st_dmac0 {\r
+//     unsigned long  DMSAR;\r
+//     unsigned long  DMDAR;\r
+       void          *DMSAR;\r
+       void          *DMDAR;   \r
+       unsigned long  DMCRA;\r
+       unsigned short DMCRB;\r
+       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
+       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
+       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
+//     unsigned long  DMSAR;\r
+//     unsigned long  DMDAR;\r
+       void          *DMSAR;\r
+       void          *DMDAR;   \r
+       unsigned long  DMCRA;\r
+       unsigned short DMCRB;\r
+       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
+       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
+       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_doc {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char DOPCFCL:1;\r
+                       unsigned char DOPCF:1;\r
+                       unsigned char DOPCIE:1;\r
+                       unsigned char :1;\r
+                       unsigned char DCSEL:1;\r
+                       unsigned char OMS:2;\r
+               } BIT;\r
+       } DOCR;\r
+       char           wk0[1];\r
+       unsigned short DODIR;\r
+       unsigned short DODSR;\r
+};\r
+\r
+struct st_dtc {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char RRS:1;\r
+               } BIT;\r
+       } DTCCR;\r
+       char           wk0[3];\r
+//     unsigned long  DTCVBR;\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
+       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
+       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_eccram {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char RAMMOD:2;\r
+               } BIT;\r
+       } ECCRAMMODE;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char RAMERR:1;\r
+               } BIT;\r
+       } ECCRAMSTS;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char KW:7;\r
+                       unsigned char RAMPRCR:1;\r
+               } BIT;\r
+       } ECCRAMPRCR;\r
+       char           wk1[3];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :13;\r
+                       unsigned long READ:16;\r
+               } BIT;\r
+       } ECCRAMECAD;\r
+       char           wk2[4];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char KW2:7;\r
+                       unsigned char RAMPRCR2:1;\r
+               } BIT;\r
+       } ECCRAMPRCR2;\r
+       char           wk3[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TSTBYP:1;\r
+               } BIT;\r
+       } ECCRAMETST;\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
+       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
+       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
+       char           wk2[4];\r
+//     unsigned long  TDLAR;\r
+       void          *TDLAR;\r
+       char           wk3[4];\r
+//     unsigned long  RDLAR;\r
+       void          *RDLAR;\r
+       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
+       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
+       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
+       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
+       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
+       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
+       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
+       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 ELB: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
+       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
+       char           wk13[72];\r
+//     unsigned long  RBWAR;\r
+       void          *RBWAR;\r
+//     unsigned long  RDFAR;\r
+       void          *RDFAR;\r
+       char           wk14[4];\r
+//     unsigned long  TBRAR;\r
+       void          *TBRAR;   \r
+//     unsigned long  TDFAR;\r
+       void          *TDFAR;   \r
+};\r
+\r
+struct st_edmacp {\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
+       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
+       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
+       char           wk2[4];\r
+       unsigned long  TDLAR;\r
+       char           wk3[4];\r
+       unsigned long  RDLAR;\r
+       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
+               } BIT;\r
+       } EESR;\r
+       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
+               } BIT;\r
+       } EESIPR;\r
+       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
+       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
+       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
+       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
+       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
+       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 ELB: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
+       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
+       char           wk13[72];\r
+       unsigned long  RBWAR;\r
+       unsigned long  RDFAR;\r
+       char           wk14[4];\r
+       unsigned long  TBRAR;\r
+       unsigned long  TDFAR;\r
+};\r
+\r
+struct st_elc {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELCON:1;\r
+               } BIT;\r
+       } ELCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR0;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR4;\r
+       char           wk1[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR7;\r
+       char           wk2[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR10;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR11;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR12;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR13;\r
+       char           wk3[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR15;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR16;\r
+       char           wk4[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR18;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR19;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR20;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR21;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR22;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR23;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR24;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR25;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR26;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR27;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR28;\r
+       char           wk5[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char MTU3MD:2;\r
+                       unsigned char :4;\r
+                       unsigned char MTU0MD:2;\r
+               } BIT;\r
+       } ELOPA;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char MTU4MD:2;\r
+               } BIT;\r
+       } ELOPB;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char CMT1MD:2;\r
+               } BIT;\r
+       } ELOPC;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TMR3MD:2;\r
+                       unsigned char TMR2MD:2;\r
+                       unsigned char TMR1MD:2;\r
+                       unsigned char TMR0MD:2;\r
+               } BIT;\r
+       } ELOPD;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PGR7:1;\r
+                       unsigned char PGR6:1;\r
+                       unsigned char PGR5:1;\r
+                       unsigned char PGR4:1;\r
+                       unsigned char PGR3:1;\r
+                       unsigned char PGR2:1;\r
+                       unsigned char PGR1:1;\r
+                       unsigned char PGR0:1;\r
+               } BIT;\r
+       } PGR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PGR7:1;\r
+                       unsigned char PGR6:1;\r
+                       unsigned char PGR5:1;\r
+                       unsigned char PGR4:1;\r
+                       unsigned char PGR3:1;\r
+                       unsigned char PGR2:1;\r
+                       unsigned char PGR1:1;\r
+                       unsigned char PGR0:1;\r
+               } BIT;\r
+       } PGR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PGCO:3;\r
+                       unsigned char :1;\r
+                       unsigned char PGCOVE:1;\r
+                       unsigned char PGCI:2;\r
+               } BIT;\r
+       } PGC1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PGCO:3;\r
+                       unsigned char :1;\r
+                       unsigned char PGCOVE:1;\r
+                       unsigned char PGCI:2;\r
+               } BIT;\r
+       } PGC2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PDBF7:1;\r
+                       unsigned char PDBF6:1;\r
+                       unsigned char PDBF5:1;\r
+                       unsigned char PDBF4:1;\r
+                       unsigned char PDBF3:1;\r
+                       unsigned char PDBF2:1;\r
+                       unsigned char PDBF1:1;\r
+                       unsigned char PDBF0:1;\r
+               } BIT;\r
+       } PDBF1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PDBF7:1;\r
+                       unsigned char PDBF6:1;\r
+                       unsigned char PDBF5:1;\r
+                       unsigned char PDBF4:1;\r
+                       unsigned char PDBF3:1;\r
+                       unsigned char PDBF2:1;\r
+                       unsigned char PDBF1:1;\r
+                       unsigned char PDBF0:1;\r
+               } BIT;\r
+       } PDBF2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PSM:2;\r
+                       unsigned char PSP:2;\r
+                       unsigned char PSB:3;\r
+               } BIT;\r
+       } PEL0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PSM:2;\r
+                       unsigned char PSP:2;\r
+                       unsigned char PSB:3;\r
+               } BIT;\r
+       } PEL1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PSM:2;\r
+                       unsigned char PSP:2;\r
+                       unsigned char PSB:3;\r
+               } BIT;\r
+       } PEL2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PSM:2;\r
+                       unsigned char PSP:2;\r
+                       unsigned char PSB:3;\r
+               } BIT;\r
+       } PEL3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char WI:1;\r
+                       unsigned char WE:1;\r
+                       unsigned char :5;\r
+                       unsigned char SEG:1;\r
+               } BIT;\r
+       } ELSEGR;\r
+       char           wk6[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR33;\r
+       char           wk7[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR35;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR36;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR37;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR38;\r
+       char           wk8[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR41;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR42;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR43;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR44;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ELS:8;\r
+               } BIT;\r
+       } ELSR45;\r
+       char           wk9[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TPU3MD:2;\r
+                       unsigned char TPU2MD:2;\r
+                       unsigned char TPU1MD:2;\r
+                       unsigned char TPU0MD:2;\r
+               } BIT;\r
+       } ELOPF;\r
+       char           wk10[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char CMTW0MD:2;\r
+               } BIT;\r
+       } ELOPH;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char GPT1MD:3;\r
+                       unsigned char :1;\r
+                       unsigned char GPT0MD:3;\r
+               } BIT;\r
+       } ELOPI;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char GPT3MD:3;\r
+                       unsigned char :1;\r
+                       unsigned char GPT2MD:3;\r
+               } BIT;\r
+       } ELOPJ;\r
+};\r
+\r
+struct st_eptpc {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long RESET:1;\r
+               } BIT;\r
+       } PTRSTR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :21;\r
+                       unsigned long SCLKSEL:3;\r
+                       unsigned long :5;\r
+                       unsigned long SCLKDIV:3;\r
+               } BIT;\r
+       } STCSELR;\r
+       char           wk0[15096];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :10;\r
+                       unsigned long CYC5:1;\r
+                       unsigned long CYC4:1;\r
+                       unsigned long CYC3:1;\r
+                       unsigned long CYC2:1;\r
+                       unsigned long CYC1:1;\r
+                       unsigned long CYC0:1;\r
+                       unsigned long :12;\r
+                       unsigned long PRC:1;\r
+                       unsigned long SY1:1;\r
+                       unsigned long SY0:1;\r
+                       unsigned long ST:1;\r
+               } BIT;\r
+       } MIESR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :10;\r
+                       unsigned long CYC5:1;\r
+                       unsigned long CYC4:1;\r
+                       unsigned long CYC3:1;\r
+                       unsigned long CYC2:1;\r
+                       unsigned long CYC1:1;\r
+                       unsigned long CYC0:1;\r
+                       unsigned long :12;\r
+                       unsigned long PR:1;\r
+                       unsigned long SY1:1;\r
+                       unsigned long SY0:1;\r
+                       unsigned long ST:1;\r
+               } BIT;\r
+       } MIEIPR;\r
+       char           wk1[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long VER:16;\r
+                       unsigned long REV:16;\r
+               } BIT;\r
+       } PTVRR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :7;\r
+                       unsigned long PLSN:1;\r
+                       unsigned long :7;\r
+                       unsigned long PLSP:1;\r
+                       unsigned long :2;\r
+                       unsigned long CYCN5:1;\r
+                       unsigned long CYCN4:1;\r
+                       unsigned long CYCN3:1;\r
+                       unsigned long CYCN2:1;\r
+                       unsigned long CYCN1:1;\r
+                       unsigned long CYCN0:1;\r
+                       unsigned long :2;\r
+                       unsigned long CYCP5:1;\r
+                       unsigned long CYCP4:1;\r
+                       unsigned long CYCP3:1;\r
+                       unsigned long CYCP2:1;\r
+                       unsigned long CYCP1:1;\r
+                       unsigned long CYCP0:1;\r
+               } BIT;\r
+       } ELIPPR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :7;\r
+                       unsigned long PLSN:1;\r
+                       unsigned long :7;\r
+                       unsigned long PLSP:1;\r
+                       unsigned long :2;\r
+                       unsigned long CYCN5:1;\r
+                       unsigned long CYCN4:1;\r
+                       unsigned long CYCN3:1;\r
+                       unsigned long CYCN2:1;\r
+                       unsigned long CYCN1:1;\r
+                       unsigned long CYCN0:1;\r
+                       unsigned long :2;\r
+                       unsigned long CYCP5:1;\r
+                       unsigned long CYCP4:1;\r
+                       unsigned long CYCP3:1;\r
+                       unsigned long CYCP2:1;\r
+                       unsigned long CYCP1:1;\r
+                       unsigned long CYCP0:1;\r
+               } BIT;\r
+       } ELIPACR;\r
+       char           wk2[40];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :27;\r
+                       unsigned long W10D:1;\r
+                       unsigned long SYNTOUT:1;\r
+                       unsigned long :1;\r
+                       unsigned long SYNCOUT:1;\r
+                       unsigned long SYNC:1;\r
+               } BIT;\r
+       } STSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :27;\r
+                       unsigned long W10D:1;\r
+                       unsigned long SYNTOUT:1;\r
+                       unsigned long :1;\r
+                       unsigned long SYNCOUT:1;\r
+                       unsigned long SYNC:1;\r
+               } BIT;\r
+       } STIPR;\r
+       char           wk3[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long VER:16;\r
+                       unsigned long REV:16;\r
+               } BIT;\r
+       } STVRR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :30;\r
+                       unsigned long STCF:2;\r
+               } BIT;\r
+       } STCFR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long ALEN1:1;\r
+                       unsigned long ALEN0:1;\r
+                       unsigned long :4;\r
+                       unsigned long SYTH:4;\r
+                       unsigned long DVTH:4;\r
+                       unsigned long W10S:1;\r
+                       unsigned long :1;\r
+                       unsigned long CMOD:1;\r
+                       unsigned long :5;\r
+                       unsigned long WINT:8;\r
+               } BIT;\r
+       } STMR;\r
+       unsigned long  SYNTOR;\r
+       char           wk4[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :26;\r
+                       unsigned long IPTSEL5:1;\r
+                       unsigned long IPTSEL4:1;\r
+                       unsigned long IPTSEL3:1;\r
+                       unsigned long IPTSEL2:1;\r
+                       unsigned long IPTSEL1:1;\r
+                       unsigned long IPTSEL0:1;\r
+               } BIT;\r
+       } IPTSELR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :26;\r
+                       unsigned long MINTEN5:1;\r
+                       unsigned long MINTEN4:1;\r
+                       unsigned long MINTEN3:1;\r
+                       unsigned long MINTEN2:1;\r
+                       unsigned long MINTEN1:1;\r
+                       unsigned long MINTEN0:1;\r
+               } BIT;\r
+       } MITSELR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :26;\r
+                       unsigned long ELTDIS5:1;\r
+                       unsigned long ELTDIS4:1;\r
+                       unsigned long ELTDIS3:1;\r
+                       unsigned long ELTDIS2:1;\r
+                       unsigned long ELTDIS1:1;\r
+                       unsigned long ELTDIS0:1;\r
+               } BIT;\r
+       } ELTSELR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long SYSEL:1;\r
+               } BIT;\r
+       } STCHSELR;\r
+       char           wk5[16];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long STR:1;\r
+               } BIT;\r
+       } SYNSTARTR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long LOAD:1;\r
+               } BIT;\r
+       } LCIVLDR;\r
+       char           wk6[8];\r
+       unsigned long  SYNTDARU;\r
+       unsigned long  SYNTDARL;\r
+       unsigned long  SYNTDBRU;\r
+       unsigned long  SYNTDBRL;\r
+       char           wk7[16];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long VALU:16;\r
+               } BIT;\r
+       } LCIVRU;\r
+       unsigned long  LCIVRM;\r
+       unsigned long  LCIVRL;\r
+       char           wk8[104];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long GW10:1;\r
+               } BIT;\r
+       } GETW10R;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :1;\r
+                       unsigned long LMTU:31;\r
+               } BIT;\r
+       } PLIMITRU;\r
+       unsigned long  PLIMITRM;\r
+       unsigned long  PLIMITRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :1;\r
+                       unsigned long LMTU:31;\r
+               } BIT;\r
+       } MLIMITRU;\r
+       unsigned long  MLIMITRM;\r
+       unsigned long  MLIMITRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long INFO:1;\r
+               } BIT;\r
+       } GETINFOR;\r
+       char           wk9[44];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long CNTU:16;\r
+               } BIT;\r
+       } LCCVRU;\r
+       unsigned long  LCCVRM;\r
+       unsigned long  LCCVRL;\r
+       char           wk10[148];\r
+       unsigned long  PW10VRU;\r
+       unsigned long  PW10VRM;\r
+       unsigned long  PW10VRL;\r
+       char           wk11[180];\r
+       unsigned long  MW10RU;\r
+       unsigned long  MW10RM;\r
+       unsigned long  MW10RL;\r
+       char           wk12[36];\r
+       unsigned long  TMSTTRU0;\r
+       unsigned long  TMSTTRL0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long CYC:30;\r
+               } BIT;\r
+       } TMCYCR0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WTH:29;\r
+               } BIT;\r
+       } TMPLSR0;\r
+       unsigned long  TMSTTRU1;\r
+       unsigned long  TMSTTRL1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long CYC:30;\r
+               } BIT;\r
+       } TMCYCR1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WTH:29;\r
+               } BIT;\r
+       } TMPLSR1;\r
+       unsigned long  TMSTTRU2;\r
+       unsigned long  TMSTTRL2;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long CYC:30;\r
+               } BIT;\r
+       } TMCYCR2;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WTH:29;\r
+               } BIT;\r
+       } TMPLSR2;\r
+       unsigned long  TMSTTRU3;\r
+       unsigned long  TMSTTRL3;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long CYC:30;\r
+               } BIT;\r
+       } TMCYCR3;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WTH:29;\r
+               } BIT;\r
+       } TMPLSR3;\r
+       unsigned long  TMSTTRU4;\r
+       unsigned long  TMSTTRL4;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long CYC:30;\r
+               } BIT;\r
+       } TMCYCR4;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WTH:29;\r
+               } BIT;\r
+       } TMPLSR4;\r
+       unsigned long  TMSTTRU5;\r
+       unsigned long  TMSTTRL5;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long CYC:30;\r
+               } BIT;\r
+       } TMCYCR5;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WTH:29;\r
+               } BIT;\r
+       } TMPLSR5;\r
+       char           wk13[28];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :26;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } TMSTARTR;\r
+       char           wk14[128];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long URE1:1;\r
+                       unsigned long URE0:1;\r
+                       unsigned long PRTE13:1;\r
+                       unsigned long PRTE12:1;\r
+                       unsigned long PRTE11:1;\r
+                       unsigned long PRTE10:1;\r
+                       unsigned long PRTE03:1;\r
+                       unsigned long PRTE02:1;\r
+                       unsigned long PRTE01:1;\r
+                       unsigned long PRTE00:1;\r
+                       unsigned long PRRE3:1;\r
+                       unsigned long PRRE2:1;\r
+                       unsigned long PRRE1:1;\r
+                       unsigned long PRRE0:1;\r
+                       unsigned long :7;\r
+                       unsigned long MACE:1;\r
+                       unsigned long :4;\r
+                       unsigned long OVRE3:1;\r
+                       unsigned long OVRE2:1;\r
+                       unsigned long OVRE1:1;\r
+                       unsigned long OVRE0:1;\r
+               } BIT;\r
+       } PRSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long URE1:1;\r
+                       unsigned long URE0:1;\r
+                       unsigned long PRTE13:1;\r
+                       unsigned long PRTE12:1;\r
+                       unsigned long PRTE11:1;\r
+                       unsigned long PRTE10:1;\r
+                       unsigned long PRTE03:1;\r
+                       unsigned long PRTE02:1;\r
+                       unsigned long PRTE01:1;\r
+                       unsigned long PRTE00:1;\r
+                       unsigned long PRRE3:1;\r
+                       unsigned long PRRE2:1;\r
+                       unsigned long PRRE1:1;\r
+                       unsigned long PRRE0:1;\r
+                       unsigned long :7;\r
+                       unsigned long MACE:1;\r
+                       unsigned long :4;\r
+                       unsigned long OVRE3:1;\r
+                       unsigned long OVRE2:1;\r
+                       unsigned long OVRE1:1;\r
+                       unsigned long OVRE0:1;\r
+               } BIT;\r
+       } PRIPR;\r
+       char           wk15[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long VER:16;\r
+                       unsigned long REV:16;\r
+               } BIT;\r
+       } PRVRR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } PRMACRU0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } PRMACRL0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } PRMACRU1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } PRMACRL1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :30;\r
+                       unsigned long TDIS:2;\r
+               } BIT;\r
+       } TRNDISR;\r
+       char           wk16[12];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long MOD:1;\r
+               } BIT;\r
+       } TRNMR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :21;\r
+                       unsigned long THVAL:11;\r
+               } BIT;\r
+       } TRNCTTDR;\r
+};\r
+\r
+struct st_eptpcs {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long PRE3:1;\r
+                       unsigned long PRE2:1;\r
+                       unsigned long PRE1:1;\r
+                       unsigned long PRE0:1;\r
+                       unsigned long :2;\r
+                       unsigned long GENDN:1;\r
+                       unsigned long RESDN:1;\r
+                       unsigned long :1;\r
+                       unsigned long INFABT:1;\r
+                       unsigned long SRTABT:1;\r
+                       unsigned long RECLP:1;\r
+                       unsigned long :2;\r
+                       unsigned long PDRPMR:1;\r
+                       unsigned long :2;\r
+                       unsigned long DRQOVR:1;\r
+                       unsigned long INTDEV:1;\r
+                       unsigned long DRPTO:1;\r
+                       unsigned long :1;\r
+                       unsigned long MPDUD:1;\r
+                       unsigned long INTCHG:1;\r
+                       unsigned long OFMUD:1;\r
+               } BIT;\r
+       } SYSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long PRE3:1;\r
+                       unsigned long PRE2:1;\r
+                       unsigned long PRE1:1;\r
+                       unsigned long PRE0:1;\r
+                       unsigned long :2;\r
+                       unsigned long GENDN:1;\r
+                       unsigned long RESDN:1;\r
+                       unsigned long :1;\r
+                       unsigned long INFABT:1;\r
+                       unsigned long SRTABT:1;\r
+                       unsigned long RECLP:1;\r
+                       unsigned long :2;\r
+                       unsigned long PDRPMR:1;\r
+                       unsigned long :2;\r
+                       unsigned long DRQOVR:1;\r
+                       unsigned long INTDEV:1;\r
+                       unsigned long DRPTO:1;\r
+                       unsigned long :1;\r
+                       unsigned long MPDUD:1;\r
+                       unsigned long INTCHG:1;\r
+                       unsigned long OFMUD:1;\r
+               } BIT;\r
+       } SYIPR;\r
+       char           wk0[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long VER:16;\r
+                       unsigned long REV:16;\r
+               } BIT;\r
+       } SYVRR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } SYMACRU;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } SYMACRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long LLC:8;\r
+               } BIT;\r
+       } SYLLCCTLR;\r
+       unsigned long  SYIPR2;\r
+       char           wk1[32];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long TRSP:4;\r
+                       unsigned long VER:4;\r
+               } BIT;\r
+       } SYSPVRR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long DNUM:8;\r
+               } BIT;\r
+       } SYDOMR;\r
+       char           wk2[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long FLG15:1;\r
+                       unsigned long FLG14:1;\r
+                       unsigned long FLG13:1;\r
+                       unsigned long FLG12:1;\r
+                       unsigned long FLG11:1;\r
+                       unsigned long FLG10:1;\r
+                       unsigned long FLG9:1;\r
+                       unsigned long FLG8:1;\r
+                       unsigned long FLG7:1;\r
+                       unsigned long FLG6:1;\r
+                       unsigned long FLG5:1;\r
+                       unsigned long FLG4:1;\r
+                       unsigned long FLG3:1;\r
+                       unsigned long FLG2:1;\r
+                       unsigned long FLG1:1;\r
+                       unsigned long FLG0:1;\r
+               } BIT;\r
+       } ANFR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long FLG15:1;\r
+                       unsigned long FLG14:1;\r
+                       unsigned long FLG13:1;\r
+                       unsigned long FLG12:1;\r
+                       unsigned long FLG11:1;\r
+                       unsigned long FLG10:1;\r
+                       unsigned long FLG9:1;\r
+                       unsigned long FLG8:1;\r
+                       unsigned long FLG7:1;\r
+                       unsigned long FLG6:1;\r
+                       unsigned long FLG5:1;\r
+                       unsigned long FLG4:1;\r
+                       unsigned long FLG3:1;\r
+                       unsigned long FLG2:1;\r
+                       unsigned long FLG1:1;\r
+                       unsigned long FLG0:1;\r
+               } BIT;\r
+       } SYNFR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long FLG15:1;\r
+                       unsigned long FLG14:1;\r
+                       unsigned long FLG13:1;\r
+                       unsigned long FLG12:1;\r
+                       unsigned long FLG11:1;\r
+                       unsigned long FLG10:1;\r
+                       unsigned long FLG9:1;\r
+                       unsigned long FLG8:1;\r
+                       unsigned long FLG7:1;\r
+                       unsigned long FLG6:1;\r
+                       unsigned long FLG5:1;\r
+                       unsigned long FLG4:1;\r
+                       unsigned long FLG3:1;\r
+                       unsigned long FLG2:1;\r
+                       unsigned long FLG1:1;\r
+                       unsigned long FLG0:1;\r
+               } BIT;\r
+       } DYRQFR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long FLG15:1;\r
+                       unsigned long FLG14:1;\r
+                       unsigned long FLG13:1;\r
+                       unsigned long FLG12:1;\r
+                       unsigned long FLG11:1;\r
+                       unsigned long FLG10:1;\r
+                       unsigned long FLG9:1;\r
+                       unsigned long FLG8:1;\r
+                       unsigned long FLG7:1;\r
+                       unsigned long FLG6:1;\r
+                       unsigned long FLG5:1;\r
+                       unsigned long FLG4:1;\r
+                       unsigned long FLG3:1;\r
+                       unsigned long FLG2:1;\r
+                       unsigned long FLG1:1;\r
+                       unsigned long FLG0:1;\r
+               } BIT;\r
+       } DYRPFR;\r
+       unsigned long  SYCIDRU;\r
+       unsigned long  SYCIDRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long PNUM:16;\r
+               } BIT;\r
+       } SYPNUMR;\r
+       char           wk3[20];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :29;\r
+                       unsigned long ANUP:1;\r
+                       unsigned long STUP:1;\r
+                       unsigned long BMUP:1;\r
+               } BIT;\r
+       } SYRVLDR;\r
+       char           wk4[12];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :1;\r
+                       unsigned long PDFUP2:1;\r
+                       unsigned long PDFUP1:1;\r
+                       unsigned long PDFUP0:1;\r
+                       unsigned long :1;\r
+                       unsigned long PDRP2:1;\r
+                       unsigned long PDRP1:1;\r
+                       unsigned long PDRP0:1;\r
+                       unsigned long :1;\r
+                       unsigned long PDRQ2:1;\r
+                       unsigned long PDRQ1:1;\r
+                       unsigned long PDRQ0:1;\r
+                       unsigned long :1;\r
+                       unsigned long DRP2:1;\r
+                       unsigned long DRP1:1;\r
+                       unsigned long DRP0:1;\r
+                       unsigned long :1;\r
+                       unsigned long DRQ2:1;\r
+                       unsigned long DRQ1:1;\r
+                       unsigned long DRQ0:1;\r
+                       unsigned long :1;\r
+                       unsigned long FUP2:1;\r
+                       unsigned long FUP1:1;\r
+                       unsigned long FUP0:1;\r
+                       unsigned long :1;\r
+                       unsigned long SYNC2:1;\r
+                       unsigned long SYNC1:1;\r
+                       unsigned long SYNC0:1;\r
+                       unsigned long :2;\r
+                       unsigned long ANCE1:1;\r
+                       unsigned long ANCE0:1;\r
+               } BIT;\r
+       } SYRFL1R;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long ILL1:1;\r
+                       unsigned long ILL0:1;\r
+                       unsigned long :22;\r
+                       unsigned long SIG1:1;\r
+                       unsigned long SIG0:1;\r
+                       unsigned long :2;\r
+                       unsigned long MAN1:1;\r
+                       unsigned long MAN0:1;\r
+               } BIT;\r
+       } SYRFL2R;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :19;\r
+                       unsigned long PDRQ:1;\r
+                       unsigned long :3;\r
+                       unsigned long DRQ:1;\r
+                       unsigned long :3;\r
+                       unsigned long SYNC:1;\r
+                       unsigned long :3;\r
+                       unsigned long ANCE:1;\r
+               } BIT;\r
+       } SYTRENR;\r
+       char           wk5[4];\r
+       unsigned long  MTCIDU;\r
+       unsigned long  MTCIDL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long PNUM:16;\r
+               } BIT;\r
+       } MTPID;\r
+       char           wk6[20];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long DRQ:8;\r
+                       unsigned long SYNC:8;\r
+                       unsigned long ANCE:8;\r
+               } BIT;\r
+       } SYTLIR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long DRP:8;\r
+                       unsigned long SYNC:8;\r
+                       unsigned long ANCE:8;\r
+               } BIT;\r
+       } SYRLIR;\r
+       unsigned long  OFMRU;\r
+       unsigned long  OFMRL;\r
+       unsigned long  MPDRU;\r
+       unsigned long  MPDRL;\r
+       char           wk7[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long GMPR1:8;\r
+                       unsigned long :8;\r
+                       unsigned long GMPR2:8;\r
+               } BIT;\r
+       } GMPR;\r
+       unsigned long  GMCQR;\r
+       unsigned long  GMIDRU;\r
+       unsigned long  GMIDRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CUTO:16;\r
+                       unsigned long :8;\r
+                       unsigned long TSRC:8;\r
+               } BIT;\r
+       } CUOTSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long SRMV:16;\r
+               } BIT;\r
+       } SRR;\r
+       char           wk8[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } PPMACRU;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } PPMACRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } PDMACRU;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } PDMACRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long TYPE:16;\r
+               } BIT;\r
+       } PETYPER;\r
+       char           wk9[12];\r
+       unsigned long  PPIPR;\r
+       unsigned long  PDIPR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long EVTO:8;\r
+               } BIT;\r
+       } PETOSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long GETO:8;\r
+               } BIT;\r
+       } PGTOSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long PRTL:8;\r
+               } BIT;\r
+       } PPTTLR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long PDTL:8;\r
+               } BIT;\r
+       } PDTTLR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long EVUPT:16;\r
+               } BIT;\r
+       } PEUDPR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long GEUPT:16;\r
+               } BIT;\r
+       } PGUDPR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :29;\r
+                       unsigned long ENB:1;\r
+                       unsigned long PRT:1;\r
+                       unsigned long SEL:1;\r
+               } BIT;\r
+       } FFLTR;\r
+       char           wk10[28];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } FMAC0RU;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } FMAC0RL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACU:24;\r
+               } BIT;\r
+       } FMAC1RU;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long MACL:24;\r
+               } BIT;\r
+       } FMAC1RL;\r
+       char           wk11[80];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :16;\r
+                       unsigned long ASYMU:16;\r
+               } BIT;\r
+       } DASYMRU;\r
+       unsigned long  DASYMRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long INGP:16;\r
+                       unsigned long EGP:16;\r
+               } BIT;\r
+       } TSLATR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :7;\r
+                       unsigned long TRAN:1;\r
+                       unsigned long :3;\r
+                       unsigned long TCMOD:1;\r
+                       unsigned long :3;\r
+                       unsigned long FILDIS:1;\r
+                       unsigned long :3;\r
+                       unsigned long SBDIS:1;\r
+                       unsigned long :4;\r
+                       unsigned long TCYC:8;\r
+               } BIT;\r
+       } SYCONFR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :30;\r
+                       unsigned long FORM1:1;\r
+                       unsigned long FORM0:1;\r
+               } BIT;\r
+       } SYFORMR;\r
+       unsigned long  RSTOUTR;\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 ZPF: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
+       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
+       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
+       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
+       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
+       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
+       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
+       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
+       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
+       char           wk8[80];\r
+       unsigned long  MAHR;\r
+       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
+       char           wk10[4];\r
+       unsigned long  TROCR;\r
+       unsigned long  CDCR;\r
+       unsigned long  LCCR;\r
+       unsigned long  CNDCR;\r
+       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
+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
+       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_exdmac0 {\r
+//     unsigned long  EDMSAR;\r
+//     unsigned long  EDMDAR;\r
+       void          *EDMSAR;\r
+       void          *EDMDAR;  \r
+       unsigned long  EDMCRA;\r
+       unsigned short EDMCRB;\r
+       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 DACKSEL: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
+       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_exdmac1 {\r
+//     unsigned long  EDMSAR;\r
+//     unsigned long  EDMDAR;\r
+       void          *EDMSAR;\r
+       void          *EDMDAR;  \r
+       unsigned long  EDMCRA;\r
+       unsigned short EDMCRB;\r
+       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 DACKSEL: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
+       char           wk1[4];\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
+       char           wk2[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_gpt {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :8;\r
+                       unsigned char :4;\r
+                       unsigned char CST3:1;\r
+                       unsigned char CST2:1;\r
+                       unsigned char CST1:1;\r
+                       unsigned char CST0:1;\r
+               } BIT;\r
+       } GTSTR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short NFCS3:2;\r
+                       unsigned short NFCS2:2;\r
+                       unsigned short NFCS1:2;\r
+                       unsigned short NFCS0:2;\r
+                       unsigned short NFB3EN:1;\r
+                       unsigned short NFA3EN:1;\r
+                       unsigned short NFB2EN:1;\r
+                       unsigned short NFA2EN:1;\r
+                       unsigned short NFB1EN:1;\r
+                       unsigned short NFA1EN:1;\r
+                       unsigned short NFB0EN:1;\r
+                       unsigned short NFA0EN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char CPHW3:2;\r
+                       unsigned char CPHW2:2;\r
+                       unsigned char CPHW1:2;\r
+                       unsigned char CPHW0:2;\r
+                       unsigned char CSHW3:2;\r
+                       unsigned char CSHW2:2;\r
+                       unsigned char CSHW1:2;\r
+                       unsigned char CSHW0:2;\r
+               } BIT;\r
+       } GTHSCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char CCSW3:1;\r
+                       unsigned char CCSW2:1;\r
+                       unsigned char CCSW1:1;\r
+                       unsigned char CCSW0:1;\r
+                       unsigned char CCHW3:2;\r
+                       unsigned char CCHW2:2;\r
+                       unsigned char CCHW1:2;\r
+                       unsigned char CCHW0:2;\r
+               } BIT;\r
+       } GTHCCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char CSHSL3:4;\r
+                       unsigned char CSHSL2:4;\r
+                       unsigned char CSHSL1:4;\r
+                       unsigned char CSHSL0:4;\r
+               } BIT;\r
+       } GTHSSR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char CSHPL3:4;\r
+                       unsigned char CSHPL2:4;\r
+                       unsigned char CSHPL1:4;\r
+                       unsigned char CSHPL0:4;\r
+               } BIT;\r
+       } GTHPSR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :8;\r
+                       unsigned char :4;\r
+                       unsigned char WP3:1;\r
+                       unsigned char WP2:1;\r
+                       unsigned char WP1:1;\r
+                       unsigned char WP0:1;\r
+               } BIT;\r
+       } GTWP;\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 SYNC3:2;\r
+                       unsigned char :2;\r
+                       unsigned char SYNC2:2;\r
+                       unsigned char :2;\r
+                       unsigned char SYNC1:2;\r
+                       unsigned char :2;\r
+                       unsigned char SYNC0:2;\r
+               } BIT;\r
+       } GTSYNC;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char GTETRGEN:1;\r
+                       unsigned char GTENFCS:2;\r
+                       unsigned char :3;\r
+                       unsigned char ETINF:1;\r
+                       unsigned char ETIPF:1;\r
+                       unsigned char :6;\r
+                       unsigned char ETINEN:1;\r
+                       unsigned char ETIPEN:1;\r
+               } BIT;\r
+       } GTETINT;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char BD33:1;\r
+                       unsigned char BD32:1;\r
+                       unsigned char BD31:1;\r
+                       unsigned char BD30:1;\r
+                       unsigned char BD23:1;\r
+                       unsigned char BD22:1;\r
+                       unsigned char BD21:1;\r
+                       unsigned char BD20:1;\r
+                       unsigned char BD13:1;\r
+                       unsigned char BD12:1;\r
+                       unsigned char BD11:1;\r
+                       unsigned char BD10:1;\r
+                       unsigned char BD03:1;\r
+                       unsigned char BD02:1;\r
+                       unsigned char BD01:1;\r
+                       unsigned char BD00:1;\r
+               } BIT;\r
+       } GTBDR;\r
+       char           wk1[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :8;\r
+                       unsigned char :4;\r
+                       unsigned char SWP3:1;\r
+                       unsigned char SWP2:1;\r
+                       unsigned char SWP1:1;\r
+                       unsigned char SWP0:1;\r
+               } BIT;\r
+       } GTSWP;\r
+};\r
+\r
+struct st_gpt0 {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char OBHLD:1;\r
+                       unsigned char OBDFLT:1;\r
+                       unsigned char GTIOB:6;\r
+                       unsigned char OAHLD:1;\r
+                       unsigned char OADFLT:1;\r
+                       unsigned char GTIOA:6;\r
+               } BIT;\r
+       } GTIOR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char ADTRBDEN:1;\r
+                       unsigned char ADTRBUEN:1;\r
+                       unsigned char ADTRADEN:1;\r
+                       unsigned char ADTRAUEN:1;\r
+                       unsigned char EINT:1;\r
+                       unsigned char :3;\r
+                       unsigned char GTINTPR:2;\r
+                       unsigned char GTINTF:1;\r
+                       unsigned char GTINTE:1;\r
+                       unsigned char GTINTD:1;\r
+                       unsigned char GTINTC:1;\r
+                       unsigned char GTINTB:1;\r
+                       unsigned char GTINTA:1;\r
+               } BIT;\r
+       } GTINTAD;\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 CCLR:2;\r
+                       unsigned char :2;\r
+                       unsigned char TPCS:2;\r
+                       unsigned char :5;\r
+                       unsigned char MD:3;\r
+               } BIT;\r
+       } GTCR;\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 ADTDB:1;\r
+                       unsigned char ADTTB:2;\r
+                       unsigned char :1;\r
+                       unsigned char ADTDA:1;\r
+                       unsigned char ADTTA:2;\r
+                       unsigned char :1;\r
+                       unsigned char CCRSWT:1;\r
+                       unsigned char PR:2;\r
+                       unsigned char CCRB:2;\r
+                       unsigned char CCRA:2;\r
+               } BIT;\r
+       } GTBER;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :8;\r
+                       unsigned char :6;\r
+                       unsigned char UDF:1;\r
+                       unsigned char UD:1;\r
+               } BIT;\r
+       } GTUDC;\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 ADTBL:1;\r
+                       unsigned char :1;\r
+                       unsigned char ADTAL:1;\r
+                       unsigned char :1;\r
+                       unsigned char IVTT:3;\r
+                       unsigned char IVTC:2;\r
+                       unsigned char ITLF:1;\r
+                       unsigned char ITLE:1;\r
+                       unsigned char ITLD:1;\r
+                       unsigned char ITLC:1;\r
+                       unsigned char ITLB:1;\r
+                       unsigned char ITLA:1;\r
+               } BIT;\r
+       } GTITC;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char TUCF:1;\r
+                       unsigned char :3;\r
+                       unsigned char DTEF:1;\r
+                       unsigned char ITCNT:3;\r
+                       unsigned char TCFPU:1;\r
+                       unsigned char TCFPO:1;\r
+                       unsigned char TCFF:1;\r
+                       unsigned char TCFE:1;\r
+                       unsigned char TCFD:1;\r
+                       unsigned char TCFC:1;\r
+                       unsigned char TCFB:1;\r
+                       unsigned char TCFA:1;\r
+               } BIT;\r
+       } GTST;\r
+       unsigned short GTCNT;\r
+       unsigned short GTCCRA;\r
+       unsigned short GTCCRB;\r
+       unsigned short GTCCRC;\r
+       unsigned short GTCCRD;\r
+       unsigned short GTCCRE;\r
+       unsigned short GTCCRF;\r
+       unsigned short GTPR;\r
+       unsigned short GTPBR;\r
+       unsigned short GTPDBR;\r
+       char           wk0[2];\r
+       unsigned short GTADTRA;\r
+       unsigned short GTADTBRA;\r
+       unsigned short GTADTDBRA;\r
+       char           wk1[2];\r
+       unsigned short GTADTRB;\r
+       unsigned short GTADTBRB;\r
+       unsigned short GTADTDBRB;\r
+       char           wk2[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short OBE:1;\r
+                       unsigned short OAE:1;\r
+                       unsigned short :1;\r
+                       unsigned short SWN:1;\r
+                       unsigned short :3;\r
+                       unsigned short NFV:1;\r
+                       unsigned short NFS:4;\r
+                       unsigned short NVB:1;\r
+                       unsigned short NVA:1;\r
+                       unsigned short NEB:1;\r
+                       unsigned short NEA:1;\r
+               } BIT;\r
+       } GTONCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :7;\r
+                       unsigned short TDFER:1;\r
+                       unsigned short :2;\r
+                       unsigned short TDBDE:1;\r
+                       unsigned short TDBUE:1;\r
+                       unsigned short :3;\r
+                       unsigned short TDE:1;\r
+               } BIT;\r
+       } GTDTCR;\r
+       unsigned short GTDVU;\r
+       unsigned short GTDVD;\r
+       unsigned short GTDBU;\r
+       unsigned short GTDBD;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :14;\r
+                       unsigned short SOS:2;\r
+               } BIT;\r
+       } GTSOS;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short SOTR:1;\r
+               } BIT;\r
+       } GTSOTR;\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[256];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char DTCE:1;\r
+               } BIT;\r
+       } DTCER[256];\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
+       char           wk0[192];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char SWINT:1;\r
+               } BIT;\r
+       } SWINTR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char SWINT2:1;\r
+               } BIT;\r
+       } SWINT2R;\r
+       char           wk1[14];\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
+       char           wk2[14];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char IPR:4;\r
+               } BIT;\r
+       } IPR[256];\r
+       unsigned char  DMRSR0;\r
+       char           wk3[3];\r
+       unsigned char  DMRSR1;\r
+       char           wk4[3];\r
+       unsigned char  DMRSR2;\r
+       char           wk5[3];\r
+       unsigned char  DMRSR3;\r
+       char           wk6[3];\r
+       unsigned char  DMRSR4;\r
+       char           wk7[3];\r
+       unsigned char  DMRSR5;\r
+       char           wk8[3];\r
+       unsigned char  DMRSR6;\r
+       char           wk9[3];\r
+       unsigned char  DMRSR7;\r
+       char           wk10[227];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR0;\r
+//     char           wk3[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR1;\r
+//     char           wk4[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR2;\r
+//     char           wk5[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR3;\r
+//     char           wk6[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR4;\r
+//     char           wk7[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR5;\r
+//     char           wk8[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR6;\r
+//     char           wk9[3];\r
+//     union {\r
+//             unsigned char BYTE;\r
+//             struct {\r
+//                     unsigned char DMRS:8;\r
+//             } BIT;\r
+//     } DMRSR7;\r
+//     char           wk10[227];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char IRQMD:2;\r
+               } BIT;\r
+       } IRQCR[16];\r
+       char           wk11[16];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char FLTEN7:1;\r
+                       unsigned char FLTEN6:1;\r
+                       unsigned char FLTEN5:1;\r
+                       unsigned char FLTEN4:1;\r
+                       unsigned char FLTEN3:1;\r
+                       unsigned char FLTEN2:1;\r
+                       unsigned char FLTEN1:1;\r
+                       unsigned char FLTEN0:1;\r
+               } BIT;\r
+       } IRQFLTE0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char FLTEN15:1;\r
+                       unsigned char FLTEN14:1;\r
+                       unsigned char FLTEN13:1;\r
+                       unsigned char FLTEN12:1;\r
+                       unsigned char FLTEN11:1;\r
+                       unsigned char FLTEN10:1;\r
+                       unsigned char FLTEN9:1;\r
+                       unsigned char FLTEN8:1;\r
+               } BIT;\r
+       } IRQFLTE1;\r
+       char           wk12[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short FCLKSEL7:2;\r
+                       unsigned short FCLKSEL6:2;\r
+                       unsigned short FCLKSEL5:2;\r
+                       unsigned short FCLKSEL4:2;\r
+                       unsigned short FCLKSEL3:2;\r
+                       unsigned short FCLKSEL2:2;\r
+                       unsigned short FCLKSEL1:2;\r
+                       unsigned short FCLKSEL0:2;\r
+               } BIT;\r
+       } IRQFLTC0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short FCLKSEL15:2;\r
+                       unsigned short FCLKSEL14:2;\r
+                       unsigned short FCLKSEL13:2;\r
+                       unsigned short FCLKSEL12:2;\r
+                       unsigned short FCLKSEL11:2;\r
+                       unsigned short FCLKSEL10:2;\r
+                       unsigned short FCLKSEL9:2;\r
+                       unsigned short FCLKSEL8:2;\r
+               } BIT;\r
+       } IRQFLTC1;\r
+       char           wk13[84];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ECCRAMST:1;\r
+                       unsigned char LVD2ST:1;\r
+                       unsigned char LVD1ST:1;\r
+                       unsigned char IWDTST:1;\r
+                       unsigned char WDTST:1;\r
+                       unsigned char OSTST:1;\r
+                       unsigned char NMIST:1;\r
+               } BIT;\r
+       } NMISR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ECCRAMEN:1;\r
+                       unsigned char LVD2EN:1;\r
+                       unsigned char LVD1EN:1;\r
+                       unsigned char IWDTEN:1;\r
+                       unsigned char WDTEN:1;\r
+                       unsigned char OSTEN:1;\r
+                       unsigned char NMIEN:1;\r
+               } BIT;\r
+       } NMIER;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ECCRAMCLR:1;\r
+                       unsigned char LVD2CLR:1;\r
+                       unsigned char LVD1CLR:1;\r
+                       unsigned char IWDTCLR:1;\r
+                       unsigned char WDTCLR:1;\r
+                       unsigned char OSTCLR: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
+               } BIT;\r
+       } NMICR;\r
+       char           wk14[12];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char NFLTEN:1;\r
+               } BIT;\r
+       } NMIFLTE;\r
+       char           wk15[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char NFCLKSEL:2;\r
+               } BIT;\r
+       } NMIFLTC;\r
+       char           wk16[107];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPBE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPBE1;\r
+       char           wk17[40];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPBL0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPBL1;\r
+       char           wk18[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENBE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENBE1;\r
+       char           wk19[40];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENBL0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENBL1;\r
+       char           wk20[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CLR31:1;\r
+                       unsigned long CLR30:1;\r
+                       unsigned long CLR29:1;\r
+                       unsigned long CLR28:1;\r
+                       unsigned long CLR27:1;\r
+                       unsigned long CLR26:1;\r
+                       unsigned long CLR25:1;\r
+                       unsigned long CLR24:1;\r
+                       unsigned long CLR23:1;\r
+                       unsigned long CLR22:1;\r
+                       unsigned long CLR21:1;\r
+                       unsigned long CLR20:1;\r
+                       unsigned long CLR19:1;\r
+                       unsigned long CLR18:1;\r
+                       unsigned long CLR17:1;\r
+                       unsigned long CLR16:1;\r
+                       unsigned long CLR15:1;\r
+                       unsigned long CLR14:1;\r
+                       unsigned long CLR13:1;\r
+                       unsigned long CLR12:1;\r
+                       unsigned long CLR11:1;\r
+                       unsigned long CLR10:1;\r
+                       unsigned long CLR9:1;\r
+                       unsigned long CLR8:1;\r
+                       unsigned long CLR7:1;\r
+                       unsigned long CLR6:1;\r
+                       unsigned long CLR5:1;\r
+                       unsigned long CLR4:1;\r
+                       unsigned long CLR3:1;\r
+                       unsigned long CLR2:1;\r
+                       unsigned long CLR1:1;\r
+                       unsigned long CLR0:1;\r
+               } BIT;\r
+       } GCREBE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CLR31:1;\r
+                       unsigned long CLR30:1;\r
+                       unsigned long CLR29:1;\r
+                       unsigned long CLR28:1;\r
+                       unsigned long CLR27:1;\r
+                       unsigned long CLR26:1;\r
+                       unsigned long CLR25:1;\r
+                       unsigned long CLR24:1;\r
+                       unsigned long CLR23:1;\r
+                       unsigned long CLR22:1;\r
+                       unsigned long CLR21:1;\r
+                       unsigned long CLR20:1;\r
+                       unsigned long CLR19:1;\r
+                       unsigned long CLR18:1;\r
+                       unsigned long CLR17:1;\r
+                       unsigned long CLR16:1;\r
+                       unsigned long CLR15:1;\r
+                       unsigned long CLR14:1;\r
+                       unsigned long CLR13:1;\r
+                       unsigned long CLR12:1;\r
+                       unsigned long CLR11:1;\r
+                       unsigned long CLR10:1;\r
+                       unsigned long CLR9:1;\r
+                       unsigned long CLR8:1;\r
+                       unsigned long CLR7:1;\r
+                       unsigned long CLR6:1;\r
+                       unsigned long CLR5:1;\r
+                       unsigned long CLR4:1;\r
+                       unsigned long CLR3:1;\r
+                       unsigned long CLR2:1;\r
+                       unsigned long CLR1:1;\r
+                       unsigned long CLR0:1;\r
+               } BIT;\r
+       } GCREBE1;\r
+       char           wk21[120];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR4;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR5;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR6;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR7;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR8;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBR9;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIBRA;\r
+       char           wk22[117];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR128;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR129;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR130;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR131;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR132;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR133;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR134;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR135;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR136;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR137;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR138;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR139;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR140;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR141;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR142;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBXR143;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR144;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR145;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR146;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR147;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR148;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR149;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR150;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR151;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR152;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR153;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR154;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR155;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR156;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR157;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR158;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR159;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR160;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR161;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR162;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR163;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR164;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR165;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR166;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR167;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR168;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR169;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR170;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR171;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR172;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR173;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR174;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR175;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR176;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR177;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR178;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR179;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR180;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR181;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR182;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR183;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR184;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR185;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR186;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR187;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR188;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR189;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR190;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR191;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR192;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR193;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR194;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR195;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR196;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR197;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR198;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR199;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR200;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR201;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR202;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR203;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR204;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR205;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR206;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIBR207;\r
+       char           wk23[48];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPAE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPAE1;\r
+       char           wk24[40];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPAL0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long IS31:1;\r
+                       unsigned long IS30:1;\r
+                       unsigned long IS29:1;\r
+                       unsigned long IS28:1;\r
+                       unsigned long IS27:1;\r
+                       unsigned long IS26:1;\r
+                       unsigned long IS25:1;\r
+                       unsigned long IS24:1;\r
+                       unsigned long IS23:1;\r
+                       unsigned long IS22:1;\r
+                       unsigned long IS21:1;\r
+                       unsigned long IS20:1;\r
+                       unsigned long IS19:1;\r
+                       unsigned long IS18:1;\r
+                       unsigned long IS17:1;\r
+                       unsigned long IS16:1;\r
+                       unsigned long IS15:1;\r
+                       unsigned long IS14:1;\r
+                       unsigned long IS13:1;\r
+                       unsigned long IS12:1;\r
+                       unsigned long IS11:1;\r
+                       unsigned long IS10:1;\r
+                       unsigned long IS9:1;\r
+                       unsigned long IS8:1;\r
+                       unsigned long IS7:1;\r
+                       unsigned long IS6:1;\r
+                       unsigned long IS5:1;\r
+                       unsigned long IS4:1;\r
+                       unsigned long IS3:1;\r
+                       unsigned long IS2:1;\r
+                       unsigned long IS1:1;\r
+                       unsigned long IS0:1;\r
+               } BIT;\r
+       } GRPAL1;\r
+       char           wk25[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENAE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENAE1;\r
+       char           wk26[40];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENAL0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long EN31:1;\r
+                       unsigned long EN30:1;\r
+                       unsigned long EN29:1;\r
+                       unsigned long EN28:1;\r
+                       unsigned long EN27:1;\r
+                       unsigned long EN26:1;\r
+                       unsigned long EN25:1;\r
+                       unsigned long EN24:1;\r
+                       unsigned long EN23:1;\r
+                       unsigned long EN22:1;\r
+                       unsigned long EN21:1;\r
+                       unsigned long EN20:1;\r
+                       unsigned long EN19:1;\r
+                       unsigned long EN18:1;\r
+                       unsigned long EN17:1;\r
+                       unsigned long EN16:1;\r
+                       unsigned long EN15:1;\r
+                       unsigned long EN14:1;\r
+                       unsigned long EN13:1;\r
+                       unsigned long EN12:1;\r
+                       unsigned long EN11:1;\r
+                       unsigned long EN10:1;\r
+                       unsigned long EN9:1;\r
+                       unsigned long EN8:1;\r
+                       unsigned long EN7:1;\r
+                       unsigned long EN6:1;\r
+                       unsigned long EN5:1;\r
+                       unsigned long EN4:1;\r
+                       unsigned long EN3:1;\r
+                       unsigned long EN2:1;\r
+                       unsigned long EN1:1;\r
+                       unsigned long EN0:1;\r
+               } BIT;\r
+       } GENAL1;\r
+       char           wk27[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CLR31:1;\r
+                       unsigned long CLR30:1;\r
+                       unsigned long CLR29:1;\r
+                       unsigned long CLR28:1;\r
+                       unsigned long CLR27:1;\r
+                       unsigned long CLR26:1;\r
+                       unsigned long CLR25:1;\r
+                       unsigned long CLR24:1;\r
+                       unsigned long CLR23:1;\r
+                       unsigned long CLR22:1;\r
+                       unsigned long CLR21:1;\r
+                       unsigned long CLR20:1;\r
+                       unsigned long CLR19:1;\r
+                       unsigned long CLR18:1;\r
+                       unsigned long CLR17:1;\r
+                       unsigned long CLR16:1;\r
+                       unsigned long CLR15:1;\r
+                       unsigned long CLR14:1;\r
+                       unsigned long CLR13:1;\r
+                       unsigned long CLR12:1;\r
+                       unsigned long CLR11:1;\r
+                       unsigned long CLR10:1;\r
+                       unsigned long CLR9:1;\r
+                       unsigned long CLR8:1;\r
+                       unsigned long CLR7:1;\r
+                       unsigned long CLR6:1;\r
+                       unsigned long CLR5:1;\r
+                       unsigned long CLR4:1;\r
+                       unsigned long CLR3:1;\r
+                       unsigned long CLR2:1;\r
+                       unsigned long CLR1:1;\r
+                       unsigned long CLR0:1;\r
+               } BIT;\r
+       } GCREAE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CLR31:1;\r
+                       unsigned long CLR30:1;\r
+                       unsigned long CLR29:1;\r
+                       unsigned long CLR28:1;\r
+                       unsigned long CLR27:1;\r
+                       unsigned long CLR26:1;\r
+                       unsigned long CLR25:1;\r
+                       unsigned long CLR24:1;\r
+                       unsigned long CLR23:1;\r
+                       unsigned long CLR22:1;\r
+                       unsigned long CLR21:1;\r
+                       unsigned long CLR20:1;\r
+                       unsigned long CLR19:1;\r
+                       unsigned long CLR18:1;\r
+                       unsigned long CLR17:1;\r
+                       unsigned long CLR16:1;\r
+                       unsigned long CLR15:1;\r
+                       unsigned long CLR14:1;\r
+                       unsigned long CLR13:1;\r
+                       unsigned long CLR12:1;\r
+                       unsigned long CLR11:1;\r
+                       unsigned long CLR10:1;\r
+                       unsigned long CLR9:1;\r
+                       unsigned long CLR8:1;\r
+                       unsigned long CLR7:1;\r
+                       unsigned long CLR6:1;\r
+                       unsigned long CLR5:1;\r
+                       unsigned long CLR4:1;\r
+                       unsigned long CLR3:1;\r
+                       unsigned long CLR2:1;\r
+                       unsigned long CLR1:1;\r
+                       unsigned long CLR0:1;\r
+               } BIT;\r
+       } GCREAE1;\r
+       char           wk28[120];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR4;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR5;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR6;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR7;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR8;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIAR9;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIARA;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIR7:1;\r
+                       unsigned char PIR6:1;\r
+                       unsigned char PIR5:1;\r
+                       unsigned char PIR4:1;\r
+                       unsigned char PIR3:1;\r
+                       unsigned char PIR2:1;\r
+                       unsigned char PIR1:1;\r
+                       unsigned char PIR0:1;\r
+               } BIT;\r
+       } PIARB;\r
+       char           wk29[196];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR208;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR209;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR210;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR211;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR212;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR213;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR214;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR215;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR216;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR217;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR218;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR219;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR220;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR221;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR222;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR223;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR224;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR225;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR226;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR227;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR228;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR229;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR230;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR231;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR232;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR233;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR234;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR235;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR236;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR237;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR238;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR239;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR240;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR241;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR242;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR243;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR244;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR245;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR246;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR247;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR248;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR249;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR250;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR251;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR252;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR253;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR254;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLI:8;\r
+               } BIT;\r
+       } SLIAR255;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char WPRC:1;\r
+               } BIT;\r
+       } SLIPRCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char SELEXD1:1;\r
+                       unsigned char SELEXD0:1;\r
+               } BIT;\r
+       } SELEXDR;\r
+};\r
+\r
+struct st_iwdt {\r
+       unsigned char  IWDTRR;\r
+       char           wk0[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short RPSS:2;\r
+                       unsigned short :2;\r
+                       unsigned short RPES:2;\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 REFEF:1;\r
+                       unsigned short UNDFF:1;\r
+                       unsigned short CNTVAL:14;\r
+               } BIT;\r
+       } IWDTSR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char RSTIRQS:1;\r
+               } BIT;\r
+       } IWDTRCR;\r
+       char           wk1[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SLCSTP:1;\r
+               } BIT;\r
+       } IWDTCSTPR;\r
+};\r
+\r
+struct st_mmc {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :1;\r
+                       unsigned long BOOT:1;\r
+                       unsigned long CMD:6;\r
+                       unsigned long RTYP:2;\r
+                       unsigned long RBSY:1;\r
+                       unsigned long :1;\r
+                       unsigned long WDAT:1;\r
+                       unsigned long DWEN:1;\r
+                       unsigned long CMLTE:1;\r
+                       unsigned long CMD12EN:1;\r
+                       unsigned long RIDXC:2;\r
+                       unsigned long RCRC7C:2;\r
+                       unsigned long :1;\r
+                       unsigned long CRC16C:1;\r
+                       unsigned long BOOTACK:1;\r
+                       unsigned long CRCSTE:1;\r
+                       unsigned long TBIT:1;\r
+                       unsigned long OPDM:1;\r
+                       unsigned long :2;\r
+                       unsigned long SBIT:1;\r
+                       unsigned long :1;\r
+                       unsigned long DATW:2;\r
+               } BIT;\r
+       } CECMDSET;\r
+       char           wk0[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long ARG:32;\r
+               } BIT;\r
+       } CEARG;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long C12ARG:32;\r
+               } BIT;\r
+       } CEARGCMD12;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long BREAK:1;\r
+               } BIT;\r
+       } CECMDCTRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long BLKCNT:16;\r
+                       unsigned long BLKSZ:16;\r
+               } BIT;\r
+       } CEBLOCKSET;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long MMCBUSBSY:1;\r
+                       unsigned long :6;\r
+                       unsigned long CLKEN:1;\r
+                       unsigned long :4;\r
+                       unsigned long CLKDIV:4;\r
+                       unsigned long :2;\r
+                       unsigned long SRSTPO:2;\r
+                       unsigned long SRBSYTO:4;\r
+                       unsigned long SRWDTO:4;\r
+               } BIT;\r
+       } CECLKCTRL;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :5;\r
+                       unsigned long DMATYP:1;\r
+                       unsigned long DMAWEN:1;\r
+                       unsigned long DMAREN:1;\r
+                       unsigned long :7;\r
+                       unsigned long ATYP:1;\r
+               } BIT;\r
+       } CEBUFACC;\r
+       unsigned long  CERESP3;\r
+       unsigned long  CERESP2;\r
+       unsigned long  CERESP1;\r
+       unsigned long  CERESP0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSP12:32;\r
+               } BIT;\r
+       } CERESPCMD12;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long DATA:32;\r
+               } BIT;\r
+       } CEDATA;\r
+       char           wk1[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long SBTCLKDIV:4;\r
+                       unsigned long SBTACKTO:4;\r
+                       unsigned long S1STBTDATTO:4;\r
+                       unsigned long SBTDATTO:4;\r
+               } BIT;\r
+       } CEBOOT;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :5;\r
+                       unsigned long CMD12DRE:1;\r
+                       unsigned long CMD12RBE:1;\r
+                       unsigned long CMD12CRE:1;\r
+                       unsigned long DTRANE:1;\r
+                       unsigned long BUFRE:1;\r
+                       unsigned long BUFWEN:1;\r
+                       unsigned long BUFREN:1;\r
+                       unsigned long :2;\r
+                       unsigned long RBSYE:1;\r
+                       unsigned long CRSPE:1;\r
+                       unsigned long CMDVIO:1;\r
+                       unsigned long BUFVIO:1;\r
+                       unsigned long :2;\r
+                       unsigned long WDATERR:1;\r
+                       unsigned long RDATERR:1;\r
+                       unsigned long RIDXERR:1;\r
+                       unsigned long RSPERR:1;\r
+                       unsigned long :3;\r
+                       unsigned long CRCSTO:1;\r
+                       unsigned long WDATTO:1;\r
+                       unsigned long RDATTO:1;\r
+                       unsigned long RBSYTO:1;\r
+                       unsigned long RSPTO:1;\r
+               } BIT;\r
+       } CEINT;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :5;\r
+                       unsigned long MCMD12DRE:1;\r
+                       unsigned long MCMD12RBE:1;\r
+                       unsigned long MCMD12CRE:1;\r
+                       unsigned long MDTRANE:1;\r
+                       unsigned long MBUFRE:1;\r
+                       unsigned long MBUFWEN:1;\r
+                       unsigned long MBUFREN:1;\r
+                       unsigned long :2;\r
+                       unsigned long MRBSYE:1;\r
+                       unsigned long MCRSPE:1;\r
+                       unsigned long MCMDVIO:1;\r
+                       unsigned long MBUFVIO:1;\r
+                       unsigned long :2;\r
+                       unsigned long MWDATERR:1;\r
+                       unsigned long MRDATERR:1;\r
+                       unsigned long MRIDXERR:1;\r
+                       unsigned long MRSPERR:1;\r
+                       unsigned long :3;\r
+                       unsigned long MCRCSTO:1;\r
+                       unsigned long MWDATTO:1;\r
+                       unsigned long MRDATTO:1;\r
+                       unsigned long MRBSYTO:1;\r
+                       unsigned long MRSPTO:1;\r
+               } BIT;\r
+       } CEINTEN;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CMDSEQ:1;\r
+                       unsigned long CMDSIG:1;\r
+                       unsigned long RSPIDX:6;\r
+                       unsigned long DATSIG:8;\r
+                       unsigned long RCVBLK:16;\r
+               } BIT;\r
+       } CEHOSTSTS1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long CRCSTE:1;\r
+                       unsigned long CRC16E:1;\r
+                       unsigned long AC12CRCE:1;\r
+                       unsigned long RSPCRC7E:1;\r
+                       unsigned long CRCSTEBE:1;\r
+                       unsigned long RDATEBE:1;\r
+                       unsigned long AC12REBE:1;\r
+                       unsigned long RSPEBE:1;\r
+                       unsigned long AC12IDXE:1;\r
+                       unsigned long RSPIDXE:1;\r
+                       unsigned long BTACKPATE:1;\r
+                       unsigned long BTACKEBE:1;\r
+                       unsigned long :1;\r
+                       unsigned long CRCST:3;\r
+                       unsigned long :1;\r
+                       unsigned long STRDATTO:1;\r
+                       unsigned long DATBSYTO:1;\r
+                       unsigned long CRCSTTO:1;\r
+                       unsigned long AC12BSYTO:1;\r
+                       unsigned long RSPBSYTO:1;\r
+                       unsigned long AC12RSPTO:1;\r
+                       unsigned long STRSPTO:1;\r
+                       unsigned long BTACKTO:1;\r
+                       unsigned long STBTDATTO:1;\r
+                       unsigned long BTDATTO:1;\r
+               } BIT;\r
+       } CEHOSTSTS2;\r
+       char           wk2[32];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :17;\r
+                       unsigned long CDSIG:1;\r
+                       unsigned long CDRISE:1;\r
+                       unsigned long CDFALL:1;\r
+                       unsigned long :6;\r
+                       unsigned long MCDRISE:1;\r
+                       unsigned long MCDFALL:1;\r
+               } BIT;\r
+       } CEDETECT;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :10;\r
+                       unsigned long RESNOUT:1;\r
+                       unsigned long :1;\r
+                       unsigned long CLKMAIN:1;\r
+               } BIT;\r
+       } CEADDMODE;\r
+       char           wk3[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long SWRST:1;\r
+                       unsigned long :15;\r
+                       unsigned long VERSION:16;\r
+               } BIT;\r
+       } CEVERSION;\r
+};\r
+\r
+struct st_mpc {\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
+       } PFCSE;\r
+       char           wk0[1];\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
+       } PFCSS0;\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
+       } PFCSS1;\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 A9E:1;\r
+                       unsigned char A8E:1;\r
+               } BIT;\r
+       } PFAOE0;\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
+       } PFAOE1;\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 BCLKO:1;\r
+                       unsigned char :1;\r
+                       unsigned char ADRHMS:1;\r
+                       unsigned char ADRLE:1;\r
+               } BIT;\r
+       } PFBCR0;\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 ALES:1;\r
+                       unsigned char ALEOE:1;\r
+                       unsigned char WAITS:2;\r
+               } BIT;\r
+       } PFBCR1;\r
+       char           wk1[6];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PHYMODE1:1;\r
+                       unsigned char PHYMODE0:1;\r
+               } BIT;\r
+       } PFENET;\r
+       char           wk2[16];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B0WI:1;\r
+                       unsigned char PFSWE:1;\r
+               } BIT;\r
+       } PWPR;\r
+       char           wk3[32];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P00PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P01PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P02PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P03PFS;\r
+       char           wk4[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P05PFS;\r
+       char           wk5[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P07PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P10PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P11PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P12PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P13PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P14PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P15PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P16PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P17PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P20PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P21PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P22PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P23PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P24PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P25PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P26PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P27PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P30PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P31PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P32PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P33PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P34PFS;\r
+       char           wk6[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P40PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P41PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P42PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P43PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P44PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P45PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P46PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+               } BIT;\r
+       } P47PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P50PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P51PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P52PFS;\r
+       char           wk7[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P54PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P55PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P56PFS;\r
+       char           wk8[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P60PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P61PFS;\r
+       char           wk9[4];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P66PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P67PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P70PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P71PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P72PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P73PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P74PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P75PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P76PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P77PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P80PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P81PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P82PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P83PFS;\r
+       char           wk10[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P86PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P87PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P90PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P91PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P92PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P93PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P94PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P95PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P96PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char :1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } P97PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA2PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA3PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA4PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA5PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA6PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PA7PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB2PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB3PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB4PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB5PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB6PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PB7PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC2PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC3PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC4PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC5PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC6PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PC7PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD2PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD3PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD4PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD5PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD6PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PD7PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE2PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE3PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE4PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE5PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE6PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ASEL:1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PE7PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PF0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PF1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PF2PFS;\r
+       char           wk11[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char ISEL:1;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PF5PFS;\r
+       char           wk12[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG0PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG1PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG2PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG3PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG4PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG5PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG6PFS;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PG7PFS;\r
+       char           wk13[11];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PJ3PFS;\r
+       char           wk14[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char PSEL:6;\r
+               } BIT;\r
+       } PJ5PFS;\r
+};\r
+\r
+struct st_mpu {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE2;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE2;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE3;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE3;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE4;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE4;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE5;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE5;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE6;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE6;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long RSPN:28;\r
+               } BIT;\r
+       } RSPAGE7;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long REPN:28;\r
+                       unsigned long UAC:3;\r
+                       unsigned long V:1;\r
+               } BIT;\r
+       } REPAGE7;\r
+       char           wk0[192];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long MPEN:1;\r
+               } BIT;\r
+       } MPEN;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :28;\r
+                       unsigned long UBAC:3;\r
+               } BIT;\r
+       } MPBAC;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long CLR:1;\r
+               } BIT;\r
+       } MPECLR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :29;\r
+                       unsigned long DRW:1;\r
+                       unsigned long DA:1;\r
+                       unsigned long IA:1;\r
+               } BIT;\r
+       } MPESTS;\r
+       char           wk1[4];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long DEA:32;\r
+               } BIT;\r
+       } MPDEA;\r
+       char           wk2[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long SA:32;\r
+               } BIT;\r
+       } MPSA;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short S:1;\r
+               } BIT;\r
+       } MPOPS;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short INV:1;\r
+               } BIT;\r
+       } MPOPI;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long HITI:8;\r
+                       unsigned long :12;\r
+                       unsigned long UHACI:3;\r
+               } BIT;\r
+       } MHITI;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long HITD:8;\r
+                       unsigned long :12;\r
+                       unsigned long UHACD:3;\r
+               } BIT;\r
+       } MHITD;\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
+       } TOERA;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char BDC: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
+       } TGCRA;\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
+       } TOCR1A;\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
+       } TOCR2A;\r
+       char           wk1[4];\r
+       unsigned short TCDRA;\r
+       unsigned short TDDRA;\r
+       char           wk2[8];\r
+       unsigned short TCNTSA;\r
+       unsigned short TCBRA;\r
+       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
+       } TITCR1A;\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
+       } TITCNT1A;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char BTE:2;\r
+               } BIT;\r
+       } TBTERA;\r
+       char           wk4[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TDER:1;\r
+               } BIT;\r
+       } TDERA;\r
+       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
+       } TOLBRA;\r
+       char           wk6[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TITM:1;\r
+               } BIT;\r
+       } TITMRA;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TRG4COR:3;\r
+               } BIT;\r
+       } TITCR2A;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TRG4CNT:3;\r
+               } BIT;\r
+       } TITCNT2A;\r
+       char           wk7[35];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CCE:1;\r
+                       unsigned char :5;\r
+                       unsigned char SCC:1;\r
+                       unsigned char WRE:1;\r
+               } BIT;\r
+       } TWCRA;\r
+       char           wk8[15];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char DRS:1;\r
+               } BIT;\r
+       } TMDR2A;\r
+       char           wk9[15];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CST4:1;\r
+                       unsigned char CST3:1;\r
+                       unsigned char :2;\r
+                       unsigned char CST8:1;\r
+                       unsigned char CST2:1;\r
+                       unsigned char CST1:1;\r
+                       unsigned char CST0:1;\r
+               } BIT;\r
+       } TSTRA;\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
+       } TSYRA;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SCH0:1;\r
+                       unsigned char SCH1:1;\r
+                       unsigned char SCH2:1;\r
+                       unsigned char SCH3:1;\r
+                       unsigned char SCH4:1;\r
+                       unsigned char :1;\r
+                       unsigned char SCH6:1;\r
+                       unsigned char SCH7:1;\r
+               } BIT;\r
+       } TCSYSTR;\r
+       char           wk10[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char RWE:1;\r
+               } BIT;\r
+       } TRWERA;\r
+       char           wk11[1925];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char OE7D:1;\r
+                       unsigned char OE7C:1;\r
+                       unsigned char OE6D:1;\r
+                       unsigned char OE7B:1;\r
+                       unsigned char OE7A:1;\r
+                       unsigned char OE6B:1;\r
+               } BIT;\r
+       } TOERB;\r
+       char           wk12[3];\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
+       } TOCR1B;\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
+       } TOCR2B;\r
+       char           wk13[4];\r
+       unsigned short TCDRB;\r
+       unsigned short TDDRB;\r
+       char           wk14[8];\r
+       unsigned short TCNTSB;\r
+       unsigned short TCBRB;\r
+       char           wk15[12];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char T6AEN:1;\r
+                       unsigned char T6ACOR:3;\r
+                       unsigned char T7VEN:1;\r
+                       unsigned char T7VCOR:3;\r
+               } BIT;\r
+       } TITCR1B;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char T6ACNT:3;\r
+                       unsigned char :1;\r
+                       unsigned char T7VCNT:3;\r
+               } BIT;\r
+       } TITCNT1B;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char BTE:2;\r
+               } BIT;\r
+       } TBTERB;\r
+       char           wk16[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TDER:1;\r
+               } BIT;\r
+       } TDERB;\r
+       char           wk17[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
+       } TOLBRB;\r
+       char           wk18[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TITM:1;\r
+               } BIT;\r
+       } TITMRB;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TRG7COR:3;\r
+               } BIT;\r
+       } TITCR2B;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TRG7CNT:3;\r
+               } BIT;\r
+       } TITCNT2B;\r
+       char           wk19[35];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CCE:1;\r
+                       unsigned char :5;\r
+                       unsigned char SCC:1;\r
+                       unsigned char WRE:1;\r
+               } BIT;\r
+       } TWCRB;\r
+       char           wk20[15];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char DRS:1;\r
+               } BIT;\r
+       } TMDR2B;\r
+       char           wk21[15];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CST7:1;\r
+                       unsigned char CST6:1;\r
+               } BIT;\r
+       } TSTRB;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SYNC7:1;\r
+                       unsigned char SYNC6:1;\r
+               } BIT;\r
+       } TSYRB;\r
+       char           wk22[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char RWE:1;\r
+               } BIT;\r
+       } TRWERB;\r
+};\r
+\r
+struct st_mtu0 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR0;\r
+       char           wk0[8];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCRC;\r
+       char           wk1[102];\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
+       } TMDR1;\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
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+       char           wk2[16];\r
+       unsigned short TGRE;\r
+       unsigned short TGRF;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TTGE2:1;\r
+                       unsigned char :5;\r
+                       unsigned char TGIEF:1;\r
+                       unsigned char TGIEE:1;\r
+               } BIT;\r
+       } TIER2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TGFF:1;\r
+                       unsigned char TGFE:1;\r
+               } BIT;\r
+       } TSR2;\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
+       char           wk3[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+};\r
+\r
+struct st_mtu1 {\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR1;\r
+       char           wk1[238];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char CCLR:2;\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
+       } TMDR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char IOB:4;\r
+                       unsigned char IOA:4;\r
+               } BIT;\r
+       } TIOR;\r
+       char           wk2[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 :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char :2;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       char           wk3[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
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char PHCKSEL:1;\r
+                       unsigned char LWA:1;\r
+               } BIT;\r
+       } TMDR3;\r
+       char           wk4[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char PCB:2;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+       char           wk5[11];\r
+       unsigned long  TCNTLW;\r
+       unsigned long  TGRALW;\r
+       unsigned long  TGRBLW;\r
+};\r
+\r
+struct st_mtu2 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR2;\r
+       char           wk0[365];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char CCLR:2;\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
+       } TMDR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char IOB:4;\r
+                       unsigned char IOA:4;\r
+               } BIT;\r
+       } TIOR;\r
+       char           wk1[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 :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char :2;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char PCB:2;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\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
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char BFB:1;\r
+                       unsigned char BFA:1;\r
+                       unsigned char MD:4;\r
+               } BIT;\r
+       } TMDR1;\r
+       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
+       char           wk2[2];\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
+       char           wk3[7];\r
+       unsigned short TCNT;\r
+       char           wk4[6];\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       char           wk5[8];\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+       char           wk6[4];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCFD:1;\r
+                       unsigned char :2;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       char           wk7[11];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TTSB:1;\r
+                       unsigned char TTSA:1;\r
+               } BIT;\r
+       } TBTM;\r
+       char           wk8[19];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+       char           wk9[37];\r
+       unsigned short TGRE;\r
+       char           wk10[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR3;\r
+};\r
+\r
+struct st_mtu4 {\r
+       char           wk0[1];\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
+       char           wk1[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char BFB:1;\r
+                       unsigned char BFA:1;\r
+                       unsigned char MD:4;\r
+               } BIT;\r
+       } TMDR1;\r
+       char           wk2[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
+       char           wk3[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TTGE:1;\r
+                       unsigned char TTGE2:1;\r
+                       unsigned char :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
+       char           wk4[8];\r
+       unsigned short TCNT;\r
+       char           wk5[8];\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       char           wk6[8];\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+       char           wk7[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCFD:1;\r
+                       unsigned char :2;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       char           wk8[11];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TTSB:1;\r
+                       unsigned char TTSA:1;\r
+               } BIT;\r
+       } TBTM;\r
+       char           wk9[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
+       char           wk10[2];\r
+       unsigned short TADCORA;\r
+       unsigned short TADCORB;\r
+       unsigned short TADCOBRA;\r
+       unsigned short TADCOBRB;\r
+       char           wk11[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+       char           wk12[38];\r
+       unsigned short TGRE;\r
+       unsigned short TGRF;\r
+       char           wk13[28];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR4;\r
+};\r
+\r
+struct st_mtu5 {\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char :1;\r
+                       unsigned char NFWEN:1;\r
+                       unsigned char NFVEN:1;\r
+                       unsigned char NFUEN:1;\r
+               } BIT;\r
+       } NFCR5;\r
+       char           wk1[2538];\r
+       unsigned short TCNTU;\r
+       unsigned short TGRU;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TPSC:2;\r
+               } BIT;\r
+       } TCRU;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char CKEG:2;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2U;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char IOC:5;\r
+               } BIT;\r
+       } TIORU;\r
+       char           wk2[9];\r
+       unsigned short TCNTV;\r
+       unsigned short TGRV;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TPSC:2;\r
+               } BIT;\r
+       } TCRV;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char CKEG:2;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2V;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char IOC:5;\r
+               } BIT;\r
+       } TIORV;\r
+       char           wk3[9];\r
+       unsigned short TCNTW;\r
+       unsigned short TGRW;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TPSC:2;\r
+               } BIT;\r
+       } TCRW;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char CKEG:2;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2W;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char IOC:5;\r
+               } BIT;\r
+       } TIORW;\r
+       char           wk4[9];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char CMFU5:1;\r
+                       unsigned char CMFV5:1;\r
+                       unsigned char CMFW5:1;\r
+               } BIT;\r
+       } TSR;\r
+       char           wk5[1];\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
+       char           wk6[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
+       char           wk7[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_mtu6 {\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR6;\r
+       char           wk1[1884];\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
+       char           wk2[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char BFB:1;\r
+                       unsigned char BFA:1;\r
+                       unsigned char MD:4;\r
+               } BIT;\r
+       } TMDR1;\r
+       char           wk3[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
+       char           wk4[2];\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
+       char           wk5[7];\r
+       unsigned short TCNT;\r
+       char           wk6[6];\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       char           wk7[8];\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+       char           wk8[4];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCFD:1;\r
+                       unsigned char :2;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       char           wk9[11];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TTSB:1;\r
+                       unsigned char TTSA:1;\r
+               } BIT;\r
+       } TBTM;\r
+       char           wk10[19];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+       char           wk11[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CE0A:1;\r
+                       unsigned char CE0B:1;\r
+                       unsigned char CE0C:1;\r
+                       unsigned char CE0D:1;\r
+                       unsigned char CE1A:1;\r
+                       unsigned char CE1B:1;\r
+                       unsigned char CE2A:1;\r
+                       unsigned char CE2B:1;\r
+               } BIT;\r
+       } TSYCR;\r
+       char           wk12[33];\r
+       unsigned short TGRE;\r
+};\r
+\r
+struct st_mtu7 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR7;\r
+       char           wk0[1884];\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
+       char           wk1[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char BFB:1;\r
+                       unsigned char BFA:1;\r
+                       unsigned char MD:4;\r
+               } BIT;\r
+       } TMDR1;\r
+       char           wk2[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
+       char           wk3[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TTGE:1;\r
+                       unsigned char TTGE2:1;\r
+                       unsigned char :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
+       char           wk4[8];\r
+       unsigned short TCNT;\r
+       char           wk5[8];\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       char           wk6[8];\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+       char           wk7[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCFD:1;\r
+                       unsigned char :2;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       char           wk8[11];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char TTSB:1;\r
+                       unsigned char TTSA:1;\r
+               } BIT;\r
+       } TBTM;\r
+       char           wk9[6];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short BF:2;\r
+                       unsigned short :6;\r
+                       unsigned short UT7AE:1;\r
+                       unsigned short DT7AE:1;\r
+                       unsigned short UT7BE:1;\r
+                       unsigned short DT7BE:1;\r
+                       unsigned short ITA6AE:1;\r
+                       unsigned short ITA7VE:1;\r
+                       unsigned short ITB6AE:1;\r
+                       unsigned short ITB7VE:1;\r
+               } BIT;\r
+       } TADCR;\r
+       char           wk10[2];\r
+       unsigned short TADCORA;\r
+       unsigned short TADCORB;\r
+       unsigned short TADCOBRA;\r
+       unsigned short TADCOBRB;\r
+       char           wk11[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+       char           wk12[38];\r
+       unsigned short TGRE;\r
+       unsigned short TGRF;\r
+};\r
+\r
+struct st_mtu8 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR8;\r
+       char           wk0[871];\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 :2;\r
+                       unsigned char BFB:1;\r
+                       unsigned char BFA:1;\r
+                       unsigned char MD:4;\r
+               } BIT;\r
+       } TMDR1;\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 :2;\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
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char PCB:2;\r
+                       unsigned char TPSC2:3;\r
+               } BIT;\r
+       } TCR2;\r
+       char           wk1[1];\r
+       unsigned long  TCNT;\r
+       unsigned long  TGRA;\r
+       unsigned long  TGRB;\r
+       unsigned long  TGRC;\r
+       unsigned long  TGRD;\r
+};\r
+\r
+struct st_pdc {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :17;\r
+                       unsigned long EDS:1;\r
+                       unsigned long PCKDIV:3;\r
+                       unsigned long PCKOE:1;\r
+                       unsigned long HERIE:1;\r
+                       unsigned long VERIE:1;\r
+                       unsigned long UDRIE:1;\r
+                       unsigned long OVIE:1;\r
+                       unsigned long FEIE:1;\r
+                       unsigned long DFIE:1;\r
+                       unsigned long PRST:1;\r
+                       unsigned long HPS:1;\r
+                       unsigned long VPS:1;\r
+                       unsigned long PCKE:1;\r
+               } BIT;\r
+       } PCCR0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :31;\r
+                       unsigned long PCE:1;\r
+               } BIT;\r
+       } PCCR1;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :25;\r
+                       unsigned long HERF:1;\r
+                       unsigned long VERF:1;\r
+                       unsigned long UDRF:1;\r
+                       unsigned long OVRF:1;\r
+                       unsigned long FEF:1;\r
+                       unsigned long FEMPF:1;\r
+                       unsigned long FBSY:1;\r
+               } BIT;\r
+       } PCSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :30;\r
+                       unsigned long HSYNC:1;\r
+                       unsigned long VSYNC:1;\r
+               } BIT;\r
+       } PCMONR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long B31:1;\r
+                       unsigned long B30:1;\r
+                       unsigned long B29:1;\r
+                       unsigned long B28:1;\r
+                       unsigned long B27:1;\r
+                       unsigned long B26:1;\r
+                       unsigned long B25:1;\r
+                       unsigned long B24:1;\r
+                       unsigned long B23:1;\r
+                       unsigned long B22:1;\r
+                       unsigned long B21:1;\r
+                       unsigned long B20:1;\r
+                       unsigned long B19:1;\r
+                       unsigned long B18:1;\r
+                       unsigned long B17:1;\r
+                       unsigned long B16:1;\r
+                       unsigned long B15:1;\r
+                       unsigned long B14:1;\r
+                       unsigned long B13:1;\r
+                       unsigned long B12:1;\r
+                       unsigned long B11:1;\r
+                       unsigned long B10:1;\r
+                       unsigned long B9:1;\r
+                       unsigned long B8:1;\r
+                       unsigned long B7:1;\r
+                       unsigned long B6:1;\r
+                       unsigned long B5:1;\r
+                       unsigned long B4:1;\r
+                       unsigned long B3:1;\r
+                       unsigned long B2:1;\r
+                       unsigned long B1:1;\r
+                       unsigned long B0:1;\r
+               } BIT;\r
+       } PCDR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :4;\r
+                       unsigned long VSZ:12;\r
+                       unsigned long :4;\r
+                       unsigned long VST:12;\r
+               } BIT;\r
+       } VCR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :4;\r
+                       unsigned long HSZ:12;\r
+                       unsigned long :4;\r
+                       unsigned long HST:12;\r
+               } BIT;\r
+       } HCR;\r
+};\r
+\r
+struct st_poe {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char POE0F:1;\r
+                       unsigned char :3;\r
+                       unsigned char PIE1:1;\r
+                       unsigned char :6;\r
+                       unsigned char POE0M:2;\r
+               } BIT;\r
+       } ICSR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char OSF1:1;\r
+                       unsigned char :5;\r
+                       unsigned char OCE1:1;\r
+                       unsigned char OIE1:1;\r
+               } BIT;\r
+       } OCSR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char POE4F:1;\r
+                       unsigned char :3;\r
+                       unsigned char PIE2:1;\r
+                       unsigned char :6;\r
+                       unsigned char POE4M:2;\r
+               } BIT;\r
+       } ICSR2;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char OSF2:1;\r
+                       unsigned char :5;\r
+                       unsigned char OCE2:1;\r
+                       unsigned char OIE2:1;\r
+               } BIT;\r
+       } OCSR2;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char POE8F:1;\r
+                       unsigned char :2;\r
+                       unsigned char POE8E:1;\r
+                       unsigned char PIE3:1;\r
+                       unsigned char :6;\r
+                       unsigned char POE8M:2;\r
+               } BIT;\r
+       } ICSR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char GPT23HIZ:1;\r
+                       unsigned char GPT01HIZ:1;\r
+                       unsigned char MTUCH0HIZ:1;\r
+                       unsigned char MTUCH67HIZ:1;\r
+                       unsigned char MTUCH34HIZ:1;\r
+               } BIT;\r
+       } SPOER;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char MTU0DZE:1;\r
+                       unsigned char MTU0CZE:1;\r
+                       unsigned char MTU0BZE:1;\r
+                       unsigned char MTU0AZE:1;\r
+               } BIT;\r
+       } POECR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :5;\r
+                       unsigned short MTU3BDZE:1;\r
+                       unsigned short MTU4ACZE:1;\r
+                       unsigned short MTU4BDZE:1;\r
+                       unsigned short :5;\r
+                       unsigned short MTU6BDZE:1;\r
+                       unsigned short MTU7ACZE:1;\r
+                       unsigned short MTU7BDZE:1;\r
+               } BIT;\r
+       } POECR2;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short GPT3ABZE:1;\r
+                       unsigned short GPT2ABZE:1;\r
+                       unsigned short :6;\r
+                       unsigned short GPT1ABZE:1;\r
+                       unsigned short GPT0ABZE:1;\r
+               } BIT;\r
+       } POECR3;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short IC5ADDMT67ZE:1;\r
+                       unsigned short IC4ADDMT67ZE:1;\r
+                       unsigned short IC3ADDMT67ZE:1;\r
+                       unsigned short :1;\r
+                       unsigned short IC1ADDMT67ZE:1;\r
+                       unsigned short :3;\r
+                       unsigned short IC5ADDMT34ZE:1;\r
+                       unsigned short IC4ADDMT34ZE:1;\r
+                       unsigned short IC3ADDMT34ZE:1;\r
+                       unsigned short IC2ADDMT34ZE:1;\r
+               } BIT;\r
+       } POECR4;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :10;\r
+                       unsigned short IC5ADDMT0ZE:1;\r
+                       unsigned short IC4ADDMT0ZE:1;\r
+                       unsigned short :1;\r
+                       unsigned short IC2ADDMT0ZE:1;\r
+                       unsigned short IC1ADDMT0ZE:1;\r
+               } BIT;\r
+       } POECR5;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short IC4ADDGPT23ZE:1;\r
+                       unsigned short IC3ADDGPT23ZE:1;\r
+                       unsigned short IC2ADDGPT23Z:1;\r
+                       unsigned short IC1ADDGPT23ZE:1;\r
+                       unsigned short :3;\r
+                       unsigned short IC5ADDGPT01ZE:1;\r
+                       unsigned short :1;\r
+                       unsigned short IC3ADDGPT01ZE:1;\r
+                       unsigned short IC2ADDGPT01Z:1;\r
+                       unsigned short IC1ADDGPT01ZE:1;\r
+               } BIT;\r
+       } POECR6;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char POE10F:1;\r
+                       unsigned char :2;\r
+                       unsigned char POE10E:1;\r
+                       unsigned char PIE4:1;\r
+                       unsigned char :6;\r
+                       unsigned char POE10M:2;\r
+               } BIT;\r
+       } ICSR4;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char POE11F:1;\r
+                       unsigned char :2;\r
+                       unsigned char POE11E:1;\r
+                       unsigned char PIE5:1;\r
+                       unsigned char :6;\r
+                       unsigned char POE11M:2;\r
+               } BIT;\r
+       } ICSR5;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :8;\r
+                       unsigned char OLSEN:1;\r
+                       unsigned char :1;\r
+                       unsigned char OLSG2B:1;\r
+                       unsigned char OLSG2A:1;\r
+                       unsigned char OLSG1B:1;\r
+                       unsigned char OLSG1A:1;\r
+                       unsigned char OLSG0B:1;\r
+                       unsigned char OLSG0A:1;\r
+               } BIT;\r
+       } ALR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned char H;\r
+                       unsigned char L;\r
+               } BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char OSTSTF:1;\r
+                       unsigned char :2;\r
+                       unsigned char OSTSTE:1;\r
+               } BIT;\r
+       } ICSR6;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char G0BSEL:4;\r
+                       unsigned char G0ASEL:4;\r
+               } BIT;\r
+       } G0SELR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char G1BSEL:4;\r
+                       unsigned char G1ASEL:4;\r
+               } BIT;\r
+       } G1SELR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char G2BSEL:4;\r
+                       unsigned char G2ASEL:4;\r
+               } BIT;\r
+       } G2SELR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char G3BSEL:4;\r
+                       unsigned char G3ASEL:4;\r
+               } BIT;\r
+       } G3SELR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char M0BSEL:4;\r
+                       unsigned char M0ASEL:4;\r
+               } BIT;\r
+       } M0SELR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char M0DSEL:4;\r
+                       unsigned char M0CSEL:4;\r
+               } BIT;\r
+       } M0SELR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char M3DSEL:4;\r
+                       unsigned char M3BSEL:4;\r
+               } BIT;\r
+       } M3SELR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char M4CSEL:4;\r
+                       unsigned char M4ASEL:4;\r
+               } BIT;\r
+       } M4SELR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char M4DSEL:4;\r
+                       unsigned char M4BSEL:4;\r
+               } BIT;\r
+       } M4SELR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char M4G2SEL:1;\r
+                       unsigned char M4G1SEL:1;\r
+                       unsigned char M4G0SEL:1;\r
+               } BIT;\r
+       } MGSELR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :3;\r
+                       unsigned char B2:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[62];\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
+       } PCR;\r
+       char           wk5[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char B2:1;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[32];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[61];\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_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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[33];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[60];\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
+       char           wk5[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+               } BIT;\r
+       } DSCR;\r
+};\r
+\r
+struct st_port3 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :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
+       } PDR;\r
+       char           wk0[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[34];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[59];\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_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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[35];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[58];\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_port5 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :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
+       } PDR;\r
+       char           wk0[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :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
+       } PODR;\r
+       char           wk1[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :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
+       } PIDR;\r
+       char           wk2[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :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
+       } PMR;\r
+       char           wk3[36];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[57];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :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
+       char           wk5[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :3;\r
+                       unsigned char B2:1;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[37];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[56];\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_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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[38];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[55];\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_port8 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :2;\r
+                       unsigned char B3:1;\r
+                       unsigned char B2:1;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } PDR;\r
+       char           wk0[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :2;\r
+                       unsigned char B3:1;\r
+                       unsigned char B2:1;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } PODR;\r
+       char           wk1[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :2;\r
+                       unsigned char B3:1;\r
+                       unsigned char B2:1;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } PIDR;\r
+       char           wk2[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :2;\r
+                       unsigned char B3:1;\r
+                       unsigned char B2:1;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } PMR;\r
+       char           wk3[39];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[54];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char B7:1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :2;\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_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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[40];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[53];\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
+       char           wk5[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
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[41];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[52];\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
+       char           wk5[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
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[42];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[51];\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
+       char           wk5[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
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[43];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[50];\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
+       char           wk5[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
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[44];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[49];\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
+       char           wk5[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
+       } DSCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[45];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char B3:1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[48];\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
+       char           wk5[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
+       } DSCR;\r
+};\r
+\r
+struct st_portf {\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[46];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[47];\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
+       } PCR;\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
+       } PDR;\r
+       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
+       } PODR;\r
+       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
+       } PIDR;\r
+       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
+       } PMR;\r
+       char           wk3[47];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+                       unsigned char :1;\r
+                       unsigned char B4:1;\r
+                       unsigned char :1;\r
+                       unsigned char B2:1;\r
+                       unsigned char :1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[46];\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
+       char           wk5[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char B1:1;\r
+                       unsigned char B0:1;\r
+               } BIT;\r
+       } DSCR;\r
+};\r
+\r
+struct st_portj {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char B5:1;\r
+                       unsigned char :1;\r
+                       unsigned char B3:1;\r
+               } BIT;\r
+       } PDR;\r
+       char           wk0[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char B5:1;\r
+                       unsigned char :1;\r
+                       unsigned char B3:1;\r
+               } BIT;\r
+       } PODR;\r
+       char           wk1[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char B5:1;\r
+                       unsigned char :1;\r
+                       unsigned char B3:1;\r
+               } BIT;\r
+       } PIDR;\r
+       char           wk2[31];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char B5:1;\r
+                       unsigned char :1;\r
+                       unsigned char B3:1;\r
+               } BIT;\r
+       } PMR;\r
+       char           wk3[49];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char B6:1;\r
+               } BIT;\r
+       } ODR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char B2:1;\r
+               } BIT;\r
+       } ODR1;\r
+       char           wk4[44];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char B5:1;\r
+                       unsigned char :1;\r
+                       unsigned char B3:1;\r
+               } BIT;\r
+       } PCR;\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
+       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_qspi {\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 :3;\r
+                       unsigned char SPSSLIE:1;\r
+               } BIT;\r
+       } SPCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char SSLP: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 IO3FV:1;\r
+                       unsigned char IO2FV:1;\r
+                       unsigned char SPLP:1;\r
+               } BIT;\r
+       } SPPCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SPRFF:1;\r
+                       unsigned char TREND:1;\r
+                       unsigned char SPTEF:1;\r
+                       unsigned char SPSSLF:1;\r
+               } BIT;\r
+       } SPSR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long SPD31:1;\r
+                       unsigned long SPD30:1;\r
+                       unsigned long SPD29:1;\r
+                       unsigned long SPD28:1;\r
+                       unsigned long SPD27:1;\r
+                       unsigned long SPD26:1;\r
+                       unsigned long SPD25:1;\r
+                       unsigned long SPD24:1;\r
+                       unsigned long SPD23:1;\r
+                       unsigned long SPD22:1;\r
+                       unsigned long SPD21:1;\r
+                       unsigned long SPD20:1;\r
+                       unsigned long SPD19:1;\r
+                       unsigned long SPD18:1;\r
+                       unsigned long SPD17:1;\r
+                       unsigned long SPD16:1;\r
+                       unsigned long SPD15:1;\r
+                       unsigned long SPD14:1;\r
+                       unsigned long SPD13:1;\r
+                       unsigned long SPD12:1;\r
+                       unsigned long SPD11:1;\r
+                       unsigned long SPD10:1;\r
+                       unsigned long SPD9:1;\r
+                       unsigned long SPD8:1;\r
+                       unsigned long SPD7:1;\r
+                       unsigned long SPD6:1;\r
+                       unsigned long SPD5:1;\r
+                       unsigned long SPD4:1;\r
+                       unsigned long SPD3:1;\r
+                       unsigned long SPD2:1;\r
+                       unsigned long SPD1:1;\r
+                       unsigned long SPD0:1;\r
+               } BIT;\r
+       } SPDR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char SPSC:2;\r
+               } BIT;\r
+       } SPSCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char SPSS:2;\r
+               } BIT;\r
+       } SPSSR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SPBR7:1;\r
+                       unsigned char SPBR6:1;\r
+                       unsigned char SPBR5:1;\r
+                       unsigned char SPBR4:1;\r
+                       unsigned char SPBR3:1;\r
+                       unsigned char SPBR2:1;\r
+                       unsigned char SPBR1:1;\r
+                       unsigned char SPBR0:1;\r
+               } BIT;\r
+       } SPBR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TXDMY:1;\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
+       char           wk0[1];\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 SPIMOD:2;\r
+                       unsigned short SPRW:1;\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 SPIMOD:2;\r
+                       unsigned short SPRW:1;\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 SPIMOD:2;\r
+                       unsigned short SPRW:1;\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 SPIMOD:2;\r
+                       unsigned short SPRW:1;\r
+                       unsigned short BRDV:2;\r
+                       unsigned short CPOL:1;\r
+                       unsigned short CPHA:1;\r
+               } BIT;\r
+       } SPCMD3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TXRST:1;\r
+                       unsigned char RXRST:1;\r
+                       unsigned char TXTRG:2;\r
+                       unsigned char TXTRGEX:1;\r
+                       unsigned char RXTRG:3;\r
+               } BIT;\r
+       } SPBFCR;\r
+       char           wk1[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short TXBC:6;\r
+                       unsigned short :2;\r
+                       unsigned short RXBC:6;\r
+               } BIT;\r
+       } SPBDCR;\r
+       union {\r
+               unsigned long LONG;\r
+       } SPBMUL0;\r
+       union {\r
+               unsigned long LONG;\r
+       } SPBMUL1;\r
+       union {\r
+               unsigned long LONG;\r
+       } SPBMUL2;\r
+       union {\r
+               unsigned long LONG;\r
+       } SPBMUL3;\r
+};\r
+\r
+struct st_riic0 {\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
+               } 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_riic2 {\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
+               } 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 :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_rspi0 {\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 SSL3P:1;\r
+                       unsigned char SSL2P:1;\r
+                       unsigned char SSL1P:1;\r
+                       unsigned char SSL0P: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 :2;\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
+               } 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
+       unsigned char 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 :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 SPTDDL:3;\r
+                       unsigned char SCKASE:1;\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_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
+       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
+       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
+       char           wk2[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PM:1;\r
+                       unsigned char HR10:2;\r
+                       unsigned char HR1:4;\r
+               } BIT;\r
+       } RHRCNT;\r
+       char           wk3[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char DAYW:3;\r
+               } BIT;\r
+       } RWKCNT;\r
+       char           wk4[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char DATE10:2;\r
+                       unsigned char DATE1:4;\r
+               } BIT;\r
+       } RDAYCNT;\r
+       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
+       char           wk6[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short YR10:4;\r
+                       unsigned short YR1: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
+       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
+       char           wk8[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:1;\r
+                       unsigned char PM:1;\r
+                       unsigned char HR10:2;\r
+                       unsigned char HR1:4;\r
+               } BIT;\r
+       } RHRAR;\r
+       char           wk9[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:1;\r
+                       unsigned char :4;\r
+                       unsigned char DAYW:3;\r
+               } BIT;\r
+       } RWKAR;\r
+       char           wk10[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:1;\r
+                       unsigned char :1;\r
+                       unsigned char DATE10:2;\r
+                       unsigned char DATE1:4;\r
+               } BIT;\r
+       } RDAYAR;\r
+       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
+       char           wk12[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short YR10:4;\r
+                       unsigned short YR1:4;\r
+               } BIT;\r
+       } RYRAR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:1;\r
+               } BIT;\r
+       } RYRAREN;\r
+       char           wk13[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PES:4;\r
+                       unsigned char RTCOS:1;\r
+                       unsigned char PIE:1;\r
+                       unsigned char CIE:1;\r
+                       unsigned char AIE:1;\r
+               } BIT;\r
+       } RCR1;\r
+       char           wk14[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CNTMD:1;\r
+                       unsigned char HR24:1;\r
+                       unsigned char AADJP:1;\r
+                       unsigned char AADJE:1;\r
+                       unsigned char RTCOE:1;\r
+                       unsigned char ADJ30:1;\r
+                       unsigned char RESET:1;\r
+                       unsigned char START:1;\r
+               } BIT;\r
+       } RCR2;\r
+       char           wk15[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char RTCDV:3;\r
+                       unsigned char RTCEN:1;\r
+               } BIT;\r
+       } RCR3;\r
+       char           wk16[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char RCKSEL:1;\r
+               } BIT;\r
+       } RCR4;\r
+       char           wk17[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short RFC:1;\r
+               } BIT;\r
+       } RFRH;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short RFC:16;\r
+               } BIT;\r
+       } RFRL;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PMADJ:2;\r
+                       unsigned char ADJ:6;\r
+               } BIT;\r
+       } RADJ;\r
+       char           wk18[17];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCEN:1;\r
+                       unsigned char :1;\r
+                       unsigned char TCNF:2;\r
+                       unsigned char :1;\r
+                       unsigned char TCST:1;\r
+                       unsigned char TCCT:2;\r
+               } BIT;\r
+       } RTCCR0;\r
+       char           wk19[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCEN:1;\r
+                       unsigned char :1;\r
+                       unsigned char TCNF:2;\r
+                       unsigned char :1;\r
+                       unsigned char TCST:1;\r
+                       unsigned char TCCT:2;\r
+               } BIT;\r
+       } RTCCR1;\r
+       char           wk20[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCEN:1;\r
+                       unsigned char :1;\r
+                       unsigned char TCNF:2;\r
+                       unsigned char :1;\r
+                       unsigned char TCST:1;\r
+                       unsigned char TCCT:2;\r
+               } BIT;\r
+       } RTCCR2;\r
+       char           wk21[13];\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
+       } RSECCP0;\r
+       char           wk22[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
+       } RMINCP0;\r
+       char           wk23[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PM:1;\r
+                       unsigned char HR10:2;\r
+                       unsigned char HR1:4;\r
+               } BIT;\r
+       } RHRCP0;\r
+       char           wk24[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char DATE10:2;\r
+                       unsigned char DATE1:4;\r
+               } BIT;\r
+       } RDAYCP0;\r
+       char           wk25[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
+       } RMONCP0;\r
+       char           wk26[5];\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
+       } RSECCP1;\r
+       char           wk27[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
+       } RMINCP1;\r
+       char           wk28[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PM:1;\r
+                       unsigned char HR10:2;\r
+                       unsigned char HR1:4;\r
+               } BIT;\r
+       } RHRCP1;\r
+       char           wk29[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char DATE10:2;\r
+                       unsigned char DATE1:4;\r
+               } BIT;\r
+       } RDAYCP1;\r
+       char           wk30[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
+       } RMONCP1;\r
+       char           wk31[5];\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
+       } RSECCP2;\r
+       char           wk32[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
+       } RMINCP2;\r
+       char           wk33[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char PM:1;\r
+                       unsigned char HR10:2;\r
+                       unsigned char HR1:4;\r
+               } BIT;\r
+       } RHRCP2;\r
+       char           wk34[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char DATE10:2;\r
+                       unsigned char DATE1:4;\r
+               } BIT;\r
+       } RDAYCP2;\r
+       char           wk35[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
+       } RMONCP2;\r
+};\r
+\r
+struct st_rtcb {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNT:8;\r
+               } BIT;\r
+       } BCNT0;\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNT:8;\r
+               } BIT;\r
+       } BCNT1;\r
+       char           wk1[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNT:8;\r
+               } BIT;\r
+       } BCNT2;\r
+       char           wk2[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNT:8;\r
+               } BIT;\r
+       } BCNT3;\r
+       char           wk3[7];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNTAR:8;\r
+               } BIT;\r
+       } BCNT0AR;\r
+       char           wk4[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNTAR:8;\r
+               } BIT;\r
+       } BCNT1AR;\r
+       char           wk5[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNTAR:8;\r
+               } BIT;\r
+       } BCNT2AR;\r
+       char           wk6[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNTAR:8;\r
+               } BIT;\r
+       } BCNT3AR;\r
+       char           wk7[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:8;\r
+               } BIT;\r
+       } BCNT0AER;\r
+       char           wk8[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:8;\r
+               } BIT;\r
+       } BCNT1AER;\r
+       char           wk9[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short ENB:8;\r
+               } BIT;\r
+       } BCNT2AER;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char ENB:8;\r
+               } BIT;\r
+       } BCNT3AER;\r
+       char           wk10[5];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CNTMD:1;\r
+                       unsigned char :1;\r
+                       unsigned char AADJP:1;\r
+                       unsigned char AADJE:1;\r
+                       unsigned char RTCOE:1;\r
+                       unsigned char :1;\r
+                       unsigned char RESET:1;\r
+                       unsigned char START:1;\r
+               } BIT;\r
+       } BRCR2;\r
+       char           wk11[45];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP0:8;\r
+               } BIT;\r
+       } BCNT0CP0;\r
+       char           wk12[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP0:8;\r
+               } BIT;\r
+       } BCNT1CP0;\r
+       char           wk13[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP0:8;\r
+               } BIT;\r
+       } BCNT2CP0;\r
+       char           wk14[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP0:8;\r
+               } BIT;\r
+       } BCNT3CP0;\r
+       char           wk15[7];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP1:8;\r
+               } BIT;\r
+       } BCNT0CP1;\r
+       char           wk16[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP1:8;\r
+               } BIT;\r
+       } BCNT1CP1;\r
+       char           wk17[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP1:8;\r
+               } BIT;\r
+       } BCNT2CP1;\r
+       char           wk18[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP1:8;\r
+               } BIT;\r
+       } BCNT3CP1;\r
+       char           wk19[7];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP2:8;\r
+               } BIT;\r
+       } BCNT0CP2;\r
+       char           wk20[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP2:8;\r
+               } BIT;\r
+       } BCNT1CP2;\r
+       char           wk21[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP2:8;\r
+               } BIT;\r
+       } BCNT2CP2;\r
+       char           wk22[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCNCP2:8;\r
+               } BIT;\r
+       } BCNT3CP2;\r
+};\r
+\r
+struct st_s12ad {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ADST:1;\r
+                       unsigned short ADCS:2;\r
+                       unsigned short ADIE:1;\r
+                       unsigned short :2;\r
+                       unsigned short TRGE:1;\r
+                       unsigned short EXTRG:1;\r
+                       unsigned short DBLE:1;\r
+                       unsigned short GBADIE:1;\r
+                       unsigned short :1;\r
+                       unsigned short DBLANS:5;\r
+               } BIT;\r
+       } ADCSR;\r
+       char           wk0[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ANSA0:16;\r
+               } BIT;\r
+       } ADANSA0;\r
+       char           wk1[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ADS0:16;\r
+               } BIT;\r
+       } ADADS0;\r
+       char           wk2[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char AVEE:1;\r
+                       unsigned char :5;\r
+                       unsigned char ADC:2;\r
+               } BIT;\r
+       } ADADC;\r
+       char           wk3[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ADRFMT:1;\r
+                       unsigned short :3;\r
+                       unsigned short DIAGM:1;\r
+                       unsigned short DIAGLD:1;\r
+                       unsigned short DIAGVAL:2;\r
+                       unsigned short :2;\r
+                       unsigned short ACE:1;\r
+                       unsigned short :2;\r
+                       unsigned short ADPRC:2;\r
+               } BIT;\r
+       } ADCER;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short TRSA:6;\r
+                       unsigned short :2;\r
+                       unsigned short TRSB:6;\r
+               } BIT;\r
+       } ADSTRGR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short EXOEN:1;\r
+                       unsigned short EXSEL:2;\r
+                       unsigned short :3;\r
+                       unsigned short OCS:1;\r
+                       unsigned short TSS:1;\r
+                       unsigned short :6;\r
+                       unsigned short OCSAD:1;\r
+                       unsigned short TSSAD:1;\r
+               } BIT;\r
+       } ADEXICR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ANSB0:16;\r
+               } BIT;\r
+       } ADANSB0;\r
+       char           wk4[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short AD:12;\r
+               } BIT;\r
+       } ADDBLDR;\r
+       char           wk5[4];\r
+       union {\r
+               unsigned short WORD;\r
+               union {\r
+                       struct {\r
+                               unsigned short DIAGST:2;\r
+                               unsigned short :2;\r
+                               unsigned short AD:12;\r
+                       } RIGHT;\r
+                       struct {\r
+                               unsigned short AD:12;\r
+                               unsigned short :2;\r
+                               unsigned short DIAGST:2;\r
+                       } LEFT;\r
+               } BIT;\r
+       } ADRD;\r
+       unsigned short ADDR0;\r
+       unsigned short ADDR1;\r
+       unsigned short ADDR2;\r
+       unsigned short ADDR3;\r
+       unsigned short ADDR4;\r
+       unsigned short ADDR5;\r
+       unsigned short ADDR6;\r
+       unsigned short ADDR7;\r
+       char           wk6[48];\r
+       unsigned char  ADSSTR0;\r
+       unsigned char  ADSSTRL;\r
+       char           wk7[4];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :5;\r
+                       unsigned short SHANS:3;\r
+                       unsigned short SSTSH:8;\r
+               } BIT;\r
+       } ADSHCR;\r
+       char           wk8[11];\r
+       unsigned char  ADSSTR1;\r
+       unsigned char  ADSSTR2;\r
+       unsigned char  ADSSTR3;\r
+       unsigned char  ADSSTR4;\r
+       unsigned char  ADSSTR5;\r
+       unsigned char  ADSSTR6;\r
+       unsigned char  ADSSTR7;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char ADNDIS:5;\r
+               } BIT;\r
+       } ADDISCR;\r
+       char           wk9[5];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short GBRP:1;\r
+                       unsigned short :13;\r
+                       unsigned short GBRSCN:1;\r
+                       unsigned short PGS:1;\r
+               } BIT;\r
+       } ADGSPCR;\r
+       char           wk10[2];\r
+       unsigned short ADDBLDRA;\r
+       unsigned short ADDBLDRB;\r
+       char           wk11[8];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CMPIE:1;\r
+                       unsigned char WCMPE:1;\r
+               } BIT;\r
+       } ADCMPCR;\r
+       char           wk12[3];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CMPS0:16;\r
+               } BIT;\r
+       } ADCMPANSR0;\r
+       char           wk13[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CMPL0:16;\r
+               } BIT;\r
+       } ADCMPLR0;\r
+       char           wk14[2];\r
+       unsigned short ADCMPDR0;\r
+       unsigned short ADCMPDR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CMPF0:16;\r
+               } BIT;\r
+       } ADCMPSR0;\r
+};\r
+\r
+struct st_s12ad1 {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ANSA0:16;\r
+               } BIT;\r
+       } ADANSA0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :11;\r
+                       unsigned short ANSA1:5;\r
+               } BIT;\r
+       } ADANSA1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ADS0:16;\r
+               } BIT;\r
+       } ADADS0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :11;\r
+                       unsigned short ADS1:5;\r
+               } BIT;\r
+       } ADADS1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char AVEE:1;\r
+                       unsigned char :5;\r
+                       unsigned char ADC:2;\r
+               } BIT;\r
+       } ADADC;\r
+       char           wk0[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ADRFMT:1;\r
+                       unsigned short :3;\r
+                       unsigned short DIAGM:1;\r
+                       unsigned short DIAGLD:1;\r
+                       unsigned short DIAGVAL:2;\r
+                       unsigned short :2;\r
+                       unsigned short ACE:1;\r
+                       unsigned short :2;\r
+                       unsigned short ADPRC:2;\r
+               } BIT;\r
+       } ADCER;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short TRSA:6;\r
+                       unsigned short :2;\r
+                       unsigned short TRSB:6;\r
+               } BIT;\r
+       } ADSTRGR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short EXOEN:1;\r
+                       unsigned short EXSEL:2;\r
+                       unsigned short :3;\r
+                       unsigned short OCS:1;\r
+                       unsigned short TSS:1;\r
+                       unsigned short :6;\r
+                       unsigned short OCSAD:1;\r
+                       unsigned short TSSAD:1;\r
+               } BIT;\r
+       } ADEXICR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short ANSB0:16;\r
+               } BIT;\r
+       } ADANSB0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :11;\r
+                       unsigned short ANSB1:5;\r
+               } BIT;\r
+       } ADANSB1;\r
+       unsigned short ADDBLDR;\r
+       unsigned short ADTSDR;\r
+       unsigned short ADOCDR;\r
+       union {\r
+               unsigned short WORD;\r
+               union {\r
+                       struct {\r
+                               unsigned short DIAGST:2;\r
+                               unsigned short :2;\r
+                               unsigned short AD:12;\r
+                       } RIGHT;\r
+                       struct {\r
+                               unsigned short AD:12;\r
+                               unsigned short :2;\r
+                               unsigned short DIAGST:2;\r
+                       } LEFT;\r
+               } BIT;\r
+       } ADRD;\r
+       unsigned short ADDR0;\r
+       unsigned short ADDR1;\r
+       unsigned short ADDR2;\r
+       unsigned short ADDR3;\r
+       unsigned short ADDR4;\r
+       unsigned short ADDR5;\r
+       unsigned short ADDR6;\r
+       unsigned short ADDR7;\r
+       unsigned short ADDR8;\r
+       unsigned short ADDR9;\r
+       unsigned short ADDR10;\r
+       unsigned short ADDR11;\r
+       unsigned short ADDR12;\r
+       unsigned short ADDR13;\r
+       unsigned short ADDR14;\r
+       unsigned short ADDR15;\r
+       unsigned short ADDR16;\r
+       unsigned short ADDR17;\r
+       unsigned short ADDR18;\r
+       unsigned short ADDR19;\r
+       unsigned short ADDR20;\r
+       char           wk1[22];\r
+       unsigned char  ADSSTR0;\r
+       unsigned char  ADSSTRL;\r
+       char           wk2[14];\r
+       unsigned char  ADSSTRT;\r
+       unsigned char  ADSSTRO;\r
+       char           wk3[1];\r
+       unsigned char  ADSSTR1;\r
+       unsigned char  ADSSTR2;\r
+       unsigned char  ADSSTR3;\r
+       unsigned char  ADSSTR4;\r
+       unsigned char  ADSSTR5;\r
+       unsigned char  ADSSTR6;\r
+       unsigned char  ADSSTR7;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char ADNDIS:5;\r
+               } BIT;\r
+       } ADDISCR;\r
+       char           wk4[5];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short GBRP:1;\r
+                       unsigned short :13;\r
+                       unsigned short GBRSCN:1;\r
+                       unsigned short PGS:1;\r
+               } BIT;\r
+       } ADGSPCR;\r
+       char           wk5[2];\r
+       unsigned short ADDBLDRA;\r
+       unsigned short ADDBLDRB;\r
+       char           wk6[8];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CMPIE:1;\r
+                       unsigned char WCMPE:1;\r
+               } BIT;\r
+       } ADCMPCR;\r
+       char           wk7[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char CMPSOC:1;\r
+                       unsigned char CMPSTS:1;\r
+               } BIT;\r
+       } ADCMPANSER;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char CMPLOC:1;\r
+                       unsigned char CMPLTS:1;\r
+               } BIT;\r
+       } ADCMPLER;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CMPS0:16;\r
+               } BIT;\r
+       } ADCMPANSR0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :11;\r
+                       unsigned short CMPS1:5;\r
+               } BIT;\r
+       } ADCMPANSR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CMPL0:16;\r
+               } BIT;\r
+       } ADCMPLR0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :11;\r
+                       unsigned short CMPL1:5;\r
+               } BIT;\r
+       } ADCMPLR1;\r
+       unsigned short ADCMPDR0;\r
+       unsigned short ADCMPDR1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short CMPF0:16;\r
+               } BIT;\r
+       } ADCMPSR0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :11;\r
+                       unsigned short CMPF1:5;\r
+               } BIT;\r
+       } ADCMPSR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char CMPFOC:1;\r
+                       unsigned char CMPFTS:1;\r
+               } BIT;\r
+       } ADCMPSER;\r
+};\r
+\r
+struct st_sci0 {\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 BCP2:1;\r
+                       unsigned char :2;\r
+                       unsigned char CHR1:1;\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 RXDESEL:1;\r
+                       unsigned char BGDM:1;\r
+                       unsigned char NFEN:1;\r
+                       unsigned char ABCS:1;\r
+                       unsigned char :1;\r
+                       unsigned char BRME:1;\r
+                       unsigned char :1;\r
+                       unsigned char ACS0:1;\r
+               } BIT;\r
+       } SEMR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char NFCS:3;\r
+               } BIT;\r
+       } SNFR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char IICDL:5;\r
+                       unsigned char :2;\r
+                       unsigned char IICM:1;\r
+               } BIT;\r
+       } SIMR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char IICACKT:1;\r
+                       unsigned char :3;\r
+                       unsigned char IICCSC:1;\r
+                       unsigned char IICINTM:1;\r
+               } BIT;\r
+       } SIMR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char IICSCLS:2;\r
+                       unsigned char IICSDAS:2;\r
+                       unsigned char IICSTIF:1;\r
+                       unsigned char IICSTPREQ:1;\r
+                       unsigned char IICRSTAREQ:1;\r
+                       unsigned char IICSTAREQ:1;\r
+               } BIT;\r
+       } SIMR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char IICACKR:1;\r
+               } BIT;\r
+       } SISR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CKPH:1;\r
+                       unsigned char CKPOL:1;\r
+                       unsigned char :1;\r
+                       unsigned char MFF:1;\r
+                       unsigned char :1;\r
+                       unsigned char MSS:1;\r
+                       unsigned char CTSE:1;\r
+                       unsigned char SSE:1;\r
+               } BIT;\r
+       } SPMR;\r
+       unsigned char  TDRH;\r
+       unsigned char  TDRL;\r
+       unsigned char  RDRH;\r
+       unsigned char  RDRL;\r
+       unsigned char  MDDR;\r
+};\r
+\r
+struct st_sci12 {\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 BCP2:1;\r
+                       unsigned char :2;\r
+                       unsigned char CHR1:1;\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 RXDESEL:1;\r
+                       unsigned char BGDM:1;\r
+                       unsigned char NFEN:1;\r
+                       unsigned char ABCS:1;\r
+                       unsigned char :1;\r
+                       unsigned char BRME:1;\r
+                       unsigned char :1;\r
+                       unsigned char ACS0:1;\r
+               } BIT;\r
+       } SEMR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char NFCS:3;\r
+               } BIT;\r
+       } SNFR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char IICDL:5;\r
+                       unsigned char :2;\r
+                       unsigned char IICM:1;\r
+               } BIT;\r
+       } SIMR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char IICACKT:1;\r
+                       unsigned char :3;\r
+                       unsigned char IICCSC:1;\r
+                       unsigned char IICINTM:1;\r
+               } BIT;\r
+       } SIMR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char IICSCLS:2;\r
+                       unsigned char IICSDAS:2;\r
+                       unsigned char IICSTIF:1;\r
+                       unsigned char IICSTPREQ:1;\r
+                       unsigned char IICRSTAREQ:1;\r
+                       unsigned char IICSTAREQ:1;\r
+               } BIT;\r
+       } SIMR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char IICACKR:1;\r
+               } BIT;\r
+       } SISR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CKPH:1;\r
+                       unsigned char CKPOL:1;\r
+                       unsigned char :1;\r
+                       unsigned char MFF:1;\r
+                       unsigned char :1;\r
+                       unsigned char MSS:1;\r
+                       unsigned char CTSE:1;\r
+                       unsigned char SSE:1;\r
+               } BIT;\r
+       } SPMR;\r
+       unsigned char  TDRH;\r
+       unsigned char  TDRL;\r
+       unsigned char  RDRH;\r
+       unsigned char  RDRL;\r
+       unsigned char  MDDR;\r
+       char           wk0[13];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char ESME:1;\r
+               } BIT;\r
+       } ESMER;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :4;\r
+                       unsigned char BRME:1;\r
+                       unsigned char RXDSF:1;\r
+                       unsigned char SFSF:1;\r
+               } BIT;\r
+       } CR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char PIBS:3;\r
+                       unsigned char PIBE:1;\r
+                       unsigned char CF1DS:2;\r
+                       unsigned char CF0RE:1;\r
+                       unsigned char BFE:1;\r
+               } BIT;\r
+       } CR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char RTS:2;\r
+                       unsigned char BCCS:2;\r
+                       unsigned char :1;\r
+                       unsigned char DFCS:3;\r
+               } BIT;\r
+       } CR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char SDST:1;\r
+               } BIT;\r
+       } CR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char SHARPS:1;\r
+                       unsigned char :2;\r
+                       unsigned char RXDXPS:1;\r
+                       unsigned char TXDXPS:1;\r
+               } BIT;\r
+       } PCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char AEDIE:1;\r
+                       unsigned char BCDIE:1;\r
+                       unsigned char PIBDIE:1;\r
+                       unsigned char CF1MIE:1;\r
+                       unsigned char CF0MIE:1;\r
+                       unsigned char BFDIE:1;\r
+               } BIT;\r
+       } ICR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char AEDF:1;\r
+                       unsigned char BCDF:1;\r
+                       unsigned char PIBDF:1;\r
+                       unsigned char CF1MF:1;\r
+                       unsigned char CF0MF:1;\r
+                       unsigned char BFDF:1;\r
+               } BIT;\r
+       } STR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char AEDCL:1;\r
+                       unsigned char BCDCL:1;\r
+                       unsigned char PIBDCL:1;\r
+                       unsigned char CF1MCL:1;\r
+                       unsigned char CF0MCL:1;\r
+                       unsigned char BFDCL:1;\r
+               } BIT;\r
+       } STCR;\r
+       unsigned char  CF0DR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CF0CE7:1;\r
+                       unsigned char CF0CE6:1;\r
+                       unsigned char CF0CE5:1;\r
+                       unsigned char CF0CE4:1;\r
+                       unsigned char CF0CE3:1;\r
+                       unsigned char CF0CE2:1;\r
+                       unsigned char CF0CE1:1;\r
+                       unsigned char CF0CE0:1;\r
+               } BIT;\r
+       } CF0CR;\r
+       unsigned char  CF0RR;\r
+       unsigned char  PCF1DR;\r
+       unsigned char  SCF1DR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char CF1CE7:1;\r
+                       unsigned char CF1CE6:1;\r
+                       unsigned char CF1CE5:1;\r
+                       unsigned char CF1CE4:1;\r
+                       unsigned char CF1CE3:1;\r
+                       unsigned char CF1CE2:1;\r
+                       unsigned char CF1CE1:1;\r
+                       unsigned char CF1CE0:1;\r
+               } BIT;\r
+       } CF1CR;\r
+       unsigned char  CF1RR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TCST:1;\r
+               } BIT;\r
+       } TCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char TCSS:3;\r
+                       unsigned char TWRC:1;\r
+                       unsigned char :1;\r
+                       unsigned char TOMS:2;\r
+               } BIT;\r
+       } TMR;\r
+       unsigned char  TPRE;\r
+       unsigned char  TCNT;\r
+};\r
+\r
+//struct st_scia {\r
+//     unsigned char  MDDR;\r
+//};\r
+\r
+struct st_scif {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short CM:1;\r
+                       unsigned short CHR:1;\r
+                       unsigned short PE:1;\r
+                       unsigned short PM:1;\r
+                       unsigned short STOP:1;\r
+                       unsigned short :1;\r
+                       unsigned short CKS:2;\r
+               } BIT;\r
+       } SMR;\r
+//     unsigned char  BRR;\r
+       union {\r
+               unsigned char  BRR;\r
+               unsigned char  MDDR;    \r
+       };\r
+       char           wk0[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short TIE:1;\r
+                       unsigned short RIE:1;\r
+                       unsigned short TE:1;\r
+                       unsigned short RE:1;\r
+                       unsigned short REIE:1;\r
+                       unsigned short TEIE:1;\r
+                       unsigned short CKE:2;\r
+               } BIT;\r
+       } SCR;\r
+       unsigned char  FTDR;\r
+       char           wk1[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short ER:1;\r
+                       unsigned short TEND:1;\r
+                       unsigned short TDFE:1;\r
+                       unsigned short BRK:1;\r
+                       unsigned short FER:1;\r
+                       unsigned short PER:1;\r
+                       unsigned short RDF:1;\r
+                       unsigned short DR:1;\r
+               } BIT;\r
+       } FSR;\r
+       unsigned char  FRDR;\r
+       char           wk2[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :5;\r
+                       unsigned short RSTRG:3;\r
+                       unsigned short RTRG:2;\r
+                       unsigned short TTRG:2;\r
+                       unsigned short MCE:1;\r
+                       unsigned short TFRST:1;\r
+                       unsigned short RFRST:1;\r
+                       unsigned short LOOP:1;\r
+               } BIT;\r
+       } FCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :3;\r
+                       unsigned short T:5;\r
+                       unsigned short :3;\r
+                       unsigned short R:5;\r
+               } BIT;\r
+       } FDR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short RTS2IO:1;\r
+                       unsigned short RTS2DT:1;\r
+                       unsigned short CTS2IO:1;\r
+                       unsigned short CTS2DT:1;\r
+                       unsigned short SCKIO:1;\r
+                       unsigned short SCKDT:1;\r
+                       unsigned short SPB2IO:1;\r
+                       unsigned short SPB2DT:1;\r
+               } BIT;\r
+       } SPTR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :4;\r
+                       unsigned short PER:4;\r
+                       unsigned short :2;\r
+                       unsigned short FER:4;\r
+                       unsigned short :1;\r
+                       unsigned short ORER:1;\r
+               } BIT;\r
+       } LSR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BGDM:1;\r
+                       unsigned char ACS0:1;\r
+                       unsigned char BRME:1;\r
+                       unsigned char MDDRS:1;\r
+                       unsigned char DIR:1;\r
+                       unsigned char NFEN:1;\r
+                       unsigned char :1;\r
+                       unsigned char ABCS0:1;\r
+               } BIT;\r
+       } SEMR;\r
+       char           wk3[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short RTRGS:1;\r
+                       unsigned short :2;\r
+                       unsigned short RFTC:5;\r
+                       unsigned short TTRGS:1;\r
+                       unsigned short :2;\r
+                       unsigned short TFTC:5;\r
+               } BIT;\r
+       } FTCR;\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
+       char           wk0[3];\r
+//     unsigned char  BRR;\r
+       union {\r
+               unsigned char  BRR;\r
+               unsigned char  MDDR;    \r
+       };\r
+       char           wk1[3];\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
+       char           wk2[3];\r
+       unsigned char  TDR;\r
+       char           wk3[3];\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 MPB:1;\r
+                       unsigned char MPBT:1;\r
+               } BIT;\r
+       } SSR;\r
+       char           wk4[3];\r
+       unsigned char  RDR;\r
+       char           wk5[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BCP2:1;\r
+                       unsigned char :2;\r
+                       unsigned char CHR1:1;\r
+                       unsigned char SDIR:1;\r
+                       unsigned char SINV:1;\r
+                       unsigned char :1;\r
+                       unsigned char SMIF:1;\r
+               } BIT;\r
+       } SCMR;\r
+       char           wk6[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char BRME:1;\r
+                       unsigned char MDDRS:1;\r
+                       unsigned char :1;\r
+                       unsigned char ABCS:1;\r
+                       unsigned char :1;\r
+                       unsigned char RSDMOS:1;\r
+                       unsigned char :1;\r
+                       unsigned char ACS0:1;\r
+               } BIT;\r
+       } SEMR;\r
+};\r
+\r
+struct st_smci0 {\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 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 ERS: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 BCP2:1;\r
+                       unsigned char :2;\r
+                       unsigned char CHR1:1;\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_src {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :10;\r
+                       unsigned long SRCFCTR:22;\r
+               } BIT;\r
+       } SRCFCTR[5552];\r
+       char           wk0[2352];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long B31:1;\r
+                       unsigned long B30:1;\r
+                       unsigned long B29:1;\r
+                       unsigned long B28:1;\r
+                       unsigned long B27:1;\r
+                       unsigned long B26:1;\r
+                       unsigned long B25:1;\r
+                       unsigned long B24:1;\r
+                       unsigned long B23:1;\r
+                       unsigned long B22:1;\r
+                       unsigned long B21:1;\r
+                       unsigned long B20:1;\r
+                       unsigned long B19:1;\r
+                       unsigned long B18:1;\r
+                       unsigned long B17:1;\r
+                       unsigned long B16:1;\r
+                       unsigned long B15:1;\r
+                       unsigned long B14:1;\r
+                       unsigned long B13:1;\r
+                       unsigned long B12:1;\r
+                       unsigned long B11:1;\r
+                       unsigned long B10:1;\r
+                       unsigned long B9:1;\r
+                       unsigned long B8:1;\r
+                       unsigned long B7:1;\r
+                       unsigned long B6:1;\r
+                       unsigned long B5:1;\r
+                       unsigned long B4:1;\r
+                       unsigned long B3:1;\r
+                       unsigned long B2:1;\r
+                       unsigned long B1:1;\r
+                       unsigned long B0:1;\r
+               } BIT;\r
+       } SRCID;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long B31:1;\r
+                       unsigned long B30:1;\r
+                       unsigned long B29:1;\r
+                       unsigned long B28:1;\r
+                       unsigned long B27:1;\r
+                       unsigned long B26:1;\r
+                       unsigned long B25:1;\r
+                       unsigned long B24:1;\r
+                       unsigned long B23:1;\r
+                       unsigned long B22:1;\r
+                       unsigned long B21:1;\r
+                       unsigned long B20:1;\r
+                       unsigned long B19:1;\r
+                       unsigned long B18:1;\r
+                       unsigned long B17:1;\r
+                       unsigned long B16:1;\r
+                       unsigned long B15:1;\r
+                       unsigned long B14:1;\r
+                       unsigned long B13:1;\r
+                       unsigned long B12:1;\r
+                       unsigned long B11:1;\r
+                       unsigned long B10:1;\r
+                       unsigned long B9:1;\r
+                       unsigned long B8:1;\r
+                       unsigned long B7:1;\r
+                       unsigned long B6:1;\r
+                       unsigned long B5:1;\r
+                       unsigned long B4:1;\r
+                       unsigned long B3:1;\r
+                       unsigned long B2:1;\r
+                       unsigned long B1:1;\r
+                       unsigned long B0:1;\r
+               } BIT;\r
+       } SRCOD;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short IED:1;\r
+                       unsigned short IEN:1;\r
+                       unsigned short :6;\r
+                       unsigned short IFTRG:2;\r
+               } BIT;\r
+       } SRCIDCTRL;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :5;\r
+                       unsigned short OCH:1;\r
+                       unsigned short OED:1;\r
+                       unsigned short OEN:1;\r
+                       unsigned short :6;\r
+                       unsigned short OFTRG:2;\r
+               } BIT;\r
+       } SRCODCTRL;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short FICRAE:1;\r
+                       unsigned short :1;\r
+                       unsigned short CEEN:1;\r
+                       unsigned short SRCEN:1;\r
+                       unsigned short UDEN:1;\r
+                       unsigned short OVEN:1;\r
+                       unsigned short FL:1;\r
+                       unsigned short CL:1;\r
+                       unsigned short IFS:4;\r
+                       unsigned short :1;\r
+                       unsigned short OFS:3;\r
+               } BIT;\r
+       } SRCCTRL;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short OFDN:5;\r
+                       unsigned short IFDN:3;\r
+                       unsigned short :2;\r
+                       unsigned short CEF:1;\r
+                       unsigned short FLF:1;\r
+                       unsigned short UDF:1;\r
+                       unsigned short OVF:1;\r
+                       unsigned short IINIT:1;\r
+                       unsigned short OINT:1;\r
+               } BIT;\r
+       } SRCSTAT;\r
+};\r
+\r
+struct st_ssi {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :1;\r
+                       unsigned long CKS:1;\r
+                       unsigned long TUIEN:1;\r
+                       unsigned long TOIEN:1;\r
+                       unsigned long RUIEN:1;\r
+                       unsigned long ROIEN:1;\r
+                       unsigned long IIEN:1;\r
+                       unsigned long :1;\r
+                       unsigned long CHNL:2;\r
+                       unsigned long DWL:3;\r
+                       unsigned long SWL:3;\r
+                       unsigned long SCKD:1;\r
+                       unsigned long SWSD:1;\r
+                       unsigned long SCKP:1;\r
+                       unsigned long SWSP:1;\r
+                       unsigned long SPDP:1;\r
+                       unsigned long SDTA:1;\r
+                       unsigned long PDTA:1;\r
+                       unsigned long DEL:1;\r
+                       unsigned long CKDV:4;\r
+                       unsigned long MUEN:1;\r
+                       unsigned long :1;\r
+                       unsigned long TEN:1;\r
+                       unsigned long REN:1;\r
+               } BIT;\r
+       } SSICR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :2;\r
+                       unsigned long TUIRQ:1;\r
+                       unsigned long TOIRQ:1;\r
+                       unsigned long RUIRQ:1;\r
+                       unsigned long ROIRQ:1;\r
+                       unsigned long IIRQ:1;\r
+                       unsigned long :18;\r
+                       unsigned long TCHNO:2;\r
+                       unsigned long TSWNO:1;\r
+                       unsigned long RCHNO:2;\r
+                       unsigned long RSWNO:1;\r
+                       unsigned long IDST:1;\r
+               } BIT;\r
+       } SSISR;\r
+       char           wk0[8];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long AUCKE:1;\r
+                       unsigned long :23;\r
+                       unsigned long TTRG:2;\r
+                       unsigned long RTRG:2;\r
+                       unsigned long TUE:1;\r
+                       unsigned long RIE:1;\r
+                       unsigned long TFRST:1;\r
+                       unsigned long RFRST:1;\r
+               } BIT;\r
+       } SSIFCR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :4;\r
+                       unsigned long TDC:4;\r
+                       unsigned long :7;\r
+                       unsigned long TDE:1;\r
+                       unsigned long :4;\r
+                       unsigned long RDC:4;\r
+                       unsigned long :7;\r
+                       unsigned long RDF:1;\r
+               } BIT;\r
+       } SSIFSR;\r
+       unsigned long  SSIFTDR;\r
+       unsigned long  SSIFRDR;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :23;\r
+                       unsigned long CONT:1;\r
+               } BIT;\r
+       } SSITDMR;\r
+};\r
+\r
+struct st_system {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short MD:1;\r
+               } BIT;\r
+       } MDMONR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :10;\r
+                       unsigned short UBTS:1;\r
+               } BIT;\r
+       } MDSR;\r
+       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 :8;\r
+                       unsigned short SBYRAME:1;\r
+                       unsigned short ECCRAME:1;\r
+                       unsigned short :5;\r
+                       unsigned short RAME:1;\r
+               } BIT;\r
+       } SYSCR1;\r
+       char           wk1[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short SSBY:1;\r
+                       unsigned short OPE:1;\r
+               } BIT;\r
+       } SBYCR;\r
+       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 MSTPA27:1;\r
+                       unsigned long :7;\r
+                       unsigned long MSTPA19:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPA17:1;\r
+                       unsigned long MSTPA16:1;\r
+                       unsigned long MSTPA15:1;\r
+                       unsigned long MSTPA14:1;\r
+                       unsigned long MSTPA13:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPA11:1;\r
+                       unsigned long MSTPA10:1;\r
+                       unsigned long MSTPA9:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPA7:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPA5:1;\r
+                       unsigned long MSTPA4:1;\r
+                       unsigned long :2;\r
+                       unsigned long MSTPA1:1;\r
+                       unsigned long MSTPA0:1;\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 MSTPB27:1;\r
+                       unsigned long MSTPB26:1;\r
+                       unsigned long MSTPB25:1;\r
+                       unsigned long MSTPB24:1;\r
+                       unsigned long MSTPB23:1;\r
+                       unsigned long MSTPB22:1;\r
+                       unsigned long MSTPB21:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB19:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB17:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB15:1;\r
+                       unsigned long MSTPB14:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB12:1;\r
+                       unsigned long :2;\r
+                       unsigned long MSTPB9:1;\r
+                       unsigned long MSTPB8:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB6:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB4:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPB2:1;\r
+                       unsigned long MSTPB1:1;\r
+                       unsigned long MSTPB0:1;\r
+               } BIT;\r
+       } MSTPCRB;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :4;\r
+                       unsigned long MSTPC27:1;\r
+                       unsigned long MSTPC26:1;\r
+                       unsigned long MSTPC25:1;\r
+                       unsigned long MSTPC24:1;\r
+                       unsigned long MSTPC23:1;\r
+                       unsigned long :3;\r
+                       unsigned long MSTPC19:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPC17:1;\r
+                       unsigned long :9;\r
+                       unsigned long MSTPC7:1;\r
+                       unsigned long :4;\r
+                       unsigned long MSTPC2:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPC0:1;\r
+               } BIT;\r
+       } MSTPCRC;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long MSTPD31:1;\r
+                       unsigned long MSTPD30:1;\r
+                       unsigned long MSTPD29:1;\r
+                       unsigned long MSTPD28:1;\r
+                       unsigned long :4;\r
+                       unsigned long MSTPD23:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPD21:1;\r
+                       unsigned long :1;\r
+                       unsigned long MSTPD19:1;\r
+                       unsigned long :3;\r
+                       unsigned long MSTPD15:1;\r
+                       unsigned long MSTPD14:1;\r
+               } BIT;\r
+       } MSTPCRD;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long FCK: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 PCKA:4;\r
+                       unsigned long PCKB:4;\r
+                       unsigned long PCKC:4;\r
+                       unsigned long PCKD:4;\r
+               } BIT;\r
+       } SCKCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short UCK:4;\r
+               } BIT;\r
+       } SCKCR2;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :5;\r
+                       unsigned short CKSEL:3;\r
+               } BIT;\r
+       } SCKCR3;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short STC:6;\r
+                       unsigned short :3;\r
+                       unsigned short PLLSRCSEL:1;\r
+                       unsigned short :2;\r
+                       unsigned short PLIDIV:2;\r
+               } BIT;\r
+       } PLLCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char PLLEN:1;\r
+               } BIT;\r
+       } PLLCR2;\r
+       char           wk3[5];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char BCLKDIV:1;\r
+               } BIT;\r
+       } BCKCR;\r
+       char           wk4[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char MOSTP:1;\r
+               } BIT;\r
+       } MOSCCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char SOSTP:1;\r
+               } BIT;\r
+       } SOSCCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char LCSTP:1;\r
+               } BIT;\r
+       } LOCOCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char ILCSTP:1;\r
+               } BIT;\r
+       } ILOCOCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char HCSTP:1;\r
+               } BIT;\r
+       } HOCOCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char HCFRQ:2;\r
+               } BIT;\r
+       } HOCOCR2;\r
+       char           wk6[4];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char ILCOVF:1;\r
+                       unsigned char HCOVF:1;\r
+                       unsigned char PLOVF:1;\r
+                       unsigned char SOOVF:1;\r
+                       unsigned char MOOVF:1;\r
+               } BIT;\r
+       } OSCOVFSR;\r
+       char           wk7[3];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char OSTDE:1;\r
+                       unsigned char :6;\r
+                       unsigned char OSTDIE:1;\r
+               } BIT;\r
+       } OSTDCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char OSTDF:1;\r
+               } BIT;\r
+       } OSTDSR;\r
+       char           wk8[94];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :3;\r
+                       unsigned char OPCMTSF:1;\r
+                       unsigned char :1;\r
+                       unsigned char OPCM:3;\r
+               } BIT;\r
+       } OPCCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char RSTCKEN:1;\r
+                       unsigned char :4;\r
+                       unsigned char RSTCKSEL:3;\r
+               } BIT;\r
+       } RSTCKCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char MSTS:8;\r
+               } BIT;\r
+       } MOSCWTCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char SSTS:8;\r
+               } BIT;\r
+       } SOSCWTCR;\r
+       char           wk9[28];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char SWRF:1;\r
+                       unsigned char WDTRF:1;\r
+                       unsigned char IWTDRF:1;\r
+               } BIT;\r
+       } RSTSR2;\r
+       char           wk10[1];\r
+       unsigned short SWRR;\r
+       char           wk11[28];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char LVD1IRQSEL:1;\r
+                       unsigned char LVD1IDTSEL:2;\r
+               } BIT;\r
+       } LVD1CR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char LVD1MON:1;\r
+                       unsigned char LVD1DET:1;\r
+               } BIT;\r
+       } LVD1SR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :5;\r
+                       unsigned char LVD2IRQSEL:1;\r
+                       unsigned char LVD2IDTSEL:2;\r
+               } BIT;\r
+       } LVD2CR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :6;\r
+                       unsigned char LVD2MON:1;\r
+                       unsigned char LVD2DET:1;\r
+               } BIT;\r
+       } LVD2SR;\r
+       char           wk12[794];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short PRKEY:8;\r
+                       unsigned short :4;\r
+                       unsigned short PRC3:1;\r
+                       unsigned short :1;\r
+                       unsigned short PRC1:1;\r
+                       unsigned short PRC0:1;\r
+               } BIT;\r
+       } PRCR;\r
+       char           wk13[48768];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DPSBY:1;\r
+                       unsigned char IOKEEP:1;\r
+                       unsigned char :4;\r
+                       unsigned char DEEPCUT:2;\r
+               } BIT;\r
+       } DPSBYCR;\r
+       char           wk14[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DIRQ7E:1;\r
+                       unsigned char DIRQ6E:1;\r
+                       unsigned char DIRQ5E:1;\r
+                       unsigned char DIRQ4E:1;\r
+                       unsigned char DIRQ3E:1;\r
+                       unsigned char DIRQ2E:1;\r
+                       unsigned char DIRQ1E:1;\r
+                       unsigned char DIRQ0E:1;\r
+               } BIT;\r
+       } DPSIER0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DIRQ15E:1;\r
+                       unsigned char DIRQ14E:1;\r
+                       unsigned char DIRQ13E:1;\r
+                       unsigned char DIRQ12E:1;\r
+                       unsigned char DIRQ11E:1;\r
+                       unsigned char DIRQ10E:1;\r
+                       unsigned char DIRQ9E:1;\r
+                       unsigned char DIRQ8E:1;\r
+               } BIT;\r
+       } DPSIER1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DUSBIE:1;\r
+                       unsigned char DRIICCIE:1;\r
+                       unsigned char DRIICDIE:1;\r
+                       unsigned char DNMIE:1;\r
+                       unsigned char DRTCAIE:1;\r
+                       unsigned char DRTCIIE:1;\r
+                       unsigned char DLVD2IE:1;\r
+                       unsigned char DLVD1IE:1;\r
+               } BIT;\r
+       } DPSIER2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char DCANIE:1;\r
+               } BIT;\r
+       } DPSIER3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DIRQ7F:1;\r
+                       unsigned char DIRQ6F:1;\r
+                       unsigned char DIRQ5F:1;\r
+                       unsigned char DIRQ4F:1;\r
+                       unsigned char DIRQ3F:1;\r
+                       unsigned char DIRQ2F:1;\r
+                       unsigned char DIRQ1F:1;\r
+                       unsigned char DIRQ0F:1;\r
+               } BIT;\r
+       } DPSIFR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DIRQ15F:1;\r
+                       unsigned char DIRQ14F:1;\r
+                       unsigned char DIRQ13F:1;\r
+                       unsigned char DIRQ12F:1;\r
+                       unsigned char DIRQ11F:1;\r
+                       unsigned char DIRQ10F:1;\r
+                       unsigned char DIRQ9F:1;\r
+                       unsigned char DIRQ8F:1;\r
+               } BIT;\r
+       } DPSIFR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DUSBIF:1;\r
+                       unsigned char DRIICCIF:1;\r
+                       unsigned char DRIICDIF:1;\r
+                       unsigned char DNMIF:1;\r
+                       unsigned char DRTCAIF:1;\r
+                       unsigned char DRTCIIF:1;\r
+                       unsigned char DLVD2IF:1;\r
+                       unsigned char DLVD1IF:1;\r
+               } BIT;\r
+       } DPSIFR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char DCANIF:1;\r
+               } BIT;\r
+       } DPSIFR3;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DIRQ7EG:1;\r
+                       unsigned char DIRQ6EG:1;\r
+                       unsigned char DIRQ5EG:1;\r
+                       unsigned char DIRQ4EG:1;\r
+                       unsigned char DIRQ3EG:1;\r
+                       unsigned char DIRQ2EG:1;\r
+                       unsigned char DIRQ1EG:1;\r
+                       unsigned char DIRQ0EG:1;\r
+               } BIT;\r
+       } DPSIEGR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DIRQ15EG:1;\r
+                       unsigned char DIRQ14EG:1;\r
+                       unsigned char DIRQ13EG:1;\r
+                       unsigned char DIRQ12EG:1;\r
+                       unsigned char DIRQ11EG:1;\r
+                       unsigned char DIRQ10EG:1;\r
+                       unsigned char DIRQ9EG:1;\r
+                       unsigned char DIRQ8EG:1;\r
+               } BIT;\r
+       } DPSIEGR1;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char DRIICCEG:1;\r
+                       unsigned char DRIICDEG:1;\r
+                       unsigned char DNMIEG:1;\r
+                       unsigned char :2;\r
+                       unsigned char DLVD2EG:1;\r
+                       unsigned char DLVD1EG:1;\r
+               } BIT;\r
+       } DPSIEGR2;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char DCANIEG:1;\r
+               } BIT;\r
+       } DPSIEGR3;\r
+       char           wk15[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char DPSRSTF:1;\r
+                       unsigned char :3;\r
+                       unsigned char LVD2RF:1;\r
+                       unsigned char LVD1RF:1;\r
+                       unsigned char LVD0RF:1;\r
+                       unsigned char PORF:1;\r
+               } BIT;\r
+       } RSTSR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char CWSF:1;\r
+               } BIT;\r
+       } RSTSR1;\r
+       char           wk16[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char MOSEL:1;\r
+                       unsigned char MODRV2:2;\r
+                       unsigned char MODRV:3;\r
+                       unsigned char MOFXIN:1;\r
+               } BIT;\r
+       } MOFCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char HOCOPCNT:1;\r
+               } BIT;\r
+       } HOCOPCR;\r
+       char           wk17[2];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :1;\r
+                       unsigned char LVD2E:1;\r
+                       unsigned char LVD1E:1;\r
+               } BIT;\r
+       } LVCMPCR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char LVD2LVL:4;\r
+                       unsigned char LVD1LVL:4;\r
+               } BIT;\r
+       } LVDLVLR;\r
+       char           wk18[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char LVD1RN:1;\r
+                       unsigned char LVD1RI:1;\r
+                       unsigned char LVD1FSAMP:2;\r
+                       unsigned char :1;\r
+                       unsigned char LVD1CMPE:1;\r
+                       unsigned char LVD1DFDIS:1;\r
+                       unsigned char LVD1RIE:1;\r
+               } BIT;\r
+       } LVD1CR0;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char LVD2RN:1;\r
+                       unsigned char LVD2RI:1;\r
+                       unsigned char LVD2FSAMP:2;\r
+                       unsigned char :1;\r
+                       unsigned char LVD2CMPE:1;\r
+                       unsigned char LVD2DFDIS:1;\r
+                       unsigned char LVD2RIE:1;\r
+               } BIT;\r
+       } LVD2CR0;\r
+       char           wk19[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char VBATTMNSEL:1;\r
+               } BIT;\r
+       } VBATTMNSELR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char VBATTMON:1;\r
+               } BIT;\r
+       } VBATTMONR;\r
+       char           wk20[1];\r
+       unsigned char  DPSBKR[32];\r
+       char           wk21[7794020];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :29;\r
+                       unsigned long MDE:3;\r
+               } BIT;\r
+       } MDE;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :3;\r
+                       unsigned long WDTRSTIRQS:1;\r
+                       unsigned long WDTRPSS:2;\r
+                       unsigned long WDTRPES:2;\r
+                       unsigned long WDTCKS:4;\r
+                       unsigned long WDTTOPS:2;\r
+                       unsigned long WDTSTRT:1;\r
+                       unsigned long :2;\r
+                       unsigned long IWDTSLCSTP:1;\r
+                       unsigned long :1;\r
+                       unsigned long IWDTRSTIRQS:1;\r
+                       unsigned long IWDTRPSS:2;\r
+                       unsigned long IWDTRPES:2;\r
+                       unsigned long IWDTCKS:4;\r
+                       unsigned long IWDTTOPS:2;\r
+                       unsigned long IWDTSTRT:1;\r
+               } BIT;\r
+       } OFS0;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :23;\r
+                       unsigned long HOCOEN:1;\r
+                       unsigned long :5;\r
+                       unsigned long LVDAS:1;\r
+                       unsigned long VDSEL:2;\r
+               } BIT;\r
+       } OFS1;\r
+};\r
+\r
+struct st_temps {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TSEN:1;\r
+                       unsigned char :2;\r
+                       unsigned char TSOE:1;\r
+               } BIT;\r
+       } TSCR;\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
+               } BIT;\r
+       } TCR;\r
+       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
+       char           wk1[1];\r
+       unsigned char  TCORA;\r
+       char           wk2[1];\r
+       unsigned char  TCORB;\r
+       char           wk3[1];\r
+       unsigned char  TCNT;\r
+       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
+       char           wk5[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :7;\r
+                       unsigned char TCS:1;\r
+               } BIT;\r
+       } TCSTR;\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
+               } BIT;\r
+       } TCR;\r
+       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
+       char           wk1[1];\r
+       unsigned char  TCORA;\r
+       char           wk2[1];\r
+       unsigned char  TCORB;\r
+       char           wk3[1];\r
+       unsigned char  TCNT;\r
+       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_tpu0 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       char           wk0[7];\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 ICSELD:1;\r
+                       unsigned char ICSELB: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
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCFD:1;\r
+                       unsigned char :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+};\r
+\r
+struct st_tpu1 {\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       char           wk1[22];\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 ICSELD:1;\r
+                       unsigned char ICSELB: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
+       } TIOR;\r
+       char           wk2[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 TGIED:1;\r
+                       unsigned char TGIEC:1;\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 :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+};\r
+\r
+struct st_tpu2 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       char           wk0[37];\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 ICSELD:1;\r
+                       unsigned char ICSELB: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
+       } TIOR;\r
+       char           wk1[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 TGIED:1;\r
+                       unsigned char TGIEC:1;\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 :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+};\r
+\r
+struct st_tpu3 {\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       char           wk1[52];\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 ICSELD:1;\r
+                       unsigned char ICSELB: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 :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
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char TCFD:1;\r
+                       unsigned char :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+       unsigned short TGRC;\r
+       unsigned short TGRD;\r
+};\r
+\r
+struct st_tpu4 {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       char           wk0[67];\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 ICSELD:1;\r
+                       unsigned char ICSELB: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
+       } TIOR;\r
+       char           wk1[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 TGIED:1;\r
+                       unsigned char TGIEC:1;\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 :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+};\r
+\r
+struct st_tpu5 {\r
+       char           wk0[1];\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char NFCS:2;\r
+                       unsigned char NFDEN:1;\r
+                       unsigned char NFCEN:1;\r
+                       unsigned char NFBEN:1;\r
+                       unsigned char NFAEN:1;\r
+               } BIT;\r
+       } NFCR;\r
+       char           wk1[82];\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 ICSELD:1;\r
+                       unsigned char ICSELB: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
+       } TIOR;\r
+       char           wk2[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 TGIED:1;\r
+                       unsigned char TGIEC:1;\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 :1;\r
+                       unsigned char TCFU:1;\r
+                       unsigned char TCFV:1;\r
+                       unsigned char TGFD:1;\r
+                       unsigned char TGFC:1;\r
+                       unsigned char TGFB:1;\r
+                       unsigned char TGFA:1;\r
+               } BIT;\r
+       } TSR;\r
+       unsigned short TCNT;\r
+       unsigned short TGRA;\r
+       unsigned short TGRB;\r
+};\r
+\r
+struct st_tpua {\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char :2;\r
+                       unsigned char CST5:1;\r
+                       unsigned char CST4:1;\r
+                       unsigned char CST3:1;\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 :2;\r
+                       unsigned char SYNC5:1;\r
+                       unsigned char SYNC4:1;\r
+                       unsigned char SYNC3:1;\r
+                       unsigned char SYNC2:1;\r
+                       unsigned char SYNC1:1;\r
+                       unsigned char SYNC0:1;\r
+               } BIT;\r
+       } TSYR;\r
+};\r
+\r
+struct st_usb {\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\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 :11;\r
+                       unsigned long FIXPHY0:1;\r
+                       unsigned long DRPD0:1;\r
+                       unsigned long :1;\r
+                       unsigned long RPUE0:1;\r
+                       unsigned long SRPC0:1;\r
+               } BIT;\r
+       } DPUSR0R;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\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 :8;\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_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
+       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
+       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
+       char           wk2[10];\r
+       unsigned short CFIFO;\r
+       char           wk3[2];\r
+       unsigned short D0FIFO;\r
+       char           wk4[2];\r
+       unsigned short D1FIFO;\r
+       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 DTLN:9;\r
+               } BIT;\r
+       } CFIFOCTR;\r
+       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 DTLN:9;\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 DTLN:9;\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
+               } 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
+               } BIT;\r
+       } INTENB1;\r
+       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 PIPE9NRDYE:1;\r
+                       unsigned short PIPE8NRDYE:1;\r
+                       unsigned short PIPE7NRDYE:1;\r
+                       unsigned short PIPE6NRDYE:1;\r
+                       unsigned short PIPE5NRDYE:1;\r
+                       unsigned short PIPE4NRDYE:1;\r
+                       unsigned short PIPE3NRDYE:1;\r
+                       unsigned short PIPE2NRDYE:1;\r
+                       unsigned short PIPE1NRDYE:1;\r
+                       unsigned short PIPE0NRDYE: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
+               } BIT;\r
+       } SOFCFG;\r
+       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
+               } BIT;\r
+       } INTSTS1;\r
+       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 PIPE9NRDY:1;\r
+                       unsigned short PIPE8NRDY:1;\r
+                       unsigned short PIPE7NRDY:1;\r
+                       unsigned short PIPE6NRDY:1;\r
+                       unsigned short PIPE5NRDY:1;\r
+                       unsigned short PIPE4NRDY:1;\r
+                       unsigned short PIPE3NRDY:1;\r
+                       unsigned short PIPE2NRDY:1;\r
+                       unsigned short PIPE1NRDY:1;\r
+                       unsigned short PIPE0NRDY:1;\r
+               } BIT;\r
+       } NRDYSTS;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short PIPE9BEMP:1;\r
+                       unsigned short PIPE8BEMP:1;\r
+                       unsigned short PIPE7BEMP:1;\r
+                       unsigned short PIPE6BEMP:1;\r
+                       unsigned short PIPE5BEMP:1;\r
+                       unsigned short PIPE4BEMP:1;\r
+                       unsigned short PIPE3BEMP:1;\r
+                       unsigned short PIPE2BEMP:1;\r
+                       unsigned short PIPE1BEMP:1;\r
+                       unsigned short PIPE0BEMP: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
+               } 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
+       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
+               } 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
+       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
+       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
+       char           wk13[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short DEVSEL:4;\r
+                       unsigned short :3;\r
+                       unsigned short MXPS:9;\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
+       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
+               } 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
+               } 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
+               } 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
+               } 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
+               } BIT;\r
+       } PIPE5TRE;\r
+       unsigned short PIPE5TRN;\r
+       char           wk15[44];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD2;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD3;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD4;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD5;\r
+       char           wk16[20];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :24;\r
+                       unsigned long USBSPD:2;\r
+                       unsigned long :2;\r
+                       unsigned long SLEWF01:1;\r
+                       unsigned long SLEWF00:1;\r
+                       unsigned long SLEWR01:1;\r
+                       unsigned long SLEWR00:1;\r
+               } BIT;\r
+       } DPUSR2R;\r
+};\r
+\r
+struct st_usbhs {\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :7;\r
+                       unsigned short CNEN:1;\r
+                       unsigned short HSE:1;\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
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :12;\r
+                       unsigned short BWAIT:4;\r
+               } BIT;\r
+       } BUSWAIT;\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
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :15;\r
+                       unsigned short PLLLOCK:1;\r
+               } BIT;\r
+       } PLLSTA;\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
+       char           wk0[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :12;\r
+                       unsigned short UTST:4;\r
+               } BIT;\r
+       } TESTMODE;\r
+       char           wk1[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short DFACC:2;\r
+                       unsigned short :7;\r
+                       unsigned short TENDE:1;\r
+               } BIT;\r
+       } D0FBCFG;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short DFACC:2;\r
+                       unsigned short :7;\r
+                       unsigned short TENDE:1;\r
+               } BIT;\r
+       } D1FBCFG;\r
+       unsigned short CFIFO;\r
+       unsigned short CFIFO1;\r
+       unsigned short D0FIFO;\r
+       unsigned short D0FIFO1;\r
+       unsigned short D1FIFO;\r
+       unsigned short D1FIFO1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short RCNT:1;\r
+                       unsigned short REW:1;\r
+                       unsigned short :2;\r
+                       unsigned short MBW:2;\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 :1;\r
+                       unsigned short DTLN:12;\r
+               } BIT;\r
+       } CFIFOCTR;\r
+       char           wk2[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 MBW:2;\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 :1;\r
+                       unsigned short DTLN:12;\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 MBW:2;\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 :1;\r
+                       unsigned short DTLN:12;\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
+               } 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 :1;\r
+                       unsigned short L1RSMENDE:1;\r
+                       unsigned short LPMENDE:1;\r
+                       unsigned short :1;\r
+                       unsigned short EOFERRE:1;\r
+                       unsigned short SIGNE:1;\r
+                       unsigned short SACKE:1;\r
+                       unsigned short :3;\r
+                       unsigned short PDDETINTE:1;\r
+               } BIT;\r
+       } INTENB1;\r
+       char           wk3[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 PIPE9NRDYE:1;\r
+                       unsigned short PIPE8NRDYE:1;\r
+                       unsigned short PIPE7NRDYE:1;\r
+                       unsigned short PIPE6NRDYE:1;\r
+                       unsigned short PIPE5NRDYE:1;\r
+                       unsigned short PIPE4NRDYE:1;\r
+                       unsigned short PIPE3NRDYE:1;\r
+                       unsigned short PIPE2NRDYE:1;\r
+                       unsigned short PIPE1NRDYE:1;\r
+                       unsigned short PIPE0NRDYE: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 INTL:1;\r
+                       unsigned short EDGESTS:1;\r
+                       unsigned short SOFM:2;\r
+               } BIT;\r
+       } SOFCFG;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short HSEB:1;\r
+                       unsigned short :3;\r
+                       unsigned short repstart:1;\r
+                       unsigned short :1;\r
+                       unsigned short repsel1:1;\r
+                       unsigned short repsel0:1;\r
+                       unsigned short :2;\r
+                       unsigned short clksel1:1;\r
+                       unsigned short clksel0:1;\r
+                       unsigned short cdpen:1;\r
+                       unsigned short :1;\r
+                       unsigned short pllreset:1;\r
+                       unsigned short dirpd:1;\r
+               } BIT;\r
+       } PHYSET;\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 :1;\r
+                       unsigned short L1RSMEND:1;\r
+                       unsigned short LPMEND:1;\r
+                       unsigned short :1;\r
+                       unsigned short EOFERR:1;\r
+                       unsigned short SIGN:1;\r
+                       unsigned short SACK:1;\r
+                       unsigned short :3;\r
+                       unsigned short PDDETINT:1;\r
+               } BIT;\r
+       } INTSTS1;\r
+       char           wk4[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 PIPE9NRDYE:1;\r
+                       unsigned short PIPE8NRDYE:1;\r
+                       unsigned short PIPE7NRDYE:1;\r
+                       unsigned short PIPE6NRDYE:1;\r
+                       unsigned short PIPE5NRDYE:1;\r
+                       unsigned short PIPE4NRDYE:1;\r
+                       unsigned short PIPE3NRDYE:1;\r
+                       unsigned short PIPE2NRDYE:1;\r
+                       unsigned short PIPE1NRDYE:1;\r
+                       unsigned short PIPE0NRDYE:1;\r
+               } BIT;\r
+       } NRDYSTS;\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 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 :13;\r
+                       unsigned short UFRNM:3;\r
+               } BIT;\r
+       } UFRMNUM;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :9;\r
+                       unsigned short USBADDR:7;\r
+               } BIT;\r
+       } USBADDR;\r
+       char           wk5[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 :11;\r
+                       unsigned short DIR:1;\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 CSCLR:1;\r
+                       unsigned short CSSTS:1;\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 PINGE:1;\r
+                       unsigned short :1;\r
+                       unsigned short CCPL:1;\r
+                       unsigned short PID:2;\r
+               } BIT;\r
+       } DCPCTR;\r
+       char           wk6[2];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :12;\r
+                       unsigned short PIPESEL:4;\r
+               } BIT;\r
+       } PIPESEL;\r
+       char           wk7[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 CNTMD: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
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short BUFSIZE:5;\r
+                       unsigned short :2;\r
+                       unsigned short BUFNMB:8;\r
+               } BIT;\r
+       } PIPEBUF;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short DEVSEL:4;\r
+                       unsigned short :1;\r
+                       unsigned short MXPS:11;\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 CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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 CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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 CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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 CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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 CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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 INBUFM:1;\r
+                       unsigned short CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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
+       } PIPE6CTR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short BSTS:1;\r
+                       unsigned short INBUFM:1;\r
+                       unsigned short CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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
+       } PIPE7CTR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short BSTS:1;\r
+                       unsigned short INBUFM:1;\r
+                       unsigned short CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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
+       } PIPE8CTR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short BSTS:1;\r
+                       unsigned short INBUFM:1;\r
+                       unsigned short CSCLR:1;\r
+                       unsigned short CSSTS:1;\r
+                       unsigned short :1;\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
+       } PIPE9CTR;\r
+       char           wk8[14];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short TRENB:1;\r
+                       unsigned short TRCLR:1;\r
+               } BIT;\r
+       } PIPE1TRE;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short TRNCNT:16;\r
+               } BIT;\r
+       } PIPE1TRN;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short TRENB:1;\r
+                       unsigned short TRCLR:1;\r
+               } BIT;\r
+       } PIPE2TRE;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short TRNCNT:16;\r
+               } BIT;\r
+       } PIPE2TRN;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short TRENB:1;\r
+                       unsigned short TRCLR:1;\r
+               } BIT;\r
+       } PIPE3TRE;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short TRNCNT:16;\r
+               } BIT;\r
+       } PIPE3TRN;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short TRENB:1;\r
+                       unsigned short TRCLR:1;\r
+               } BIT;\r
+       } PIPE4TRE;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short TRNCNT:16;\r
+               } BIT;\r
+       } PIPE4TRN;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short TRENB:1;\r
+                       unsigned short TRCLR:1;\r
+               } BIT;\r
+       } PIPE5TRE;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short TRNCNT:16;\r
+               } BIT;\r
+       } PIPE5TRN;\r
+       char           wk9[44];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short UPPHUB:4;\r
+                       unsigned short HUBPORT:3;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD0;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short UPPHUB:4;\r
+                       unsigned short HUBPORT:3;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short UPPHUB:4;\r
+                       unsigned short HUBPORT:3;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD2;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short UPPHUB:4;\r
+                       unsigned short HUBPORT:3;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD3;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short UPPHUB:4;\r
+                       unsigned short HUBPORT:3;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD4;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short UPPHUB:4;\r
+                       unsigned short HUBPORT:3;\r
+                       unsigned short USBSPD:2;\r
+               } BIT;\r
+       } DEVADD5;\r
+       char           wk10[36];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :8;\r
+                       unsigned short HWLPM:1;\r
+               } BIT;\r
+       } LPCTRL;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short SUSPENDM:1;\r
+               } BIT;\r
+       } LPSTS;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short SUSMON:1;\r
+                       unsigned short :1;\r
+                       unsigned short OPMODE:2;\r
+                       unsigned short TERMSEL:1;\r
+                       unsigned short XCVRSEL:2;\r
+               } BIT;\r
+       } PHYFUNCTR;\r
+       char           wk11[4];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :5;\r
+                       unsigned short DMPUDWN:1;\r
+                       unsigned short DPPUDWN:1;\r
+               } BIT;\r
+       } PHYOTGCTR;\r
+       char           wk12[52];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :6;\r
+                       unsigned short PDDETSTS:1;\r
+                       unsigned short CHGDETSTS:1;\r
+                       unsigned short :2;\r
+                       unsigned short DCPMODE:1;\r
+                       unsigned short VDMSRCE:1;\r
+                       unsigned short IDPSINKE:1;\r
+                       unsigned short VDPSRCE:1;\r
+                       unsigned short IDMSINKE:1;\r
+                       unsigned short IDPSRCE:1;\r
+               } BIT;\r
+       } BCCTRL;\r
+       char           wk13[14];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short impoffset2:1;\r
+                       unsigned short impoffset1:1;\r
+                       unsigned short impoffset0:1;\r
+                       unsigned short hsiup3:1;\r
+                       unsigned short hsiup2:1;\r
+                       unsigned short hsiup1:1;\r
+                       unsigned short hsiup0:1;\r
+                       unsigned short pcompenb:1;\r
+                       unsigned short :3;\r
+                       unsigned short dfall1:1;\r
+                       unsigned short dfall0:1;\r
+                       unsigned short drise1:1;\r
+                       unsigned short drise0:1;\r
+               } BIT;\r
+       } PHYTRIM1;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :1;\r
+                       unsigned short dis2:1;\r
+                       unsigned short dis1:1;\r
+                       unsigned short dis0:1;\r
+                       unsigned short :2;\r
+                       unsigned short prd1:1;\r
+                       unsigned short prd0:1;\r
+                       unsigned short hsrxenmode:1;\r
+                       unsigned short :3;\r
+                       unsigned short squ3:1;\r
+                       unsigned short squ2:1;\r
+                       unsigned short squ1:1;\r
+                       unsigned short squ0:1;\r
+               } BIT;\r
+       } PHYTRIM2;\r
+       char           wk14[12];\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long DVBSTS:1;\r
+                       unsigned long :1;\r
+                       unsigned long DOVCB:1;\r
+                       unsigned long DOVCA:1;\r
+                       unsigned long :2;\r
+                       unsigned long DM:1;\r
+                       unsigned long DP:1;\r
+                       unsigned long :11;\r
+                       unsigned long FIXPHY:1;\r
+                       unsigned long :3;\r
+                       unsigned long SRPC:1;\r
+               } BIT;\r
+       } DPUSR0R;\r
+       union {\r
+               unsigned long LONG;\r
+               struct {\r
+                       unsigned long :8;\r
+                       unsigned long DVBINT:1;\r
+                       unsigned long :1;\r
+                       unsigned long DOVRCRB:1;\r
+                       unsigned long DOVRCRA:1;\r
+                       unsigned long :2;\r
+                       unsigned long DMINT:1;\r
+                       unsigned long DPINT:1;\r
+                       unsigned long :8;\r
+                       unsigned long DVBSE:1;\r
+                       unsigned long :1;\r
+                       unsigned long DOVRCRBE:1;\r
+                       unsigned long DOVRCRAE:1;\r
+                       unsigned long :2;\r
+                       unsigned long DMINTE:1;\r
+                       unsigned long DPINTE:1;\r
+               } BIT;\r
+       } DPUSR1R;\r
+};\r
+\r
+struct st_wdt {\r
+       unsigned char  WDTRR;\r
+       char           wk0[1];\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short :2;\r
+                       unsigned short RPSS:2;\r
+                       unsigned short :2;\r
+                       unsigned short RPES:2;\r
+                       unsigned short CKS:4;\r
+                       unsigned short :2;\r
+                       unsigned short TOPS:2;\r
+               } BIT;\r
+       } WDTCR;\r
+       union {\r
+               unsigned short WORD;\r
+               struct {\r
+                       unsigned short REFEF:1;\r
+                       unsigned short UNDFF:1;\r
+                       unsigned short CNTVAL:14;\r
+               } BIT;\r
+       } WDTSR;\r
+       union {\r
+               unsigned char BYTE;\r
+               struct {\r
+                       unsigned char RSTIRQS:1;\r
+               } BIT;\r
+       } WDTRCR;\r
+};\r
+\r
+enum enum_ir {\r
+IR_BSC_BUSERR=16,IR_RAM_RAMERR=18,\r
+IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,\r
+IR_ICU_SWINT2=26,IR_ICU_SWINT,\r
+IR_CMT0_CMI0,\r
+IR_CMT1_CMI1,\r
+IR_CMTW0_CMWI0,\r
+IR_CMTW_CMWI1,\r
+IR_USBHS_D0FIFO2,IR_USBHS_D1FIFO2,\r
+IR_USB0_D0FIFO0,IR_USB0_D1FIFO0,\r
+IR_RSPI0_SPRI0=38,IR_RSPI0_SPTI0,\r
+IR_QSPI_SPRI=42,IR_QSPI_SPTI,\r
+IR_SDHI_SBFAI,\r
+IR_MMC_MBFAI,\r
+IR_SSI0_SSITXI0,IR_SSI0_SSIRXI0,\r
+IR_SSI1_SSIRTI1,\r
+IR_SRC0_IDEI0=50,IR_SRC0_ODFI0,\r
+IR_RIIC0_RXI0,IR_RIIC0_TXI0,\r
+IR_RIIC2_RXI2,IR_RIIC2_TXI2,\r
+IR_SCI0_RXI0=58,IR_SCI0_TXI0,\r
+IR_SCI1_RXI1,IR_SCI1_TXI1,\r
+IR_SCI2_RXI2,IR_SCI2_TXI2,\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_SCI3_RXI3,IR_SCI3_TXI3,\r
+IR_SCI4_RXI4,IR_SCI4_TXI4,\r
+IR_SCI5_RXI5,IR_SCI5_TXI5,\r
+IR_SCI6_RXI6,IR_SCI6_TXI6,\r
+IR_LVD1_COMPA1,\r
+IR_LVD2_COMPA2,\r
+IR_USB0_USBR0,\r
+IR_RTC_ALARM,IR_RTC_PRD,\r
+IR_USBHS_HSUSBR,\r
+IR_IWDT_IWUNI,\r
+IR_WDT_WUNI,\r
+IR_SCI7_RXI7,IR_SCI7_TXI7,\r
+IR_SCIF8_RXIF8,IR_SCIF8_TXIF8,\r
+IR_SCIF9_RXIF9,IR_SCIF9_TXIF9,\r
+IR_SCIF10_RXIF10,IR_SCIF10_TXIF10,\r
+IR_ICU_GROUPBE0,IR_ICU_GROUPBE1,IR_ICU_GROUPAE0,IR_ICU_GROUPAE1,IR_ICU_GROUPBL0,IR_ICU_GROUPBL1,IR_ICU_GROUPAL0,IR_ICU_GROUPAL1,\r
+IR_SCIF11_RXIF11,IR_SCIF11_TXIF11,\r
+IR_SCI12_RXI12,IR_SCI12_TXI12,\r
+IR_DMAC_DMAC0I=120,IR_DMAC_DMAC1I,IR_DMAC_DMAC2I,IR_DMAC_DMAC3I,IR_DMAC_DMAC74I,\r
+IR_ICU_OST,\r
+IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,\r
+IR_PERIB128_INTB128,\r
+IR_PERIB129_INTB129,\r
+IR_PERIB130_INTB130,\r
+IR_PERIB131_INTB131,\r
+IR_PERIB132_INTB132,\r
+IR_PERIB133_INTB133,\r
+IR_PERIB134_INTB134,\r
+IR_PERIB135_INTB135,\r
+IR_PERIB136_INTB136,\r
+IR_PERIB137_INTB137,\r
+IR_PERIB138_INTB138,\r
+IR_PERIB139_INTB139,\r
+IR_PERIB140_INTB140,\r
+IR_PERIB141_INTB141,\r
+IR_PERIB142_INTB142,\r
+IR_PERIB143_INTB143,\r
+IR_PERIB144_INTB144,\r
+IR_PERIB145_INTB145,\r
+IR_PERIB146_INTB146,\r
+IR_PERIB147_INTB147,\r
+IR_PERIB148_INTB148,\r
+IR_PERIB149_INTB149,\r
+IR_PERIB150_INTB150,\r
+IR_PERIB151_INTB151,\r
+IR_PERIB152_INTB152,\r
+IR_PERIB153_INTB153,\r
+IR_PERIB154_INTB154,\r
+IR_PERIB155_INTB155,\r
+IR_PERIB156_INTB156,\r
+IR_PERIB157_INTB157,\r
+IR_PERIB158_INTB158,\r
+IR_PERIB159_INTB159,\r
+IR_PERIB160_INTB160,\r
+IR_PERIB161_INTB161,\r
+IR_PERIB162_INTB162,\r
+IR_PERIB163_INTB163,\r
+IR_PERIB164_INTB164,\r
+IR_PERIB165_INTB165,\r
+IR_PERIB166_INTB166,\r
+IR_PERIB167_INTB167,\r
+IR_PERIB168_INTB168,\r
+IR_PERIB169_INTB169,\r
+IR_PERIB170_INTB170,\r
+IR_PERIB171_INTB171,\r
+IR_PERIB172_INTB172,\r
+IR_PERIB173_INTB173,\r
+IR_PERIB174_INTB174,\r
+IR_PERIB175_INTB175,\r
+IR_PERIB176_INTB176,\r
+IR_PERIB177_INTB177,\r
+IR_PERIB178_INTB178,\r
+IR_PERIB179_INTB179,\r
+IR_PERIB180_INTB180,\r
+IR_PERIB181_INTB181,\r
+IR_PERIB182_INTB182,\r
+IR_PERIB183_INTB183,\r
+IR_PERIB184_INTB184,\r
+IR_PERIB185_INTB185,\r
+IR_PERIB186_INTB186,\r
+IR_PERIB187_INTB187,\r
+IR_PERIB188_INTB188,\r
+IR_PERIB189_INTB189,\r
+IR_PERIB190_INTB190,\r
+IR_PERIB191_INTB191,\r
+IR_PERIB192_INTB192,\r
+IR_PERIB193_INTB193,\r
+IR_PERIB194_INTB194,\r
+IR_PERIB195_INTB195,\r
+IR_PERIB196_INTB196,\r
+IR_PERIB197_INTB197,\r
+IR_PERIB198_INTB198,\r
+IR_PERIB199_INTB199,\r
+IR_PERIB200_INTB200,\r
+IR_PERIB201_INTB201,\r
+IR_PERIB202_INTB202,\r
+IR_PERIB203_INTB203,\r
+IR_PERIB204_INTB204,\r
+IR_PERIB205_INTB205,\r
+IR_PERIB206_INTB206,\r
+IR_PERIB207_INTB207,\r
+IR_PERIA208_INTA208,\r
+IR_PERIA209_INTA209,\r
+IR_PERIA210_INTA210,\r
+IR_PERIA211_INTA211,\r
+IR_PERIA212_INTA212,\r
+IR_PERIA213_INTA213,\r
+IR_PERIA214_INTA214,\r
+IR_PERIA215_INTA215,\r
+IR_PERIA216_INTA216,\r
+IR_PERIA217_INTA217,\r
+IR_PERIA218_INTA218,\r
+IR_PERIA219_INTA219,\r
+IR_PERIA220_INTA220,\r
+IR_PERIA221_INTA221,\r
+IR_PERIA222_INTA222,\r
+IR_PERIA223_INTA223,\r
+IR_PERIA224_INTA224,\r
+IR_PERIA225_INTA225,\r
+IR_PERIA226_INTA226,\r
+IR_PERIA227_INTA227,\r
+IR_PERIA228_INTA228,\r
+IR_PERIA229_INTA229,\r
+IR_PERIA230_INTA230,\r
+IR_PERIA231_INTA231,\r
+IR_PERIA232_INTA232,\r
+IR_PERIA233_INTA233,\r
+IR_PERIA234_INTA234,\r
+IR_PERIA235_INTA235,\r
+IR_PERIA236_INTA236,\r
+IR_PERIA237_INTA237,\r
+IR_PERIA238_INTA238,\r
+IR_PERIA239_INTA239,\r
+IR_PERIA240_INTA240,\r
+IR_PERIA241_INTA241,\r
+IR_PERIA242_INTA242,\r
+IR_PERIA243_INTA243,\r
+IR_PERIA244_INTA244,\r
+IR_PERIA245_INTA245,\r
+IR_PERIA246_INTA246,\r
+IR_PERIA247_INTA247,\r
+IR_PERIA248_INTA248,\r
+IR_PERIA249_INTA249,\r
+IR_PERIA250_INTA250,\r
+IR_PERIA251_INTA251,\r
+IR_PERIA252_INTA252,\r
+IR_PERIA253_INTA253,\r
+IR_PERIA254_INTA254,\r
+IR_PERIA255_INTA255\r
+};\r
+\r
+enum enum_dtce {\r
+DTCE_ICU_SWINT2=26,DTCE_ICU_SWINT,\r
+DTCE_CMT0_CMI0,\r
+DTCE_CMT1_CMI1,\r
+DTCE_CMTW0_CMWI0,\r
+DTCE_CMTW_CMWI1,\r
+DTCE_USBHS_D0FIFO2,DTCE_USBHS_D1FIFO2,\r
+DTCE_USB0_D0FIFO0,DTCE_USB0_D1FIFO0,\r
+DTCE_RSPI0_SPRI0=38,DTCE_RSPI0_SPTI0,\r
+DTCE_QSPI_SPRI=42,DTCE_QSPI_SPTI,\r
+DTCE_SDHI_SBFAI,\r
+DTCE_MMC_MBFAI,\r
+DTCE_SSI0_SSITXI0,DTCE_SSI0_SSIRXI0,\r
+DTCE_SSI1_SSIRTI1,\r
+DTCE_SRC0_IDEI0=50,DTCE_SRC0_ODFI0,\r
+DTCE_RIIC0_RXI0,DTCE_RIIC0_TXI0,\r
+DTCE_RIIC2_RXI2,DTCE_RIIC2_TXI2,\r
+DTCE_SCI0_RXI0=58,DTCE_SCI0_TXI0,\r
+DTCE_SCI1_RXI1,DTCE_SCI1_TXI1,\r
+DTCE_SCI2_RXI2,DTCE_SCI2_TXI2,\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_SCI3_RXI3,DTCE_SCI3_TXI3,\r
+DTCE_SCI4_RXI4,DTCE_SCI4_TXI4,\r
+DTCE_SCI5_RXI5,DTCE_SCI5_TXI5,\r
+DTCE_SCI6_RXI6,DTCE_SCI6_TXI6,\r
+DTCE_PDC_PCDFI=97,\r
+DTCE_SCI7_RXI7,DTCE_SCI7_TXI7,\r
+DTCE_SCIF8_RXIF8,DTCE_SCIF8_TXIF8,\r
+DTCE_SCIF9_RXIF9,DTCE_SCIF9_TXIF9,\r
+DTCE_SCIF10_RXIF10,DTCE_SCIF10_TXIF10,\r
+DTCE_SCIF11_RXIF11=114,DTCE_SCIF11_TXIF11,\r
+DTCE_SCI12_RXI12,DTCE_SCI12_TXI12,\r
+DTCE_DMAC_DMAC0I=120,DTCE_DMAC_DMAC1I,DTCE_DMAC_DMAC2I,DTCE_DMAC_DMAC3I,\r
+DTCE_EXDMAC_EXDMAC0I=126,DTCE_EXDMAC_EXDMAC1I,\r
+DTCE_PERIB128_INTB128,\r
+DTCE_PERIB129_INTB129,\r
+DTCE_PERIB130_INTB130,\r
+DTCE_PERIB131_INTB131,\r
+DTCE_PERIB132_INTB132,\r
+DTCE_PERIB133_INTB133,\r
+DTCE_PERIB134_INTB134,\r
+DTCE_PERIB135_INTB135,\r
+DTCE_PERIB136_INTB136,\r
+DTCE_PERIB137_INTB137,\r
+DTCE_PERIB138_INTB138,\r
+DTCE_PERIB139_INTB139,\r
+DTCE_PERIB140_INTB140,\r
+DTCE_PERIB141_INTB141,\r
+DTCE_PERIB142_INTB142,\r
+DTCE_PERIB143_INTB143,\r
+DTCE_PERIB144_INTB144,\r
+DTCE_PERIB145_INTB145,\r
+DTCE_PERIB146_INTB146,\r
+DTCE_PERIB147_INTB147,\r
+DTCE_PERIB148_INTB148,\r
+DTCE_PERIB149_INTB149,\r
+DTCE_PERIB150_INTB150,\r
+DTCE_PERIB151_INTB151,\r
+DTCE_PERIB152_INTB152,\r
+DTCE_PERIB153_INTB153,\r
+DTCE_PERIB154_INTB154,\r
+DTCE_PERIB155_INTB155,\r
+DTCE_PERIB156_INTB156,\r
+DTCE_PERIB157_INTB157,\r
+DTCE_PERIB158_INTB158,\r
+DTCE_PERIB159_INTB159,\r
+DTCE_PERIB160_INTB160,\r
+DTCE_PERIB161_INTB161,\r
+DTCE_PERIB162_INTB162,\r
+DTCE_PERIB163_INTB163,\r
+DTCE_PERIB164_INTB164,\r
+DTCE_PERIB165_INTB165,\r
+DTCE_PERIB166_INTB166,\r
+DTCE_PERIB167_INTB167,\r
+DTCE_PERIB168_INTB168,\r
+DTCE_PERIB169_INTB169,\r
+DTCE_PERIB170_INTB170,\r
+DTCE_PERIB171_INTB171,\r
+DTCE_PERIB172_INTB172,\r
+DTCE_PERIB173_INTB173,\r
+DTCE_PERIB174_INTB174,\r
+DTCE_PERIB175_INTB175,\r
+DTCE_PERIB176_INTB176,\r
+DTCE_PERIB177_INTB177,\r
+DTCE_PERIB178_INTB178,\r
+DTCE_PERIB179_INTB179,\r
+DTCE_PERIB180_INTB180,\r
+DTCE_PERIB181_INTB181,\r
+DTCE_PERIB182_INTB182,\r
+DTCE_PERIB183_INTB183,\r
+DTCE_PERIB184_INTB184,\r
+DTCE_PERIB185_INTB185,\r
+DTCE_PERIB186_INTB186,\r
+DTCE_PERIB187_INTB187,\r
+DTCE_PERIB188_INTB188,\r
+DTCE_PERIB189_INTB189,\r
+DTCE_PERIB190_INTB190,\r
+DTCE_PERIB191_INTB191,\r
+DTCE_PERIB192_INTB192,\r
+DTCE_PERIB193_INTB193,\r
+DTCE_PERIB194_INTB194,\r
+DTCE_PERIB195_INTB195,\r
+DTCE_PERIB196_INTB196,\r
+DTCE_PERIB197_INTB197,\r
+DTCE_PERIB198_INTB198,\r
+DTCE_PERIB199_INTB199,\r
+DTCE_PERIB200_INTB200,\r
+DTCE_PERIB201_INTB201,\r
+DTCE_PERIB202_INTB202,\r
+DTCE_PERIB203_INTB203,\r
+DTCE_PERIB204_INTB204,\r
+DTCE_PERIB205_INTB205,\r
+DTCE_PERIB206_INTB206,\r
+DTCE_PERIB207_INTB207,\r
+DTCE_PERIA208_INTA208,\r
+DTCE_PERIA209_INTA209,\r
+DTCE_PERIA210_INTA210,\r
+DTCE_PERIA211_INTA211,\r
+DTCE_PERIA212_INTA212,\r
+DTCE_PERIA213_INTA213,\r
+DTCE_PERIA214_INTA214,\r
+DTCE_PERIA215_INTA215,\r
+DTCE_PERIA216_INTA216,\r
+DTCE_PERIA217_INTA217,\r
+DTCE_PERIA218_INTA218,\r
+DTCE_PERIA219_INTA219,\r
+DTCE_PERIA220_INTA220,\r
+DTCE_PERIA221_INTA221,\r
+DTCE_PERIA222_INTA222,\r
+DTCE_PERIA223_INTA223,\r
+DTCE_PERIA224_INTA224,\r
+DTCE_PERIA225_INTA225,\r
+DTCE_PERIA226_INTA226,\r
+DTCE_PERIA227_INTA227,\r
+DTCE_PERIA228_INTA228,\r
+DTCE_PERIA229_INTA229,\r
+DTCE_PERIA230_INTA230,\r
+DTCE_PERIA231_INTA231,\r
+DTCE_PERIA232_INTA232,\r
+DTCE_PERIA233_INTA233,\r
+DTCE_PERIA234_INTA234,\r
+DTCE_PERIA235_INTA235,\r
+DTCE_PERIA236_INTA236,\r
+DTCE_PERIA237_INTA237,\r
+DTCE_PERIA238_INTA238,\r
+DTCE_PERIA239_INTA239,\r
+DTCE_PERIA240_INTA240,\r
+DTCE_PERIA241_INTA241,\r
+DTCE_PERIA242_INTA242,\r
+DTCE_PERIA243_INTA243,\r
+DTCE_PERIA244_INTA244,\r
+DTCE_PERIA245_INTA245,\r
+DTCE_PERIA246_INTA246,\r
+DTCE_PERIA247_INTA247,\r
+DTCE_PERIA248_INTA248,\r
+DTCE_PERIA249_INTA249,\r
+DTCE_PERIA250_INTA250,\r
+DTCE_PERIA251_INTA251,\r
+DTCE_PERIA252_INTA252,\r
+DTCE_PERIA253_INTA253,\r
+DTCE_PERIA254_INTA254,\r
+DTCE_PERIA255_INTA255\r
+};\r
+\r
+enum enum_ier {\r
+IER_BSC_BUSERR=0x02,\r
+IER_RAM_RAMERR=0x02,\r
+IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,\r
+IER_ICU_SWINT2=0x03,IER_ICU_SWINT=0x03,\r
+IER_CMT0_CMI0=0x03,\r
+IER_CMT1_CMI1=0x03,\r
+IER_CMTW0_CMWI0=0x03,\r
+IER_CMTW_CMWI1=0x03,\r
+IER_USBHS_D0FIFO2=0x04,IER_USBHS_D1FIFO2=0x04,\r
+IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,\r
+IER_RSPI0_SPRI0=0x04,IER_RSPI0_SPTI0=0x04,\r
+IER_QSPI_SPRI=0x05,IER_QSPI_SPTI=0x05,\r
+IER_SDHI_SBFAI=0x05,\r
+IER_MMC_MBFAI=0x05,\r
+IER_SSI0_SSITXI0=0x05,IER_SSI0_SSIRXI0=0x05,\r
+IER_SSI1_SSIRTI1=0x06,\r
+IER_SRC0_IDEI0=0x06,IER_SRC0_ODFI0=0x06,\r
+IER_RIIC0_RXI0=0x06,IER_RIIC0_TXI0=0x06,\r
+IER_RIIC2_RXI2=0x06,IER_RIIC2_TXI2=0x06,\r
+IER_SCI0_RXI0=0x07,IER_SCI0_TXI0=0x07,\r
+IER_SCI1_RXI1=0x07,IER_SCI1_TXI1=0x07,\r
+IER_SCI2_RXI2=0x07,IER_SCI2_TXI2=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_SCI3_RXI3=0x0A,IER_SCI3_TXI3=0x0A,\r
+IER_SCI4_RXI4=0x0A,IER_SCI4_TXI4=0x0A,\r
+IER_SCI5_RXI5=0x0A,IER_SCI5_TXI5=0x0A,\r
+IER_SCI6_RXI6=0x0A,IER_SCI6_TXI6=0x0A,\r
+IER_LVD1_COMPA1=0x0B,\r
+IER_LVD2_COMPA2=0x0B,\r
+IER_USB0_USBR0=0x0B,\r
+IER_RTC_ALARM=0x0B,IER_RTC_PRD=0x0B,\r
+IER_USBHS_HSUSBR=0x0B,\r
+IER_IWDT_IWUNI=0x0B,\r
+IER_WDT_WUNI=0x0C,\r
+IER_PDC_PCDFI=0x0C,\r
+IER_SCI7_RXI7=0x0C,IER_SCI7_TXI7=0x0C,\r
+IER_SCIF8_RXIF8=0x0C,IER_SCIF8_TXIF8=0x0C,\r
+IER_SCIF9_RXIF9=0x0C,IER_SCIF9_TXIF9=0x0C,\r
+IER_SCIF10_RXIF10=0x0D,IER_SCIF10_TXIF10=0x0D,\r
+IER_ICU_GROUPBE0=0x0D,IER_ICU_GROUPBE1=0x0D,IER_ICU_GROUPAE0=0x0D,IER_ICU_GROUPAE1=0x0D,IER_ICU_GROUPBL0=0x0D,IER_ICU_GROUPBL1=0x0D,IER_ICU_GROUPAL0=0x0E,IER_ICU_GROUPAL1=0x0E,\r
+IER_SCIF11_RXIF11=0x0E,IER_SCIF11_TXIF11=0x0E,\r
+IER_SCI12_RXI12=0x0E,IER_SCI12_TXI12=0x0E,\r
+IER_DMAC_DMAC0I=0x0F,IER_DMAC_DMAC1I=0x0F,IER_DMAC_DMAC2I=0x0F,IER_DMAC_DMAC3I=0x0F,IER_DMAC_DMAC74I=0x0F,\r
+IER_ICU_OST=0x0F,\r
+IER_EXDMAC_EXDMAC0I=0x0F,IER_EXDMAC_EXDMAC1I=0x0F,\r
+IER_PERIB128_INTB128=0x10,\r
+IER_PERIB129_INTB129=0x10,\r
+IER_PERIB130_INTB130=0x10,\r
+IER_PERIB131_INTB131=0x10,\r
+IER_PERIB132_INTB132=0x10,\r
+IER_PERIB133_INTB133=0x10,\r
+IER_PERIB134_INTB134=0x10,\r
+IER_PERIB135_INTB135=0x10,\r
+IER_PERIB136_INTB136=0x11,\r
+IER_PERIB137_INTB137=0x11,\r
+IER_PERIB138_INTB138=0x11,\r
+IER_PERIB139_INTB139=0x11,\r
+IER_PERIB140_INTB140=0x11,\r
+IER_PERIB141_INTB141=0x11,\r
+IER_PERIB142_INTB142=0x11,\r
+IER_PERIB143_INTB143=0x11,\r
+IER_PERIB144_INTB144=0x12,\r
+IER_PERIB145_INTB145=0x12,\r
+IER_PERIB146_INTB146=0x12,\r
+IER_PERIB147_INTB147=0x12,\r
+IER_PERIB148_INTB148=0x12,\r
+IER_PERIB149_INTB149=0x12,\r
+IER_PERIB150_INTB150=0x12,\r
+IER_PERIB151_INTB151=0x12,\r
+IER_PERIB152_INTB152=0x13,\r
+IER_PERIB153_INTB153=0x13,\r
+IER_PERIB154_INTB154=0x13,\r
+IER_PERIB155_INTB155=0x13,\r
+IER_PERIB156_INTB156=0x13,\r
+IER_PERIB157_INTB157=0x13,\r
+IER_PERIB158_INTB158=0x13,\r
+IER_PERIB159_INTB159=0x13,\r
+IER_PERIB160_INTB160=0x14,\r
+IER_PERIB161_INTB161=0x14,\r
+IER_PERIB162_INTB162=0x14,\r
+IER_PERIB163_INTB163=0x14,\r
+IER_PERIB164_INTB164=0x14,\r
+IER_PERIB165_INTB165=0x14,\r
+IER_PERIB166_INTB166=0x14,\r
+IER_PERIB167_INTB167=0x14,\r
+IER_PERIB168_INTB168=0x15,\r
+IER_PERIB169_INTB169=0x15,\r
+IER_PERIB170_INTB170=0x15,\r
+IER_PERIB171_INTB171=0x15,\r
+IER_PERIB172_INTB172=0x15,\r
+IER_PERIB173_INTB173=0x15,\r
+IER_PERIB174_INTB174=0x15,\r
+IER_PERIB175_INTB175=0x15,\r
+IER_PERIB176_INTB176=0x16,\r
+IER_PERIB177_INTB177=0x16,\r
+IER_PERIB178_INTB178=0x16,\r
+IER_PERIB179_INTB179=0x16,\r
+IER_PERIB180_INTB180=0x16,\r
+IER_PERIB181_INTB181=0x16,\r
+IER_PERIB182_INTB182=0x16,\r
+IER_PERIB183_INTB183=0x16,\r
+IER_PERIB184_INTB184=0x17,\r
+IER_PERIB185_INTB185=0x17,\r
+IER_PERIB186_INTB186=0x17,\r
+IER_PERIB187_INTB187=0x17,\r
+IER_PERIB188_INTB188=0x17,\r
+IER_PERIB189_INTB189=0x17,\r
+IER_PERIB190_INTB190=0x17,\r
+IER_PERIB191_INTB191=0x17,\r
+IER_PERIB192_INTB192=0x18,\r
+IER_PERIB193_INTB193=0x18,\r
+IER_PERIB194_INTB194=0x18,\r
+IER_PERIB195_INTB195=0x18,\r
+IER_PERIB196_INTB196=0x18,\r
+IER_PERIB197_INTB197=0x18,\r
+IER_PERIB198_INTB198=0x18,\r
+IER_PERIB199_INTB199=0x18,\r
+IER_PERIB200_INTB200=0x19,\r
+IER_PERIB201_INTB201=0x19,\r
+IER_PERIB202_INTB202=0x19,\r
+IER_PERIB203_INTB203=0x19,\r
+IER_PERIB204_INTB204=0x19,\r
+IER_PERIB205_INTB205=0x19,\r
+IER_PERIB206_INTB206=0x19,\r
+IER_PERIB207_INTB207=0x19,\r
+IER_PERIA208_INTA208=0x1A,\r
+IER_PERIA209_INTA209=0x1A,\r
+IER_PERIA210_INTA210=0x1A,\r
+IER_PERIA211_INTA211=0x1A,\r
+IER_PERIA212_INTA212=0x1A,\r
+IER_PERIA213_INTA213=0x1A,\r
+IER_PERIA214_INTA214=0x1A,\r
+IER_PERIA215_INTA215=0x1A,\r
+IER_PERIA216_INTA216=0x1B,\r
+IER_PERIA217_INTA217=0x1B,\r
+IER_PERIA218_INTA218=0x1B,\r
+IER_PERIA219_INTA219=0x1B,\r
+IER_PERIA220_INTA220=0x1B,\r
+IER_PERIA221_INTA221=0x1B,\r
+IER_PERIA222_INTA222=0x1B,\r
+IER_PERIA223_INTA223=0x1B,\r
+IER_PERIA224_INTA224=0x1C,\r
+IER_PERIA225_INTA225=0x1C,\r
+IER_PERIA226_INTA226=0x1C,\r
+IER_PERIA227_INTA227=0x1C,\r
+IER_PERIA228_INTA228=0x1C,\r
+IER_PERIA229_INTA229=0x1C,\r
+IER_PERIA230_INTA230=0x1C,\r
+IER_PERIA231_INTA231=0x1C,\r
+IER_PERIA232_INTA232=0x1D,\r
+IER_PERIA233_INTA233=0x1D,\r
+IER_PERIA234_INTA234=0x1D,\r
+IER_PERIA235_INTA235=0x1D,\r
+IER_PERIA236_INTA236=0x1D,\r
+IER_PERIA237_INTA237=0x1D,\r
+IER_PERIA238_INTA238=0x1D,\r
+IER_PERIA239_INTA239=0x1D,\r
+IER_PERIA240_INTA240=0x1E,\r
+IER_PERIA241_INTA241=0x1E,\r
+IER_PERIA242_INTA242=0x1E,\r
+IER_PERIA243_INTA243=0x1E,\r
+IER_PERIA244_INTA244=0x1E,\r
+IER_PERIA245_INTA245=0x1E,\r
+IER_PERIA246_INTA246=0x1E,\r
+IER_PERIA247_INTA247=0x1E,\r
+IER_PERIA248_INTA248=0x1F,\r
+IER_PERIA249_INTA249=0x1F,\r
+IER_PERIA250_INTA250=0x1F,\r
+IER_PERIA251_INTA251=0x1F,\r
+IER_PERIA252_INTA252=0x1F,\r
+IER_PERIA253_INTA253=0x1F,\r
+IER_PERIA254_INTA254=0x1F,\r
+IER_PERIA255_INTA255=0x1F\r
+};\r
+\r
+enum enum_ipr {\r
+IPR_BSC_BUSERR=0,\r
+IPR_RAM_RAMERR=0,\r
+IPR_FCU_FIFERR=1,IPR_FCU_FRDYI=2,\r
+IPR_ICU_SWINT2=3,IPR_ICU_SWINT=3,\r
+IPR_CMT0_CMI0=4,\r
+IPR_CMT1_CMI1=5,\r
+IPR_CMTW0_CMWI0=6,\r
+IPR_CMTW_CMWI1=7,\r
+IPR_USBHS_D0FIFO2=32,IPR_USBHS_D1FIFO2=33,\r
+IPR_USB0_D0FIFO0=34,IPR_USB0_D1FIFO0=35,\r
+IPR_RSPI0_SPRI0=38,IPR_RSPI0_SPTI0=39,\r
+IPR_QSPI_SPRI=42,IPR_QSPI_SPTI=43,\r
+IPR_SDHI_SBFAI=44,\r
+IPR_MMC_MBFAI=45,\r
+IPR_SSI0_SSITXI0=46,IPR_SSI0_SSIRXI0=47,\r
+IPR_SSI1_SSIRTI1=48,\r
+IPR_SRC0_IDEI0=50,IPR_SRC0_ODFI0=51,\r
+IPR_RIIC0_RXI0=52,IPR_RIIC0_TXI0=53,\r
+IPR_RIIC2_RXI2=54,IPR_RIIC2_TXI2=55,\r
+IPR_SCI0_RXI0=58,IPR_SCI0_TXI0=59,\r
+IPR_SCI1_RXI1=60,IPR_SCI1_TXI1=61,\r
+IPR_SCI2_RXI2=62,IPR_SCI2_TXI2=63,\r
+IPR_ICU_IRQ0=64,IPR_ICU_IRQ1=65,IPR_ICU_IRQ2=66,IPR_ICU_IRQ3=67,IPR_ICU_IRQ4=68,IPR_ICU_IRQ5=69,IPR_ICU_IRQ6=70,IPR_ICU_IRQ7=71,IPR_ICU_IRQ8=72,IPR_ICU_IRQ9=73,IPR_ICU_IRQ10=74,IPR_ICU_IRQ11=75,IPR_ICU_IRQ12=76,IPR_ICU_IRQ13=77,IPR_ICU_IRQ14=78,IPR_ICU_IRQ15=79,\r
+IPR_SCI3_RXI3=80,IPR_SCI3_TXI3=81,\r
+IPR_SCI4_RXI4=82,IPR_SCI4_TXI4=83,\r
+IPR_SCI5_RXI5=84,IPR_SCI5_TXI5=85,\r
+IPR_SCI6_RXI6=86,IPR_SCI6_TXI6=87,\r
+IPR_LVD1_COMPA1=88,\r
+IPR_LVD2_COMPA2=89,\r
+IPR_USB0_USBR0=90,\r
+IPR_RTC_ALARM=92,IPR_RTC_PRD=93,\r
+IPR_USBHS_HSUSBR=94,\r
+IPR_IWDT_IWUNI=95,\r
+IPR_WDT_WUNI=96,\r
+IPR_PDC_PCDFI=97,\r
+IPR_SCI7_RXI7=98,IPR_SCI7_TXI7=99,\r
+IPR_SCIF8_RXIF8=100,IPR_SCIF8_TXIF8=101,\r
+IPR_SCIF9_RXIF9=102,IPR_SCIF9_TXIF9=103,\r
+IPR_SCIF10_RXIF10=104,IPR_SCIF10_TXIF10=105,\r
+IPR_ICU_GROUPBE0=106,IPR_ICU_GROUPBE1=107,IPR_ICU_GROUPAE0=108,IPR_ICU_GROUPAE1=109,IPR_ICU_GROUPBL0=110,IPR_ICU_GROUPBL1=111,IPR_ICU_GROUPAL0=112,IPR_ICU_GROUPAL1=113,\r
+IPR_SCIF11_RXIF11=114,IPR_SCIF11_TXIF11=115,\r
+IPR_SCI12_RXI12=116,IPR_SCI12_TXI12=117,\r
+IPR_DMAC_DMAC0I=120,IPR_DMAC_DMAC1I=121,IPR_DMAC_DMAC2I=122,IPR_DMAC_DMAC3I=123,IPR_DMAC_DMAC74I=124,\r
+IPR_ICU_OST=125,\r
+IPR_EXDMAC_EXDMAC0I=126,IPR_EXDMAC_EXDMAC1I=127,\r
+IPR_PERIB128_INTB128=128,\r
+IPR_PERIB129_INTB129=129,\r
+IPR_PERIB130_INTB130=130,\r
+IPR_PERIB131_INTB131=131,\r
+IPR_PERIB132_INTB132=132,\r
+IPR_PERIB133_INTB133=133,\r
+IPR_PERIB134_INTB134=134,\r
+IPR_PERIB135_INTB135=135,\r
+IPR_PERIB136_INTB136=136,\r
+IPR_PERIB137_INTB137=137,\r
+IPR_PERIB138_INTB138=138,\r
+IPR_PERIB139_INTB139=139,\r
+IPR_PERIB140_INTB140=140,\r
+IPR_PERIB141_INTB141=141,\r
+IPR_PERIB142_INTB142=142,\r
+IPR_PERIB143_INTB143=143,\r
+IPR_PERIB144_INTB144=144,\r
+IPR_PERIB145_INTB145=145,\r
+IPR_PERIB146_INTB146=146,\r
+IPR_PERIB147_INTB147=147,\r
+IPR_PERIB148_INTB148=148,\r
+IPR_PERIB149_INTB149=149,\r
+IPR_PERIB150_INTB150=150,\r
+IPR_PERIB151_INTB151=151,\r
+IPR_PERIB152_INTB152=152,\r
+IPR_PERIB153_INTB153=153,\r
+IPR_PERIB154_INTB154=154,\r
+IPR_PERIB155_INTB155=155,\r
+IPR_PERIB156_INTB156=156,\r
+IPR_PERIB157_INTB157=157,\r
+IPR_PERIB158_INTB158=158,\r
+IPR_PERIB159_INTB159=159,\r
+IPR_PERIB160_INTB160=160,\r
+IPR_PERIB161_INTB161=161,\r
+IPR_PERIB162_INTB162=162,\r
+IPR_PERIB163_INTB163=163,\r
+IPR_PERIB164_INTB164=164,\r
+IPR_PERIB165_INTB165=165,\r
+IPR_PERIB166_INTB166=166,\r
+IPR_PERIB167_INTB167=167,\r
+IPR_PERIB168_INTB168=168,\r
+IPR_PERIB169_INTB169=169,\r
+IPR_PERIB170_INTB170=170,\r
+IPR_PERIB171_INTB171=171,\r
+IPR_PERIB172_INTB172=172,\r
+IPR_PERIB173_INTB173=173,\r
+IPR_PERIB174_INTB174=174,\r
+IPR_PERIB175_INTB175=175,\r
+IPR_PERIB176_INTB176=176,\r
+IPR_PERIB177_INTB177=177,\r
+IPR_PERIB178_INTB178=178,\r
+IPR_PERIB179_INTB179=179,\r
+IPR_PERIB180_INTB180=180,\r
+IPR_PERIB181_INTB181=181,\r
+IPR_PERIB182_INTB182=182,\r
+IPR_PERIB183_INTB183=183,\r
+IPR_PERIB184_INTB184=184,\r
+IPR_PERIB185_INTB185=185,\r
+IPR_PERIB186_INTB186=186,\r
+IPR_PERIB187_INTB187=187,\r
+IPR_PERIB188_INTB188=188,\r
+IPR_PERIB189_INTB189=189,\r
+IPR_PERIB190_INTB190=190,\r
+IPR_PERIB191_INTB191=191,\r
+IPR_PERIB192_INTB192=192,\r
+IPR_PERIB193_INTB193=193,\r
+IPR_PERIB194_INTB194=194,\r
+IPR_PERIB195_INTB195=195,\r
+IPR_PERIB196_INTB196=196,\r
+IPR_PERIB197_INTB197=197,\r
+IPR_PERIB198_INTB198=198,\r
+IPR_PERIB199_INTB199=199,\r
+IPR_PERIB200_INTB200=200,\r
+IPR_PERIB201_INTB201=201,\r
+IPR_PERIB202_INTB202=202,\r
+IPR_PERIB203_INTB203=203,\r
+IPR_PERIB204_INTB204=204,\r
+IPR_PERIB205_INTB205=205,\r
+IPR_PERIB206_INTB206=206,\r
+IPR_PERIB207_INTB207=207,\r
+IPR_PERIA208_INTA208=208,\r
+IPR_PERIA209_INTA209=209,\r
+IPR_PERIA210_INTA210=210,\r
+IPR_PERIA211_INTA211=211,\r
+IPR_PERIA212_INTA212=212,\r
+IPR_PERIA213_INTA213=213,\r
+IPR_PERIA214_INTA214=214,\r
+IPR_PERIA215_INTA215=215,\r
+IPR_PERIA216_INTA216=216,\r
+IPR_PERIA217_INTA217=217,\r
+IPR_PERIA218_INTA218=218,\r
+IPR_PERIA219_INTA219=219,\r
+IPR_PERIA220_INTA220=220,\r
+IPR_PERIA221_INTA221=221,\r
+IPR_PERIA222_INTA222=222,\r
+IPR_PERIA223_INTA223=223,\r
+IPR_PERIA224_INTA224=224,\r
+IPR_PERIA225_INTA225=225,\r
+IPR_PERIA226_INTA226=226,\r
+IPR_PERIA227_INTA227=227,\r
+IPR_PERIA228_INTA228=228,\r
+IPR_PERIA229_INTA229=229,\r
+IPR_PERIA230_INTA230=230,\r
+IPR_PERIA231_INTA231=231,\r
+IPR_PERIA232_INTA232=232,\r
+IPR_PERIA233_INTA233=233,\r
+IPR_PERIA234_INTA234=234,\r
+IPR_PERIA235_INTA235=235,\r
+IPR_PERIA236_INTA236=236,\r
+IPR_PERIA237_INTA237=237,\r
+IPR_PERIA238_INTA238=238,\r
+IPR_PERIA239_INTA239=239,\r
+IPR_PERIA240_INTA240=240,\r
+IPR_PERIA241_INTA241=241,\r
+IPR_PERIA242_INTA242=242,\r
+IPR_PERIA243_INTA243=243,\r
+IPR_PERIA244_INTA244=244,\r
+IPR_PERIA245_INTA245=245,\r
+IPR_PERIA246_INTA246=246,\r
+IPR_PERIA247_INTA247=247,\r
+IPR_PERIA248_INTA248=248,\r
+IPR_PERIA249_INTA249=249,\r
+IPR_PERIA250_INTA250=250,\r
+IPR_PERIA251_INTA251=251,\r
+IPR_PERIA252_INTA252=252,\r
+IPR_PERIA253_INTA253=253,\r
+IPR_PERIA254_INTA254=254,\r
+IPR_PERIA255_INTA255=255\r
+};\r
+\r
+#define        IEN_BSC_BUSERR          IEN0\r
+#define        IEN_RAM_RAMERR          IEN2\r
+#define        IEN_FCU_FIFERR          IEN5\r
+#define        IEN_FCU_FRDYI           IEN7\r
+#define        IEN_ICU_SWINT2          IEN2\r
+#define        IEN_ICU_SWINT           IEN3\r
+#define        IEN_CMT0_CMI0           IEN4\r
+#define        IEN_CMT1_CMI1           IEN5\r
+#define        IEN_CMTW0_CMWI0         IEN6\r
+#define        IEN_CMTW_CMWI1          IEN7\r
+#define        IEN_USBHS_D0FIFO2       IEN0\r
+#define        IEN_USBHS_D1FIFO2       IEN1\r
+#define        IEN_USB0_D0FIFO0        IEN2\r
+#define        IEN_USB0_D1FIFO0        IEN3\r
+#define        IEN_RSPI0_SPRI0         IEN6\r
+#define        IEN_RSPI0_SPTI0         IEN7\r
+#define        IEN_QSPI_SPRI           IEN2\r
+#define        IEN_QSPI_SPTI           IEN3\r
+#define        IEN_SDHI_SBFAI          IEN4\r
+#define        IEN_MMC_MBFAI           IEN5\r
+#define        IEN_SSI0_SSITXI0        IEN6\r
+#define        IEN_SSI0_SSIRXI0        IEN7\r
+#define        IEN_SSI1_SSIRTI1        IEN0\r
+#define        IEN_SRC0_IDEI0          IEN2\r
+#define        IEN_SRC0_ODFI0          IEN3\r
+#define        IEN_RIIC0_RXI0          IEN4\r
+#define        IEN_RIIC0_TXI0          IEN5\r
+#define        IEN_RIIC2_RXI2          IEN6\r
+#define        IEN_RIIC2_TXI2          IEN7\r
+#define        IEN_SCI0_RXI0           IEN2\r
+#define        IEN_SCI0_TXI0           IEN3\r
+#define        IEN_SCI1_RXI1           IEN4\r
+#define        IEN_SCI1_TXI1           IEN5\r
+#define        IEN_SCI2_RXI2           IEN6\r
+#define        IEN_SCI2_TXI2           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_SCI3_RXI3           IEN0\r
+#define        IEN_SCI3_TXI3           IEN1\r
+#define        IEN_SCI4_RXI4           IEN2\r
+#define        IEN_SCI4_TXI4           IEN3\r
+#define        IEN_SCI5_RXI5           IEN4\r
+#define        IEN_SCI5_TXI5           IEN5\r
+#define        IEN_SCI6_RXI6           IEN6\r
+#define        IEN_SCI6_TXI6           IEN7\r
+#define        IEN_LVD1_COMPA1         IEN0\r
+#define        IEN_LVD2_COMPA2         IEN1\r
+#define        IEN_USB0_USBR0          IEN2\r
+#define        IEN_RTC_ALARM           IEN4\r
+#define        IEN_RTC_PRD                     IEN5\r
+#define        IEN_USBHS_HSUSBR        IEN6\r
+#define        IEN_IWDT_IWUNI          IEN7\r
+#define        IEN_WDT_WUNI            IEN0\r
+#define        IEN_PDC_PCDFI           IEN1\r
+#define        IEN_SCI7_RXI7           IEN2\r
+#define        IEN_SCI7_TXI7           IEN3\r
+#define        IEN_SCIF8_RXIF8         IEN4\r
+#define        IEN_SCIF8_TXIF8         IEN5\r
+#define        IEN_SCIF9_RXIF9         IEN6\r
+#define        IEN_SCIF9_TXIF9         IEN7\r
+#define        IEN_SCIF10_RXIF10       IEN0\r
+#define        IEN_SCIF10_TXIF10       IEN1\r
+#define        IEN_ICU_GROUPBE0        IEN2\r
+#define        IEN_ICU_GROUPBE1        IEN3\r
+#define        IEN_ICU_GROUPAE0        IEN4\r
+#define        IEN_ICU_GROUPAE1        IEN5\r
+#define        IEN_ICU_GROUPBL0        IEN6\r
+#define        IEN_ICU_GROUPBL1        IEN7\r
+#define        IEN_ICU_GROUPAL0        IEN0\r
+#define        IEN_ICU_GROUPAL1        IEN1\r
+#define        IEN_SCIF11_RXIF11       IEN2\r
+#define        IEN_SCIF11_TXIF11       IEN3\r
+#define        IEN_SCI12_RXI12         IEN4\r
+#define        IEN_SCI12_TXI12         IEN5\r
+#define        IEN_DMAC_DMAC0I         IEN0\r
+#define        IEN_DMAC_DMAC1I         IEN1\r
+#define        IEN_DMAC_DMAC2I         IEN2\r
+#define        IEN_DMAC_DMAC3I         IEN3\r
+#define        IEN_DMAC_DMAC74I        IEN4\r
+#define        IEN_ICU_OST                     IEN5\r
+#define        IEN_EXDMAC_EXDMAC0I     IEN6\r
+#define        IEN_EXDMAC_EXDMAC1I     IEN7\r
+#define        IEN_PERIB128_INTB128    IEN0\r
+#define        IEN_PERIB129_INTB129    IEN1\r
+#define        IEN_PERIB130_INTB130    IEN2\r
+#define        IEN_PERIB131_INTB131    IEN3\r
+#define        IEN_PERIB132_INTB132    IEN4\r
+#define        IEN_PERIB133_INTB133    IEN5\r
+#define        IEN_PERIB134_INTB134    IEN6\r
+#define        IEN_PERIB135_INTB135    IEN7\r
+#define        IEN_PERIB136_INTB136    IEN0\r
+#define        IEN_PERIB137_INTB137    IEN1\r
+#define        IEN_PERIB138_INTB138    IEN2\r
+#define        IEN_PERIB139_INTB139    IEN3\r
+#define        IEN_PERIB140_INTB140    IEN4\r
+#define        IEN_PERIB141_INTB141    IEN5\r
+#define        IEN_PERIB142_INTB142    IEN6\r
+#define        IEN_PERIB143_INTB143    IEN7\r
+#define        IEN_PERIB144_INTB144    IEN0\r
+#define        IEN_PERIB145_INTB145    IEN1\r
+#define        IEN_PERIB146_INTB146    IEN2\r
+#define        IEN_PERIB147_INTB147    IEN3\r
+#define        IEN_PERIB148_INTB148    IEN4\r
+#define        IEN_PERIB149_INTB149    IEN5\r
+#define        IEN_PERIB150_INTB150    IEN6\r
+#define        IEN_PERIB151_INTB151    IEN7\r
+#define        IEN_PERIB152_INTB152    IEN0\r
+#define        IEN_PERIB153_INTB153    IEN1\r
+#define        IEN_PERIB154_INTB154    IEN2\r
+#define        IEN_PERIB155_INTB155    IEN3\r
+#define        IEN_PERIB156_INTB156    IEN4\r
+#define        IEN_PERIB157_INTB157    IEN5\r
+#define        IEN_PERIB158_INTB158    IEN6\r
+#define        IEN_PERIB159_INTB159    IEN7\r
+#define        IEN_PERIB160_INTB160    IEN0\r
+#define        IEN_PERIB161_INTB161    IEN1\r
+#define        IEN_PERIB162_INTB162    IEN2\r
+#define        IEN_PERIB163_INTB163    IEN3\r
+#define        IEN_PERIB164_INTB164    IEN4\r
+#define        IEN_PERIB165_INTB165    IEN5\r
+#define        IEN_PERIB166_INTB166    IEN6\r
+#define        IEN_PERIB167_INTB167    IEN7\r
+#define        IEN_PERIB168_INTB168    IEN0\r
+#define        IEN_PERIB169_INTB169    IEN1\r
+#define        IEN_PERIB170_INTB170    IEN2\r
+#define        IEN_PERIB171_INTB171    IEN3\r
+#define        IEN_PERIB172_INTB172    IEN4\r
+#define        IEN_PERIB173_INTB173    IEN5\r
+#define        IEN_PERIB174_INTB174    IEN6\r
+#define        IEN_PERIB175_INTB175    IEN7\r
+#define        IEN_PERIB176_INTB176    IEN0\r
+#define        IEN_PERIB177_INTB177    IEN1\r
+#define        IEN_PERIB178_INTB178    IEN2\r
+#define        IEN_PERIB179_INTB179    IEN3\r
+#define        IEN_PERIB180_INTB180    IEN4\r
+#define        IEN_PERIB181_INTB181    IEN5\r
+#define        IEN_PERIB182_INTB182    IEN6\r
+#define        IEN_PERIB183_INTB183    IEN7\r
+#define        IEN_PERIB184_INTB184    IEN0\r
+#define        IEN_PERIB185_INTB185    IEN1\r
+#define        IEN_PERIB186_INTB186    IEN2\r
+#define        IEN_PERIB187_INTB187    IEN3\r
+#define        IEN_PERIB188_INTB188    IEN4\r
+#define        IEN_PERIB189_INTB189    IEN5\r
+#define        IEN_PERIB190_INTB190    IEN6\r
+#define        IEN_PERIB191_INTB191    IEN7\r
+#define        IEN_PERIB192_INTB192    IEN0\r
+#define        IEN_PERIB193_INTB193    IEN1\r
+#define        IEN_PERIB194_INTB194    IEN2\r
+#define        IEN_PERIB195_INTB195    IEN3\r
+#define        IEN_PERIB196_INTB196    IEN4\r
+#define        IEN_PERIB197_INTB197    IEN5\r
+#define        IEN_PERIB198_INTB198    IEN6\r
+#define        IEN_PERIB199_INTB199    IEN7\r
+#define        IEN_PERIB200_INTB200    IEN0\r
+#define        IEN_PERIB201_INTB201    IEN1\r
+#define        IEN_PERIB202_INTB202    IEN2\r
+#define        IEN_PERIB203_INTB203    IEN3\r
+#define        IEN_PERIB204_INTB204    IEN4\r
+#define        IEN_PERIB205_INTB205    IEN5\r
+#define        IEN_PERIB206_INTB206    IEN6\r
+#define        IEN_PERIB207_INTB207    IEN7\r
+#define        IEN_PERIA208_INTA208    IEN0\r
+#define        IEN_PERIA209_INTA209    IEN1\r
+#define        IEN_PERIA210_INTA210    IEN2\r
+#define        IEN_PERIA211_INTA211    IEN3\r
+#define        IEN_PERIA212_INTA212    IEN4\r
+#define        IEN_PERIA213_INTA213    IEN5\r
+#define        IEN_PERIA214_INTA214    IEN6\r
+#define        IEN_PERIA215_INTA215    IEN7\r
+#define        IEN_PERIA216_INTA216    IEN0\r
+#define        IEN_PERIA217_INTA217    IEN1\r
+#define        IEN_PERIA218_INTA218    IEN2\r
+#define        IEN_PERIA219_INTA219    IEN3\r
+#define        IEN_PERIA220_INTA220    IEN4\r
+#define        IEN_PERIA221_INTA221    IEN5\r
+#define        IEN_PERIA222_INTA222    IEN6\r
+#define        IEN_PERIA223_INTA223    IEN7\r
+#define        IEN_PERIA224_INTA224    IEN0\r
+#define        IEN_PERIA225_INTA225    IEN1\r
+#define        IEN_PERIA226_INTA226    IEN2\r
+#define        IEN_PERIA227_INTA227    IEN3\r
+#define        IEN_PERIA228_INTA228    IEN4\r
+#define        IEN_PERIA229_INTA229    IEN5\r
+#define        IEN_PERIA230_INTA230    IEN6\r
+#define        IEN_PERIA231_INTA231    IEN7\r
+#define        IEN_PERIA232_INTA232    IEN0\r
+#define        IEN_PERIA233_INTA233    IEN1\r
+#define        IEN_PERIA234_INTA234    IEN2\r
+#define        IEN_PERIA235_INTA235    IEN3\r
+#define        IEN_PERIA236_INTA236    IEN4\r
+#define        IEN_PERIA237_INTA237    IEN5\r
+#define        IEN_PERIA238_INTA238    IEN6\r
+#define        IEN_PERIA239_INTA239    IEN7\r
+#define        IEN_PERIA240_INTA240    IEN0\r
+#define        IEN_PERIA241_INTA241    IEN1\r
+#define        IEN_PERIA242_INTA242    IEN2\r
+#define        IEN_PERIA243_INTA243    IEN3\r
+#define        IEN_PERIA244_INTA244    IEN4\r
+#define        IEN_PERIA245_INTA245    IEN5\r
+#define        IEN_PERIA246_INTA246    IEN6\r
+#define        IEN_PERIA247_INTA247    IEN7\r
+#define        IEN_PERIA248_INTA248    IEN0\r
+#define        IEN_PERIA249_INTA249    IEN1\r
+#define        IEN_PERIA250_INTA250    IEN2\r
+#define        IEN_PERIA251_INTA251    IEN3\r
+#define        IEN_PERIA252_INTA252    IEN4\r
+#define        IEN_PERIA253_INTA253    IEN5\r
+#define        IEN_PERIA254_INTA254    IEN6\r
+#define        IEN_PERIA255_INTA255    IEN7\r
+\r
+#define        VECT_BSC_BUSERR         16\r
+#define        VECT_RAM_RAMERR         18\r
+#define        VECT_FCU_FIFERR         21\r
+#define        VECT_FCU_FRDYI          23\r
+#define        VECT_ICU_SWINT2         26\r
+#define        VECT_ICU_SWINT          27\r
+#define        VECT_CMT0_CMI0          28\r
+#define        VECT_CMT1_CMI1          29\r
+#define        VECT_CMTW0_CMWI0        30\r
+#define        VECT_CMTW_CMWI1         31\r
+#define        VECT_USBHS_D0FIFO2      32\r
+#define        VECT_USBHS_D1FIFO2      33\r
+#define        VECT_USB0_D0FIFO0       34\r
+#define        VECT_USB0_D1FIFO0       35\r
+#define        VECT_RSPI0_SPRI0        38\r
+#define        VECT_RSPI0_SPTI0        39\r
+#define        VECT_QSPI_SPRI          42\r
+#define        VECT_QSPI_SPTI          43\r
+#define        VECT_SDHI_SBFAI         44\r
+#define        VECT_MMC_MBFAI          45\r
+#define        VECT_SSI0_SSITXI0       46\r
+#define        VECT_SSI0_SSIRXI0       47\r
+#define        VECT_SSI1_SSIRTI1       48\r
+#define        VECT_SRC0_IDEI0         50\r
+#define        VECT_SRC0_ODFI0         51\r
+#define        VECT_RIIC0_RXI0         52\r
+#define        VECT_RIIC0_TXI0         53\r
+#define        VECT_RIIC2_RXI2         54\r
+#define        VECT_RIIC2_TXI2         55\r
+#define        VECT_SCI0_RXI0          58\r
+#define        VECT_SCI0_TXI0          59\r
+#define        VECT_SCI1_RXI1          60\r
+#define        VECT_SCI1_TXI1          61\r
+#define        VECT_SCI2_RXI2          62\r
+#define        VECT_SCI2_TXI2          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_SCI3_RXI3          80\r
+#define        VECT_SCI3_TXI3          81\r
+#define        VECT_SCI4_RXI4          82\r
+#define        VECT_SCI4_TXI4          83\r
+#define        VECT_SCI5_RXI5          84\r
+#define        VECT_SCI5_TXI5          85\r
+#define        VECT_SCI6_RXI6          86\r
+#define        VECT_SCI6_TXI6          87\r
+#define        VECT_LVD1_COMPA1        88\r
+#define        VECT_LVD2_COMPA2        89\r
+#define        VECT_USB0_USBR0         90\r
+#define        VECT_RTC_ALARM          92\r
+#define        VECT_RTC_PRD            93\r
+#define        VECT_USBHS_HSUSBR       94\r
+#define        VECT_IWDT_IWUNI         95\r
+#define        VECT_WDT_WUNI           96\r
+#define        VECT_PDC_PCDFI          97\r
+#define        VECT_SCI7_RXI7          98\r
+#define        VECT_SCI7_TXI7          99\r
+#define        VECT_SCIF8_RXIF8        100\r
+#define        VECT_SCIF8_TXIF8        101\r
+#define        VECT_SCIF9_RXIF9        102\r
+#define        VECT_SCIF9_TXIF9        103\r
+#define        VECT_SCIF10_RXIF10      104\r
+#define        VECT_SCIF10_TXIF10      105\r
+#define        VECT_ICU_GROUPBE0       106\r
+#define        VECT_ICU_GROUPBE1       107\r
+#define        VECT_ICU_GROUPAE0       108\r
+#define        VECT_ICU_GROUPAE1       109\r
+#define        VECT_ICU_GROUPBL0       110\r
+#define        VECT_ICU_GROUPBL1       111\r
+#define        VECT_ICU_GROUPAL0       112\r
+#define        VECT_ICU_GROUPAL1       113\r
+#define        VECT_SCIF11_RXIF11      114\r
+#define        VECT_SCIF11_TXIF11      115\r
+#define        VECT_SCI12_RXI12        116\r
+#define        VECT_SCI12_TXI12        117\r
+#define        VECT_DMAC_DMAC0I        120\r
+#define        VECT_DMAC_DMAC1I        121\r
+#define        VECT_DMAC_DMAC2I        122\r
+#define        VECT_DMAC_DMAC3I        123\r
+#define        VECT_DMAC_DMAC74I       124\r
+#define        VECT_ICU_OST            125\r
+#define        VECT_EXDMAC_EXDMAC0I    126\r
+#define        VECT_EXDMAC_EXDMAC1I    127\r
+#define        VECT_PERIB128_INTB128   128\r
+#define        VECT_PERIB129_INTB129   129\r
+#define        VECT_PERIB130_INTB130   130\r
+#define        VECT_PERIB131_INTB131   131\r
+#define        VECT_PERIB132_INTB132   132\r
+#define        VECT_PERIB133_INTB133   133\r
+#define        VECT_PERIB134_INTB134   134\r
+#define        VECT_PERIB135_INTB135   135\r
+#define        VECT_PERIB136_INTB136   136\r
+#define        VECT_PERIB137_INTB137   137\r
+#define        VECT_PERIB138_INTB138   138\r
+#define        VECT_PERIB139_INTB139   139\r
+#define        VECT_PERIB140_INTB140   140\r
+#define        VECT_PERIB141_INTB141   141\r
+#define        VECT_PERIB142_INTB142   142\r
+#define        VECT_PERIB143_INTB143   143\r
+#define        VECT_PERIB144_INTB144   144\r
+#define        VECT_PERIB145_INTB145   145\r
+#define        VECT_PERIB146_INTB146   146\r
+#define        VECT_PERIB147_INTB147   147\r
+#define        VECT_PERIB148_INTB148   148\r
+#define        VECT_PERIB149_INTB149   149\r
+#define        VECT_PERIB150_INTB150   150\r
+#define        VECT_PERIB151_INTB151   151\r
+#define        VECT_PERIB152_INTB152   152\r
+#define        VECT_PERIB153_INTB153   153\r
+#define        VECT_PERIB154_INTB154   154\r
+#define        VECT_PERIB155_INTB155   155\r
+#define        VECT_PERIB156_INTB156   156\r
+#define        VECT_PERIB157_INTB157   157\r
+#define        VECT_PERIB158_INTB158   158\r
+#define        VECT_PERIB159_INTB159   159\r
+#define        VECT_PERIB160_INTB160   160\r
+#define        VECT_PERIB161_INTB161   161\r
+#define        VECT_PERIB162_INTB162   162\r
+#define        VECT_PERIB163_INTB163   163\r
+#define        VECT_PERIB164_INTB164   164\r
+#define        VECT_PERIB165_INTB165   165\r
+#define        VECT_PERIB166_INTB166   166\r
+#define        VECT_PERIB167_INTB167   167\r
+#define        VECT_PERIB168_INTB168   168\r
+#define        VECT_PERIB169_INTB169   169\r
+#define        VECT_PERIB170_INTB170   170\r
+#define        VECT_PERIB171_INTB171   171\r
+#define        VECT_PERIB172_INTB172   172\r
+#define        VECT_PERIB173_INTB173   173\r
+#define        VECT_PERIB174_INTB174   174\r
+#define        VECT_PERIB175_INTB175   175\r
+#define        VECT_PERIB176_INTB176   176\r
+#define        VECT_PERIB177_INTB177   177\r
+#define        VECT_PERIB178_INTB178   178\r
+#define        VECT_PERIB179_INTB179   179\r
+#define        VECT_PERIB180_INTB180   180\r
+#define        VECT_PERIB181_INTB181   181\r
+#define        VECT_PERIB182_INTB182   182\r
+#define        VECT_PERIB183_INTB183   183\r
+#define        VECT_PERIB184_INTB184   184\r
+#define        VECT_PERIB185_INTB185   185\r
+#define        VECT_PERIB186_INTB186   186\r
+#define        VECT_PERIB187_INTB187   187\r
+#define        VECT_PERIB188_INTB188   188\r
+#define        VECT_PERIB189_INTB189   189\r
+#define        VECT_PERIB190_INTB190   190\r
+#define        VECT_PERIB191_INTB191   191\r
+#define        VECT_PERIB192_INTB192   192\r
+#define        VECT_PERIB193_INTB193   193\r
+#define        VECT_PERIB194_INTB194   194\r
+#define        VECT_PERIB195_INTB195   195\r
+#define        VECT_PERIB196_INTB196   196\r
+#define        VECT_PERIB197_INTB197   197\r
+#define        VECT_PERIB198_INTB198   198\r
+#define        VECT_PERIB199_INTB199   199\r
+#define        VECT_PERIB200_INTB200   200\r
+#define        VECT_PERIB201_INTB201   201\r
+#define        VECT_PERIB202_INTB202   202\r
+#define        VECT_PERIB203_INTB203   203\r
+#define        VECT_PERIB204_INTB204   204\r
+#define        VECT_PERIB205_INTB205   205\r
+#define        VECT_PERIB206_INTB206   206\r
+#define        VECT_PERIB207_INTB207   207\r
+#define        VECT_PERIA208_INTA208   208\r
+#define        VECT_PERIA209_INTA209   209\r
+#define        VECT_PERIA210_INTA210   210\r
+#define        VECT_PERIA211_INTA211   211\r
+#define        VECT_PERIA212_INTA212   212\r
+#define        VECT_PERIA213_INTA213   213\r
+#define        VECT_PERIA214_INTA214   214\r
+#define        VECT_PERIA215_INTA215   215\r
+#define        VECT_PERIA216_INTA216   216\r
+#define        VECT_PERIA217_INTA217   217\r
+#define        VECT_PERIA218_INTA218   218\r
+#define        VECT_PERIA219_INTA219   219\r
+#define        VECT_PERIA220_INTA220   220\r
+#define        VECT_PERIA221_INTA221   221\r
+#define        VECT_PERIA222_INTA222   222\r
+#define        VECT_PERIA223_INTA223   223\r
+#define        VECT_PERIA224_INTA224   224\r
+#define        VECT_PERIA225_INTA225   225\r
+#define        VECT_PERIA226_INTA226   226\r
+#define        VECT_PERIA227_INTA227   227\r
+#define        VECT_PERIA228_INTA228   228\r
+#define        VECT_PERIA229_INTA229   229\r
+#define        VECT_PERIA230_INTA230   230\r
+#define        VECT_PERIA231_INTA231   231\r
+#define        VECT_PERIA232_INTA232   232\r
+#define        VECT_PERIA233_INTA233   233\r
+#define        VECT_PERIA234_INTA234   234\r
+#define        VECT_PERIA235_INTA235   235\r
+#define        VECT_PERIA236_INTA236   236\r
+#define        VECT_PERIA237_INTA237   237\r
+#define        VECT_PERIA238_INTA238   238\r
+#define        VECT_PERIA239_INTA239   239\r
+#define        VECT_PERIA240_INTA240   240\r
+#define        VECT_PERIA241_INTA241   241\r
+#define        VECT_PERIA242_INTA242   242\r
+#define        VECT_PERIA243_INTA243   243\r
+#define        VECT_PERIA244_INTA244   244\r
+#define        VECT_PERIA245_INTA245   245\r
+#define        VECT_PERIA246_INTA246   246\r
+#define        VECT_PERIA247_INTA247   247\r
+#define        VECT_PERIA248_INTA248   248\r
+#define        VECT_PERIA249_INTA249   249\r
+#define        VECT_PERIA250_INTA250   250\r
+#define        VECT_PERIA251_INTA251   251\r
+#define        VECT_PERIA252_INTA252   252\r
+#define        VECT_PERIA253_INTA253   253\r
+#define        VECT_PERIA254_INTA254   254\r
+#define        VECT_PERIA255_INTA255   255\r
+\r
+#define        MSTP_EXDMAC     SYSTEM.MSTPCRA.BIT.MSTPA29\r
+#define        MSTP_EXDMAC0    SYSTEM.MSTPCRA.BIT.MSTPA29\r
+#define        MSTP_EXDMAC1    SYSTEM.MSTPCRA.BIT.MSTPA29\r
+#define        MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC       SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC0      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC1      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC2      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC3      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC4      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC5      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC6      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DMAC7      SYSTEM.MSTPCRA.BIT.MSTPA28\r
+#define        MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19\r
+#define        MSTP_S12ADC0    SYSTEM.MSTPCRA.BIT.MSTPA17\r
+#define        MSTP_S12ADC1    SYSTEM.MSTPCRA.BIT.MSTPA16\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_TPU0       SYSTEM.MSTPCRA.BIT.MSTPA13\r
+#define        MSTP_TPU1       SYSTEM.MSTPCRA.BIT.MSTPA13\r
+#define        MSTP_TPU2       SYSTEM.MSTPCRA.BIT.MSTPA13\r
+#define        MSTP_TPU3       SYSTEM.MSTPCRA.BIT.MSTPA13\r
+#define        MSTP_TPU4       SYSTEM.MSTPCRA.BIT.MSTPA13\r
+#define        MSTP_TPU5       SYSTEM.MSTPCRA.BIT.MSTPA13\r
+#define        MSTP_PPG0       SYSTEM.MSTPCRA.BIT.MSTPA11\r
+#define        MSTP_PPG1       SYSTEM.MSTPCRA.BIT.MSTPA10\r
+#define        MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9\r
+#define        MSTP_GPT        SYSTEM.MSTPCRA.BIT.MSTPA7\r
+#define        MSTP_GPT0       SYSTEM.MSTPCRA.BIT.MSTPA7\r
+#define        MSTP_GPT1       SYSTEM.MSTPCRA.BIT.MSTPA7\r
+#define        MSTP_GPT2       SYSTEM.MSTPCRA.BIT.MSTPA7\r
+#define        MSTP_GPT3       SYSTEM.MSTPCRA.BIT.MSTPA7\r
+#define        MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5\r
+#define        MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4\r
+#define        MSTP_CMTW1      SYSTEM.MSTPCRA.BIT.MSTPA1\r
+#define        MSTP_CMTW0      SYSTEM.MSTPCRA.BIT.MSTPA0\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_SCI4       SYSTEM.MSTPCRB.BIT.MSTPB27\r
+#define        MSTP_SMCI4      SYSTEM.MSTPCRB.BIT.MSTPB27\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_SCI7       SYSTEM.MSTPCRB.BIT.MSTPB24\r
+#define        MSTP_SMCI7      SYSTEM.MSTPCRB.BIT.MSTPB24\r
+#define        MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23\r
+#define        MSTP_DCU        SYSTEM.MSTPCRB.BIT.MSTPB22\r
+#define        MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21\r
+#define        MSTP_USB0       SYSTEM.MSTPCRB.BIT.MSTPB19\r
+#define        MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17\r
+#define        MSTP_EDMAC0     SYSTEM.MSTPCRB.BIT.MSTPB15\r
+#define        MSTP_EDMAC1     SYSTEM.MSTPCRB.BIT.MSTPB14\r
+#define        MSTP_USBHS      SYSTEM.MSTPCRB.BIT.MSTPB12\r
+#define        MSTP_ELC        SYSTEM.MSTPCRB.BIT.MSTPB9\r
+#define        MSTP_TEMPS      SYSTEM.MSTPCRB.BIT.MSTPB8\r
+#define        MSTP_DOC        SYSTEM.MSTPCRB.BIT.MSTPB6\r
+#define        MSTP_SCI12      SYSTEM.MSTPCRB.BIT.MSTPB4\r
+#define        MSTP_SMCI12     SYSTEM.MSTPCRB.BIT.MSTPB4\r
+#define        MSTP_CAN2       SYSTEM.MSTPCRB.BIT.MSTPB2\r
+#define        MSTP_CAN1       SYSTEM.MSTPCRB.BIT.MSTPB1\r
+#define        MSTP_CAN0       SYSTEM.MSTPCRB.BIT.MSTPB0\r
+#define        MSTP_SCIF8      SYSTEM.MSTPCRC.BIT.MSTPC27\r
+#define        MSTP_SCIF9      SYSTEM.MSTPCRC.BIT.MSTPC26\r
+#define        MSTP_SCIF10     SYSTEM.MSTPCRC.BIT.MSTPC25\r
+#define        MSTP_SCIF11     SYSTEM.MSTPCRC.BIT.MSTPC24\r
+#define        MSTP_QSPI       SYSTEM.MSTPCRC.BIT.MSTPC23\r
+#define        MSTP_CAC        SYSTEM.MSTPCRC.BIT.MSTPC19\r
+#define        MSTP_RIIC2      SYSTEM.MSTPCRC.BIT.MSTPC17\r
+#define        MSTP_STBYRAM    SYSTEM.MSTPCRC.BIT.MSTPC7\r
+#define        MSTP_ECCRAM     SYSTEM.MSTPCRC.BIT.MSTPC2\r
+#define        MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC0\r
+#define        MSTP_AES        SYSTEM.MSTPCRD.BIT.MSTPD31\r
+#define        MSTP_DES        SYSTEM.MSTPCRD.BIT.MSTPD30\r
+#define        MSTP_SHA        SYSTEM.MSTPCRD.BIT.MSTPD29\r
+#define        MSTP_RNG        SYSTEM.MSTPCRD.BIT.MSTPD28\r
+#define        MSTP_SRC        SYSTEM.MSTPCRD.BIT.MSTPD23\r
+#define        MSTP_MMC        SYSTEM.MSTPCRD.BIT.MSTPD21\r
+#define        MSTP_SDHI       SYSTEM.MSTPCRD.BIT.MSTPD19\r
+#define        MSTP_SSI0       SYSTEM.MSTPCRD.BIT.MSTPD15\r
+#define        MSTP_SSI1       SYSTEM.MSTPCRD.BIT.MSTPD14\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        BSC             (*(volatile struct st_bsc     __evenaccess *)0x81300)\r
+#define        CAC             (*(volatile struct st_cac     __evenaccess *)0x8B000)\r
+#define        CAN0    (*(volatile struct st_can     __evenaccess *)0x90200)\r
+#define        CAN1    (*(volatile struct st_can     __evenaccess *)0x91200)\r
+#define        CAN2    (*(volatile struct st_can     __evenaccess *)0x92200)\r
+#define        CMT             (*(volatile struct st_cmt     __evenaccess *)0x88000)\r
+#define        CMT0    (*(volatile struct st_cmt0    __evenaccess *)0x88002)\r
+#define        CMT1    (*(volatile struct st_cmt0    __evenaccess *)0x88008)\r
+#define        CMT2    (*(volatile struct st_cmt0    __evenaccess *)0x88012)\r
+#define        CMT3    (*(volatile struct st_cmt0    __evenaccess *)0x88018)\r
+#define        CMTW0   (*(volatile struct st_cmtw    __evenaccess *)0x94200)\r
+#define        CMTW1   (*(volatile struct st_cmtw    __evenaccess *)0x94280)\r
+#define        CRC             (*(volatile struct st_crc     __evenaccess *)0x88280)\r
+#define        DA              (*(volatile struct st_da      __evenaccess *)0x88040)\r
+#define        DMAC    (*(volatile struct st_dmac    __evenaccess *)0x82200)\r
+#define        DMAC0   (*(volatile struct st_dmac0   __evenaccess *)0x82000)\r
+#define        DMAC1   (*(volatile struct st_dmac1   __evenaccess *)0x82040)\r
+#define        DMAC2   (*(volatile struct st_dmac1   __evenaccess *)0x82080)\r
+#define        DMAC3   (*(volatile struct st_dmac1   __evenaccess *)0x820C0)\r
+#define        DMAC4   (*(volatile struct st_dmac1   __evenaccess *)0x82100)\r
+#define        DMAC5   (*(volatile struct st_dmac1   __evenaccess *)0x82140)\r
+#define        DMAC6   (*(volatile struct st_dmac1   __evenaccess *)0x82180)\r
+#define        DMAC7   (*(volatile struct st_dmac1   __evenaccess *)0x821C0)\r
+#define        DOC             (*(volatile struct st_doc     __evenaccess *)0x8B080)\r
+#define        DTC             (*(volatile struct st_dtc     __evenaccess *)0x82400)\r
+#define        ECCRAM  (*(volatile struct st_eccram  __evenaccess *)0x812C0)\r
+#define        EDMAC0  (*(volatile struct st_edmac   __evenaccess *)0xC0000)\r
+#define        EDMAC1  (*(volatile struct st_edmac   __evenaccess *)0xC0200)\r
+#define        EDMACP  (*(volatile struct st_edmacp  __evenaccess *)0xC0400)\r
+#define        ELC             (*(volatile struct st_elc     __evenaccess *)0x8B100)\r
+#define        EPTPC   (*(volatile struct st_eptpc   __evenaccess *)0xC0500)\r
+#define        EPTPCS0 (*(volatile struct st_eptpcs  __evenaccess *)0xC4800)\r
+#define        EPTPCS1 (*(volatile struct st_eptpcs  __evenaccess *)0xC4C00)\r
+#define        ETHERC0 (*(volatile struct st_etherc  __evenaccess *)0xC0100)\r
+#define        ETHERC1 (*(volatile struct st_etherc  __evenaccess *)0xC0300)\r
+#define        EXDMAC  (*(volatile struct st_exdmac  __evenaccess *)0x82A00)\r
+#define        EXDMAC0 (*(volatile struct st_exdmac0 __evenaccess *)0x82800)\r
+#define        EXDMAC1 (*(volatile struct st_exdmac1 __evenaccess *)0x82840)\r
+#define        GPT             (*(volatile struct st_gpt     __evenaccess *)0xC2000)\r
+#define        GPT0    (*(volatile struct st_gpt0    __evenaccess *)0xC2100)\r
+#define        GPT1    (*(volatile struct st_gpt0    __evenaccess *)0xC2180)\r
+#define        GPT2    (*(volatile struct st_gpt0    __evenaccess *)0xC2200)\r
+#define        GPT3    (*(volatile struct st_gpt0    __evenaccess *)0xC2280)\r
+#define        ICU             (*(volatile struct st_icu     __evenaccess *)0x87000)\r
+#define        IWDT    (*(volatile struct st_iwdt    __evenaccess *)0x88030)\r
+#define        MMC             (*(volatile struct st_mmc     __evenaccess *)0x88500)\r
+#define        MPC             (*(volatile struct st_mpc     __evenaccess *)0x8C100)\r
+#define        MPU             (*(volatile struct st_mpu     __evenaccess *)0x86400)\r
+#define        MTU             (*(volatile struct st_mtu     __evenaccess *)0xC120A)\r
+#define        MTU0    (*(volatile struct st_mtu0    __evenaccess *)0xC1290)\r
+#define        MTU1    (*(volatile struct st_mtu1    __evenaccess *)0xC1290)\r
+#define        MTU2    (*(volatile struct st_mtu2    __evenaccess *)0xC1292)\r
+#define        MTU3    (*(volatile struct st_mtu3    __evenaccess *)0xC1200)\r
+#define        MTU4    (*(volatile struct st_mtu4    __evenaccess *)0xC1200)\r
+#define        MTU5    (*(volatile struct st_mtu5    __evenaccess *)0xC1294)\r
+#define        MTU6    (*(volatile struct st_mtu6    __evenaccess *)0xC12A2)\r
+#define        MTU7    (*(volatile struct st_mtu7    __evenaccess *)0xC12A4)\r
+#define        MTU8    (*(volatile struct st_mtu8    __evenaccess *)0xC1298)\r
+#define        PDC             (*(volatile struct st_pdc     __evenaccess *)0xA0500)\r
+#define        POE3    (*(volatile struct st_poe     __evenaccess *)0x8C4C0)\r
+#define        PORT0   (*(volatile struct st_port0   __evenaccess *)0x8C000)\r
+#define        PORT1   (*(volatile struct st_port1   __evenaccess *)0x8C001)\r
+#define        PORT2   (*(volatile struct st_port2   __evenaccess *)0x8C002)\r
+#define        PORT3   (*(volatile struct st_port3   __evenaccess *)0x8C003)\r
+#define        PORT4   (*(volatile struct st_port4   __evenaccess *)0x8C004)\r
+#define        PORT5   (*(volatile struct st_port5   __evenaccess *)0x8C005)\r
+#define        PORT6   (*(volatile struct st_port6   __evenaccess *)0x8C006)\r
+#define        PORT7   (*(volatile struct st_port7   __evenaccess *)0x8C007)\r
+#define        PORT8   (*(volatile struct st_port8   __evenaccess *)0x8C008)\r
+#define        PORT9   (*(volatile struct st_port9   __evenaccess *)0x8C009)\r
+#define        PORTA   (*(volatile struct st_porta   __evenaccess *)0x8C00A)\r
+#define        PORTB   (*(volatile struct st_portb   __evenaccess *)0x8C00B)\r
+#define        PORTC   (*(volatile struct st_portc   __evenaccess *)0x8C00C)\r
+#define        PORTD   (*(volatile struct st_portd   __evenaccess *)0x8C00D)\r
+#define        PORTE   (*(volatile struct st_porte   __evenaccess *)0x8C00E)\r
+#define        PORTF   (*(volatile struct st_portf   __evenaccess *)0x8C00F)\r
+#define        PORTG   (*(volatile struct st_portg   __evenaccess *)0x8C010)\r
+#define        PORTJ   (*(volatile struct st_portj   __evenaccess *)0x8C012)\r
+#define        PPG0    (*(volatile struct st_ppg0    __evenaccess *)0x881E6)\r
+#define        PPG1    (*(volatile struct st_ppg1    __evenaccess *)0x881F0)\r
+#define        QSPI    (*(volatile struct st_qspi    __evenaccess *)0x89E00)\r
+#define        RIIC0   (*(volatile struct st_riic0   __evenaccess *)0x88300)\r
+#define        RIIC2   (*(volatile struct st_riic2   __evenaccess *)0x88340)\r
+#define        RSPI0   (*(volatile struct st_rspi0   __evenaccess *)0xD0100)\r
+#define        RTC             (*(volatile struct st_rtc     __evenaccess *)0x8C400)\r
+#define        RTCB    (*(volatile struct st_rtcb    __evenaccess *)0x8C402)\r
+#define        S12ADC0 (*(volatile struct st_s12ad   __evenaccess *)0x89000)\r
+#define        S12ADC1 (*(volatile struct st_s12ad1  __evenaccess *)0x89104)\r
+#define        SCI0    (*(volatile struct st_sci0    __evenaccess *)0x8A000)\r
+#define        SCI1    (*(volatile struct st_sci0    __evenaccess *)0x8A020)\r
+#define        SCI2    (*(volatile struct st_sci0    __evenaccess *)0x8A040)\r
+#define        SCI3    (*(volatile struct st_sci0    __evenaccess *)0x8A060)\r
+#define        SCI4    (*(volatile struct st_sci0    __evenaccess *)0x8A080)\r
+#define        SCI5    (*(volatile struct st_sci0    __evenaccess *)0x8A0A0)\r
+#define        SCI6    (*(volatile struct st_sci0    __evenaccess *)0x8A0C0)\r
+#define        SCI7    (*(volatile struct st_sci0    __evenaccess *)0x8A0E0)\r
+#define        SCI12   (*(volatile struct st_sci12   __evenaccess *)0x8B300)\r
+//#define      SCIA    (*(volatile struct st_scia    __evenaccess *)0x88484)\r
+//#define      SCIF10A (*(volatile struct st_scia    __evenaccess *)0xD0042)\r
+//#define      SCIF11A (*(volatile struct st_scia    __evenaccess *)0xD0062)\r
+#define        SCIF8   (*(volatile struct st_scif    __evenaccess *)0xD0000)\r
+#define        SCIF9   (*(volatile struct st_scif    __evenaccess *)0xD0020)\r
+#define        SCIF10  (*(volatile struct st_scif    __evenaccess *)0xD0040)\r
+#define        SCIF11  (*(volatile struct st_scif    __evenaccess *)0xD0060)\r
+//#define      SCIF8A  (*(volatile struct st_scia    __evenaccess *)0xD0002)\r
+//#define      SCIF9A  (*(volatile struct st_scia    __evenaccess *)0xD0022)\r
+#define        SMCI    (*(volatile struct st_smci    __evenaccess *)0x88480)\r
+#define        SMCI0   (*(volatile struct st_smci0   __evenaccess *)0x8A000)\r
+#define        SMCI1   (*(volatile struct st_smci0   __evenaccess *)0x8A020)\r
+#define        SMCI2   (*(volatile struct st_smci0   __evenaccess *)0x8A040)\r
+#define        SMCI3   (*(volatile struct st_smci0   __evenaccess *)0x8A060)\r
+#define        SMCI4   (*(volatile struct st_smci0   __evenaccess *)0x8A080)\r
+#define        SMCI5   (*(volatile struct st_smci0   __evenaccess *)0x8A0A0)\r
+#define        SMCI6   (*(volatile struct st_smci0   __evenaccess *)0x8A0C0)\r
+#define        SMCI7   (*(volatile struct st_smci0   __evenaccess *)0x8A0E0)\r
+#define        SMCI12  (*(volatile struct st_smci0   __evenaccess *)0x8B300)\r
+//#define      SMCIA   (*(volatile struct st_scia    __evenaccess *)0x88484)\r
+#define        SRC             (*(volatile struct st_src     __evenaccess *)0x98000)\r
+#define        SSI0    (*(volatile struct st_ssi     __evenaccess *)0x8A500)\r
+#define        SSI1    (*(volatile struct st_ssi     __evenaccess *)0x8A540)\r
+#define        SYSTEM  (*(volatile struct st_system  __evenaccess *)0x80000)\r
+#define        TEMPS   (*(volatile struct st_temps   __evenaccess *)0x8C500)\r
+#define        TMR0    (*(volatile struct st_tmr0    __evenaccess *)0x88200)\r
+#define        TMR1    (*(volatile struct st_tmr1    __evenaccess *)0x88201)\r
+#define        TMR2    (*(volatile struct st_tmr0    __evenaccess *)0x88210)\r
+#define        TMR3    (*(volatile struct st_tmr1    __evenaccess *)0x88211)\r
+#define        TMR01   (*(volatile struct st_tmr01   __evenaccess *)0x88204)\r
+#define        TMR23   (*(volatile struct st_tmr01   __evenaccess *)0x88214)\r
+#define        TPU0    (*(volatile struct st_tpu0    __evenaccess *)0x88108)\r
+#define        TPU1    (*(volatile struct st_tpu1    __evenaccess *)0x88108)\r
+#define        TPU2    (*(volatile struct st_tpu2    __evenaccess *)0x8810A)\r
+#define        TPU3    (*(volatile struct st_tpu3    __evenaccess *)0x8810A)\r
+#define        TPU4    (*(volatile struct st_tpu4    __evenaccess *)0x8810C)\r
+#define        TPU5    (*(volatile struct st_tpu5    __evenaccess *)0x8810C)\r
+#define        TPUA    (*(volatile struct st_tpua    __evenaccess *)0x88100)\r
+#define        USB             (*(volatile struct st_usb     __evenaccess *)0xA0400)\r
+#define        USB0    (*(volatile struct st_usb0    __evenaccess *)0xA0000)\r
+#define        USBHS   (*(volatile struct st_usbhs   __evenaccess *)0xD0400)\r
+#define        WDT             (*(volatile struct st_wdt     __evenaccess *)0x88020)\r
+#pragma bit_order\r
+#pragma packoption\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_macrodriver.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_macrodriver.h
new file mode 100644 (file)
index 0000000..19209ff
--- /dev/null
@@ -0,0 +1,99 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_macrodriver.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file implements general head file.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef MODULEID_H\r
+#define MODULEID_H\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_iodefine.h"\r
+#include <machine.h>\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+#ifndef __TYPEDEF__\r
+\r
+/* Status list definition */\r
+#define MD_STATUSBASE        (0x00U)\r
+#define MD_OK                (MD_STATUSBASE + 0x00U) /* register setting OK */\r
+#define MD_SPT               (MD_STATUSBASE + 0x01U) /* IIC stop */\r
+#define MD_NACK              (MD_STATUSBASE + 0x02U) /* IIC no ACK */\r
+#define MD_BUSY1             (MD_STATUSBASE + 0x03U) /* busy 1 */\r
+#define MD_BUSY2             (MD_STATUSBASE + 0x04U) /* busy 2 */\r
+\r
+/* Error list definition */\r
+#define MD_ERRORBASE         (0x80U)\r
+#define MD_ERROR             (MD_ERRORBASE + 0x00U)  /* error */\r
+#define MD_ARGERROR          (MD_ERRORBASE + 0x01U)  /* error argument input error */\r
+#define MD_ERROR1            (MD_ERRORBASE + 0x02U)  /* error 1 */\r
+#define MD_ERROR2            (MD_ERRORBASE + 0x03U)  /* error 2 */\r
+#define MD_ERROR3            (MD_ERRORBASE + 0x04U)  /* error 3 */\r
+#define MD_ERROR4            (MD_ERRORBASE + 0x05U)  /* error 4 */\r
+#define MD_ERROR5            (MD_ERRORBASE + 0x06U)  /* error 5 */\r
+\r
+/* BRK handler command options */\r
+typedef enum {\r
+    BRK_NO_COMMAND,\r
+    BRK_ALL_MODULE_CLOCK_STOP,\r
+    BRK_SLEEP,\r
+    BRK_DEEP_SLEEP,\r
+    BRK_STANDBY,\r
+    BRK_LOAD_FINTV_REGISTER\r
+} brk_commands;\r
+#endif\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+#ifndef __TYPEDEF__\r
+typedef signed char         int8_t;\r
+typedef unsigned char       uint8_t;\r
+typedef signed short        int16_t;\r
+typedef unsigned short      uint16_t;\r
+typedef signed long         int32_t;\r
+typedef unsigned long       uint32_t;\r
+typedef unsigned short      MD_STATUS;\r
+#define __TYPEDEF__\r
+#endif\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+void HardwareSetup(void);\r
+void R_Systeminit(void);\r
+\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_resetprg.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_resetprg.c
new file mode 100644 (file)
index 0000000..301dbe9
--- /dev/null
@@ -0,0 +1,96 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_resetprg.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : Reset program.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include <machine.h>\r
+#include <_h_c_lib.h>\r
+//#include <stddef.h> // Remove the comment when you use errno\r
+//#include <stdlib.h> // Remove the comment when you use rand()\r
+#include "r_cg_stacksct.h"\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+void PowerON_Reset(void);\r
+void main(void);\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#define PSW_init  0x00010000        /* PSW bit pattern */\r
+#define FPSW_init 0x00000000        /* FPSW bit base pattern */\r
+\r
+#pragma section ResetPRG            /* output PowerON_Reset to PResetPRG section */\r
+\r
+#pragma entry PowerON_Reset\r
+\r
+void PowerON_Reset(void)\r
+{\r
+    set_intb(__sectop("C$VECT"));\r
+\r
+#ifdef __ROZ                        /* Initialize FPSW */\r
+#define _ROUND 0x00000001           /* Let FPSW RMbits=01 (round to zero) */\r
+#else\r
+#define _ROUND 0x00000000           /* Let FPSW RMbits=00 (round to nearest) */\r
+#endif\r
+#ifdef __DOFF\r
+#define _DENOM 0x00000100           /* Let FPSW DNbit=1 (denormal as zero) */\r
+#else\r
+#define _DENOM 0x00000000           /* Let FPSW DNbit=0 (denormal as is) */\r
+#endif\r
+\r
+    set_fpsw(FPSW_init | _ROUND | _DENOM);\r
+    \r
+    _INITSCT();                     /* Initialize Sections */\r
+    HardwareSetup();                /* Use Hardware Setup */\r
+    nop();\r
+    set_psw(PSW_init);              /* Set Ubit & Ibit for PSW */\r
+    main();\r
+    brk();\r
+}\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_sbrk.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_sbrk.c
new file mode 100644 (file)
index 0000000..34486d3
--- /dev/null
@@ -0,0 +1,91 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_sbrk.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : Program of sbrk.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include <stddef.h>\r
+#include <stdio.h>\r
+#include "r_cg_sbrk.h"\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+\r
+int8_t  *sbrk(size_t size);\r
+\r
+extern int8_t *_s1ptr;\r
+\r
+union HEAP_TYPE\r
+{\r
+    int16_t  dummy ;            /* Dummy for 4-byte boundary */\r
+    int8_t heap[HEAPSIZE];      /* Declaration of the area managed by sbrk */\r
+};\r
+\r
+static union HEAP_TYPE heap_area ;\r
+\r
+/* End address allocated by sbrk    */\r
+static int8_t *brk = (int8_t *) &heap_area;\r
+\r
+/**************************************************************************/\r
+/*      sbrk:Memory area allocation                                       */\r
+/*      Return value:Start address of allocated area    (Pass)            */\r
+/*                       -1                             (Failure)         */\r
+/**************************************************************************/\r
+int8_t *sbrk(size_t size)                       /* Assigned area size   */\r
+{\r
+    int8_t  *p;\r
+\r
+    if (brk+size > heap_area.heap + HEAPSIZE)   /* Empty area size      */\r
+    {\r
+        p = (int8_t *)-1;\r
+    }\r
+    else\r
+    {\r
+        p = brk;                                /* Area assignment      */\r
+        brk += size;                            /* End address update   */\r
+    }\r
+\r
+    return p;\r
+}\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_sbrk.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_sbrk.h
new file mode 100644 (file)
index 0000000..b5a48c0
--- /dev/null
@@ -0,0 +1,53 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_sbrk.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : Header file of sbrk file.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef _SBRK_H\r
+#define _SBRK_H\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+#define HEAPSIZE        (0x400U) /* Size of area managed by sbrk */\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_stacksct.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_stacksct.h
new file mode 100644 (file)
index 0000000..afb7e2f
--- /dev/null
@@ -0,0 +1,55 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_stacksct.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : Setting of Stack area.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef _STACKSCT_H\r
+#define _STACKSCT_H\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+#pragma stacksize su = 0x100\r
+#pragma stacksize si = 0x300\r
+\r
+\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_userdefine.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_userdefine.h
new file mode 100644 (file)
index 0000000..610e2de
--- /dev/null
@@ -0,0 +1,43 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_userdefine.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file includes user definition.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef _USER_DEF_H\r
+#define _USER_DEF_H\r
+\r
+/***********************************************************************************************************************\r
+User definitions\r
+***********************************************************************************************************************/\r
+#define FAST_INTERRUPT_VECTOR 0\r
+\r
+/* Start user code for function. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_vect.h b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_vect.h
new file mode 100644 (file)
index 0000000..aa6396e
--- /dev/null
@@ -0,0 +1,88 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_vect.h\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file contains definition of vector.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+#ifndef _VECT_H\r
+#define _VECT_H\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+/* Undefined */\r
+#pragma interrupt (r_undefined_exception)\r
+void r_undefined_exception(void);\r
+\r
+/* Reserved */\r
+#pragma interrupt (r_reserved_exception)\r
+void r_reserved_exception(void);\r
+\r
+/* NMI */\r
+#pragma interrupt (r_nmi_exception)\r
+void r_nmi_exception(void);\r
+\r
+/* ICU GROUPBE0 */\r
+#pragma interrupt (r_icua_group_be0_interrupt(vect=106))\r
+void r_icua_group_be0_interrupt(void);\r
+\r
+/* ICU GROUPBL0 */\r
+#pragma interrupt (r_icua_group_bl0_interrupt(vect=110))\r
+void r_icua_group_bl0_interrupt(void);\r
+\r
+/* ICU GROUPBL1 */\r
+#pragma interrupt (r_icua_group_bl1_interrupt(vect=111))\r
+void r_icua_group_bl1_interrupt(void);\r
+\r
+/* ICU GROUPAL0 */\r
+#pragma interrupt (r_icua_group_al0_interrupt(vect=112))\r
+void r_icua_group_al0_interrupt(void);\r
+\r
+/* ICU GROUPAL1 */\r
+#pragma interrupt (r_icua_group_al1_interrupt(vect=113))\r
+void r_icua_group_al1_interrupt(void);\r
+\r
+/*;<<VECTOR DATA START (POWER ON RESET)>> */\r
+/*;Power On Reset PC */\r
+extern void PowerON_Reset(void);\r
+/*;<<VECTOR DATA END (POWER ON RESET)>> */\r
+\r
+#endif
\ No newline at end of file
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_vecttbl.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/Renesas_Code/cg_src/r_cg_vecttbl.c
new file mode 100644 (file)
index 0000000..a798651
--- /dev/null
@@ -0,0 +1,103 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only \r
+* intended for use with Renesas products. No other uses are authorized. This \r
+* software is owned by Renesas Electronics Corporation and is protected under \r
+* all applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING \r
+* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT \r
+* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE \r
+* AND NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.\r
+* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS \r
+* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE \r
+* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR \r
+* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE \r
+* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software \r
+* and to discontinue the availability of this software.  By using this software, \r
+* you agree to the additional terms and conditions found by accessing the \r
+* following link:\r
+* http://www.renesas.com/disclaimer\r
+*\r
+* Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_vecttbl.c\r
+* Version      : Applilet4 for RX64M V1.00.00.00 [02 Aug 2013]\r
+* Device(s)    : R5F564MLHxFC\r
+* Tool-Chain   : CCRX\r
+* Description  : This file initializes the vector table.\r
+* Creation Date: 07/02/2014\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+Pragma directive\r
+***********************************************************************************************************************/\r
+/* Start user code for pragma. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+Includes\r
+***********************************************************************************************************************/\r
+#include "r_cg_macrodriver.h"\r
+#include "r_cg_vect.h"\r
+#include "r_cg_userdefine.h"\r
+\r
+/***********************************************************************************************************************\r
+Global variables and functions\r
+***********************************************************************************************************************/\r
+\r
+#pragma section C FIXEDVECT\r
+\r
+void (*const Fixed_Vectors[])(void) = {\r
+/*;0xffffffd0  Exception(Supervisor Instruction) */\r
+    r_undefined_exception,\r
+/*;0xffffffd4  Reserved */\r
+    r_undefined_exception,\r
+/*;0xffffffd8  Reserved */\r
+    r_reserved_exception,\r
+/*;0xffffffdc  Exception(Undefined Instruction) */\r
+    r_undefined_exception,\r
+/*;0xffffffe0  Reserved */\r
+    r_reserved_exception,\r
+/*;0xffffffe4  Exception(Floating Point) */\r
+    r_undefined_exception,\r
+/*;0xffffffe8  Reserved */\r
+    r_reserved_exception,\r
+/*;0xffffffec  Reserved */\r
+    r_reserved_exception,\r
+/*;0xfffffff0  Reserved */\r
+    r_reserved_exception,\r
+/*;0xfffffff4  Reserved */\r
+    r_reserved_exception,\r
+/*;0xfffffff8  NMI */\r
+    r_nmi_exception,\r
+/*;0xfffffffc  RESET */\r
+/*;<<VECTOR DATA START (POWER ON RESET)>> */\r
+/*;Power On Reset PC */\r
+    /*(void*)*/ PowerON_Reset\r
+/*;<<VECTOR DATA END (POWER ON RESET)>> */\r
+};\r
+\r
+/* ID codes (Default) */\r
+#pragma address id_code=0xffffffa0\r
+const unsigned long id_code[4] = {\r
+    0xffffffff,\r
+    0xffffffff,\r
+    0xffffffff,\r
+    0xffffffff,\r
+};\r
+\r
+/* MDE register (Single Chip Mode) */\r
+#pragma address _MDEreg=0xffffff80\r
+#ifdef __BIG\r
+    /* Big endian*/\r
+    const unsigned long _MDEreg = 0xfffffff8;\r
+#else\r
+    /* Little endian */\r
+    const unsigned long _MDEreg = 0xffffffff;\r
+#endif\r
+\r
+/* Start user code for adding. Do not edit comment generated here */\r
+/* End user code. Do not edit comment generated here */\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/main.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/main.c
new file mode 100644 (file)
index 0000000..9dbd3b1
--- /dev/null
@@ -0,0 +1,275 @@
+/*\r
+    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+    All rights reserved\r
+\r
+    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    FreeRTOS provides completely free yet professionally developed,    *\r
+     *    robust, strictly quality controlled, supported, and cross          *\r
+     *    platform software that has become a de facto standard.             *\r
+     *                                                                       *\r
+     *    Help yourself get started quickly and support the FreeRTOS         *\r
+     *    project by purchasing a FreeRTOS tutorial book, reference          *\r
+     *    manual, or both from: http://www.FreeRTOS.org/Documentation        *\r
+     *                                                                       *\r
+     *    Thank you!                                                         *\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
+\r
+    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
+    >>! a combined work that includes FreeRTOS without being obliged to provide\r
+    >>! the source code for proprietary components outside of the FreeRTOS\r
+    >>! kernel.\r
+\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
+    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
+    FOR A PARTICULAR PURPOSE.  Full license text is available from the following\r
+    link: http://www.freertos.org/a00114.html\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    Having a problem?  Start by reading the FAQ "My application does   *\r
+     *    not run, what could be wrong?"                                     *\r
+     *                                                                       *\r
+     *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
+     *                                                                       *\r
+    ***************************************************************************\r
+\r
+    http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
+    license and Real Time Engineers Ltd. contact details.\r
+\r
+    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
+    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
+    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
+\r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
+    licenses offer ticketed support, indemnification and middleware.\r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
+    mission critical applications that require provable dependability.\r
+\r
+    1 tab == 4 spaces!\r
+*/\r
+\r
+/******************************************************************************\r
+ * This project provides two demo applications.  A simple blinky style project,\r
+ * and a more comprehensive test and demo application.  The\r
+ * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting (defined in this file) is used to\r
+ * select between the two.  The simply blinky demo is implemented and described\r
+ * in main_blinky.c.  The more comprehensive test and demo application is\r
+ * implemented and described in main_full.c.\r
+ *\r
+ * This file implements the code that is not demo specific, including the\r
+ * hardware setup and FreeRTOS hook functions.\r
+ *\r
+ * ENSURE TO READ THE DOCUMENTATION PAGE FOR THIS PORT AND DEMO APPLICATION ON\r
+ * THE http://www.FreeRTOS.org WEB SITE FOR FULL INFORMATION ON USING THIS DEMO\r
+ * APPLICATION, AND ITS ASSOCIATE FreeRTOS ARCHITECTURE PORT!\r
+ *\r
+ */\r
+\r
+/* Scheduler include files. */\r
+#include "FreeRTOS.h"\r
+#include "task.h"\r
+#include "semphr.h"\r
+\r
+/* Standard demo includes. */\r
+//#include "partest.h"\r
+//#include "TimerDemo.h"\r
+//#include "QueueOverwrite.h"\r
+//#include "EventGroupsDemo.h"\r
+\r
+/* Renesas includes. */\r
+#include "r_cg_macrodriver.h"\r
+//#include "r_cg_cgc.h"\r
+//#include "r_cg_cmt.h"\r
+//#include "r_cg_userdefine.h"\r
+\r
+/* Set option bytes */\r
+#pragma address OFS0_location = 0xFFFFFF8CUL\r
+#pragma address OFS1_location = 0xFFFFFF88UL\r
+volatile const uint32_t OFS0_location = 0xFFFFFFFFUL;\r
+volatile const uint32_t OFS1_location = 0xFFFFFFFFUL;\r
+\r
+\r
+/* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo,\r
+or 0 to run the more comprehensive test and demo application. */\r
+#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     1\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+/*\r
+ * Configure the hardware as necessary to run this demo.\r
+ */\r
+static void prvSetupHardware( void );\r
+\r
+/*\r
+ * main_blinky() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.\r
+ * main_full() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 0.\r
+ */\r
+#if mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1\r
+       extern void main_blinky( void );\r
+#else\r
+       extern void main_full( void );\r
+#endif /* #if mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 */\r
+\r
+/*\r
+ * The Xilinx projects use a BSP that do not allow the start up code to be\r
+ * altered easily.  Therefore the vector table used by FreeRTOS is defined in\r
+ * FreeRTOS_asm_vectors.S, which is part of this project.  Switch to use the\r
+ * FreeRTOS vector table.\r
+ */\r
+extern void vPortInstallFreeRTOSVectorTable( void );\r
+\r
+/* Prototypes for the standard FreeRTOS callback/hook functions implemented\r
+within this file. */\r
+void vApplicationMallocFailedHook( void );\r
+void vApplicationIdleHook( void );\r
+void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName );\r
+void vApplicationTickHook( void );\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+int main( void )\r
+{\r
+       /* Configure the hardware ready to run the demo. */\r
+       prvSetupHardware();\r
+\r
+       /* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top\r
+       of this file. */\r
+       #if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 )\r
+       {\r
+               main_blinky();\r
+       }\r
+       #else\r
+       {\r
+               main_full();\r
+       }\r
+       #endif\r
+\r
+       /* Don't expect to reach here. */\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+static void prvSetupHardware( void )\r
+{\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vApplicationMallocFailedHook( void )\r
+{\r
+       /* Called if a call to pvPortMalloc() fails because there is insufficient\r
+       free memory available in the FreeRTOS heap.  pvPortMalloc() is called\r
+       internally by FreeRTOS API functions that create tasks, queues, software\r
+       timers, and semaphores.  The size of the FreeRTOS heap is set by the\r
+       configTOTAL_HEAP_SIZE configuration constant in FreeRTOSConfig.h. */\r
+       taskDISABLE_INTERRUPTS();\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )\r
+{\r
+       ( void ) pcTaskName;\r
+       ( void ) pxTask;\r
+\r
+       /* Run time stack overflow checking is performed if\r
+       configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2.  This hook\r
+       function is called if a stack overflow is detected. */\r
+       taskDISABLE_INTERRUPTS();\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vApplicationIdleHook( void )\r
+{\r
+volatile size_t xFreeHeapSpace;\r
+\r
+       /* This is just a trivial example of an idle hook.  It is called on each\r
+       cycle of the idle task.  It must *NOT* attempt to block.  In this case the\r
+       idle task just queries the amount of FreeRTOS heap that remains.  See the\r
+       memory management section on the http://www.FreeRTOS.org web site for memory\r
+       management options.  If there is a lot of heap memory free then the\r
+       configTOTAL_HEAP_SIZE value in FreeRTOSConfig.h can be reduced to free up\r
+       RAM. */\r
+       xFreeHeapSpace = xPortGetFreeHeapSize();\r
+\r
+       /* Remove compiler warning about xFreeHeapSpace being set but never used. */\r
+       ( void ) xFreeHeapSpace;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vApplicationTickHook( void )\r
+{\r
+       #if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 0 )\r
+       {\r
+               /* The full demo includes a software timer demo/test that requires\r
+               prodding periodically from the tick interrupt. */\r
+               vTimerPeriodicISRTests();\r
+\r
+               /* Call the periodic queue overwrite from ISR demo. */\r
+               vQueueOverwritePeriodicISRDemo();\r
+\r
+               /* Call the periodic event group from ISR demo. */\r
+               vPeriodicEventGroupsProcessing();\r
+       }\r
+       #endif\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vAssertCalled( void )\r
+{\r
+volatile unsigned long ul = 0;\r
+\r
+       taskENTER_CRITICAL();\r
+       {\r
+               /* Use the debugger to set ul to a non-zero value in order to step out\r
+               of this function to determine why it was called. */\r
+               while( ul == 0 )\r
+               {\r
+                       portNOP();\r
+               }\r
+       }\r
+       taskEXIT_CRITICAL();\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
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/main_blinky.c b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/main_blinky.c
new file mode 100644 (file)
index 0000000..b84f2a0
--- /dev/null
@@ -0,0 +1,232 @@
+/*\r
+    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+    All rights reserved\r
+\r
+    VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    FreeRTOS provides completely free yet professionally developed,    *\r
+     *    robust, strictly quality controlled, supported, and cross          *\r
+     *    platform software that has become a de facto standard.             *\r
+     *                                                                       *\r
+     *    Help yourself get started quickly and support the FreeRTOS         *\r
+     *    project by purchasing a FreeRTOS tutorial book, reference          *\r
+     *    manual, or both from: http://www.FreeRTOS.org/Documentation        *\r
+     *                                                                       *\r
+     *    Thank you!                                                         *\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
+\r
+    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
+    >>! a combined work that includes FreeRTOS without being obliged to provide\r
+    >>! the source code for proprietary components outside of the FreeRTOS\r
+    >>! kernel.\r
+\r
+    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
+    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
+    FOR A PARTICULAR PURPOSE.  Full license text is available from the following\r
+    link: http://www.freertos.org/a00114.html\r
+\r
+    1 tab == 4 spaces!\r
+\r
+    ***************************************************************************\r
+     *                                                                       *\r
+     *    Having a problem?  Start by reading the FAQ "My application does   *\r
+     *    not run, what could be wrong?"                                     *\r
+     *                                                                       *\r
+     *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
+     *                                                                       *\r
+    ***************************************************************************\r
+\r
+    http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
+    license and Real Time Engineers Ltd. contact details.\r
+\r
+    http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
+    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
+    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
+\r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
+    licenses offer ticketed support, indemnification and middleware.\r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
+    mission critical applications that require provable dependability.\r
+\r
+    1 tab == 4 spaces!\r
+*/\r
+\r
+/******************************************************************************\r
+ * NOTE 1:  This project provides two demo applications.  A simple blinky style\r
+ * project, and a more comprehensive test and demo application.  The\r
+ * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting in main.c is used to select\r
+ * between the two.  See the notes on using mainCREATE_SIMPLE_BLINKY_DEMO_ONLY\r
+ * in main.c.  This file implements the simply blinky style version.\r
+ *\r
+ * NOTE 2:  This file only contains the source code that is specific to the\r
+ * basic demo.  Generic functions, such FreeRTOS hook functions, and functions\r
+ * required to configure the hardware are defined in main.c.\r
+ ******************************************************************************\r
+ *\r
+ * main_blinky() creates one queue, and two tasks.  It then starts the\r
+ * scheduler.\r
+ *\r
+ * The Queue Send Task:\r
+ * The queue send task is implemented by the prvQueueSendTask() function in\r
+ * this file.  prvQueueSendTask() sits in a loop that causes it to repeatedly\r
+ * block for 200 milliseconds, before sending the value 100 to the queue that\r
+ * was created within main_blinky().  Once the value is sent, the task loops\r
+ * back around to block for another 200 milliseconds...and so on.\r
+ *\r
+ * The Queue Receive Task:\r
+ * The queue receive task is implemented by the prvQueueReceiveTask() function\r
+ * in this file.  prvQueueReceiveTask() sits in a loop where it repeatedly\r
+ * blocks on attempts to read data from the queue that was created within\r
+ * main_blinky().  When data is received, the task checks the value of the\r
+ * data, and if the value equals the expected 100, toggles an LED.  The 'block\r
+ * time' parameter passed to the queue receive function specifies that the\r
+ * task should be held in the Blocked state indefinitely to wait for data to\r
+ * be available on the queue.  The queue receive task will only leave the\r
+ * Blocked state when the queue send task writes to the queue.  As the queue\r
+ * send task writes to the queue every 200 milliseconds, the queue receive\r
+ * task leaves the Blocked state every 200 milliseconds, and therefore toggles\r
+ * the LED every 200 milliseconds.\r
+ */\r
+\r
+/* Kernel includes. */\r
+#include "FreeRTOS.h"\r
+#include "task.h"\r
+#include "semphr.h"\r
+\r
+/* Standard demo includes. */\r
+#include "partest.h"\r
+\r
+/* Priorities at which the tasks are created. */\r
+#define mainQUEUE_RECEIVE_TASK_PRIORITY                ( tskIDLE_PRIORITY + 2 )\r
+#define        mainQUEUE_SEND_TASK_PRIORITY            ( tskIDLE_PRIORITY + 1 )\r
+\r
+/* The rate at which data is sent to the queue.  The 200ms value is converted\r
+to ticks using the portTICK_PERIOD_MS constant. */\r
+#define mainQUEUE_SEND_FREQUENCY_MS                    ( 200 / portTICK_PERIOD_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, meaning the send task should always find\r
+the queue empty. */\r
+#define mainQUEUE_LENGTH                                       ( 1 )\r
+\r
+/* The LED toggled by the Rx task. */\r
+#define mainTASK_LED                                           ( 0 )\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+/*\r
+ * The tasks as described in the comments at the top of this file.\r
+ */\r
+static void prvQueueReceiveTask( void *pvParameters );\r
+static void prvQueueSendTask( void *pvParameters );\r
+\r
+/*\r
+ * Called by main() to create the simply blinky style application if\r
+ * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.\r
+ */\r
+void main_blinky( void );\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+/* The queue used by both tasks. */\r
+static QueueHandle_t xQueue = NULL;\r
+\r
+/*-----------------------------------------------------------*/\r
+\r
+void main_blinky( void )\r
+{\r
+       /* Create the queue. */\r
+       xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( uint32_t ) );\r
+\r
+       if( xQueue != NULL )\r
+       {\r
+               /* Start the two tasks as described in the comments at the top of this\r
+               file. */\r
+               xTaskCreate( prvQueueReceiveTask,                               /* The function that implements the task. */\r
+                                       "Rx",                                                           /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       configMINIMAL_STACK_SIZE,                       /* The size of the stack to allocate to the task. */\r
+                                       NULL,                                                           /* The parameter passed to the task - not used in this case. */\r
+                                       mainQUEUE_RECEIVE_TASK_PRIORITY,        /* The priority assigned to the task. */\r
+                                       NULL );                                                         /* The task handle is not required, so NULL is passed. */\r
+\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+\r
+               /* Start the tasks and timer running. */\r
+               vTaskStartScheduler();\r
+       }\r
+\r
+       /* If all is well, the scheduler will now be running, and the following\r
+       line will never be reached.  If the following line does execute, then\r
+       there was either insufficient FreeRTOS heap memory available for the idle\r
+       and/or timer tasks to be created, or vTaskStartScheduler() was called from\r
+       User mode.  See the memory management section on the FreeRTOS web site for\r
+       more details on the FreeRTOS heap http://www.freertos.org/a00111.html.  The\r
+       mode from which main() is called is set in the C start up code and must be\r
+       a privileged mode (not user mode). */\r
+       for( ;; );\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+static void prvQueueSendTask( void *pvParameters )\r
+{\r
+TickType_t xNextWakeTime;\r
+const unsigned long ulValueToSend = 100UL;\r
+\r
+       /* Remove compiler warning about unused parameter. */\r
+       ( void ) pvParameters;\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, mainQUEUE_SEND_FREQUENCY_MS );\r
+\r
+               /* Send to the queue - causing the queue receive task to unblock and\r
+               toggle the LED.  0 is used as the block time so the sending operation\r
+               will not block - it shouldn't need to block as the queue should always\r
+               be empty at this point in the code. */\r
+               xQueueSend( xQueue, &ulValueToSend, 0U );\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+static void prvQueueReceiveTask( void *pvParameters )\r
+{\r
+unsigned long ulReceivedValue;\r
+const unsigned long ulExpectedValue = 100UL;\r
+\r
+       /* Remove compiler warning about unused parameter. */\r
+       ( void ) pvParameters;\r
+\r
+       for( ;; )\r
+       {\r
+               /* Wait until something arrives in the queue - this task 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 been received from the queue, but\r
+               is it the expected value?  If it is, toggle the LED. */\r
+               if( ulReceivedValue == ulExpectedValue )\r
+               {\r
+                       vParTestToggleLED( mainTASK_LED );\r
+                       ulReceivedValue = 0U;\r
+               }\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
diff --git a/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/makefile.init b/FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/makefile.init
new file mode 100644 (file)
index 0000000..e3d6589
--- /dev/null
@@ -0,0 +1,8 @@
+################################################################################\r
+# Automatically-generated file. Do not edit!\r
+################################################################################\r
+\r
+export INC_RX=C:\Devtools\Renesas\Hew\Tools\Renesas\RX\1_2_1\include
+export RXC_LIB=C:\Devtools\Renesas\Hew\Tools\Renesas\RX\1_2_1\bin
+export BIN_RX=C:\Devtools\Renesas\Hew\Tools\Renesas\RX\1_2_1\bin
+PATH := $(PATH):C:\Devtools\Renesas\Hew\Tools\Renesas\RX\1_2_1\bin
\ No newline at end of file