]> git.sur5r.net Git - freertos/commitdiff
Added YRDKRL78G14 build configuration to the IAR RL78 demo.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 24 Feb 2013 19:48:26 +0000 (19:48 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 24 Feb 2013 19:48:26 +0000 (19:48 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1833 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

12 files changed:
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/FreeRTOSConfig.h
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewd
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RTOSDemo.ewp
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RegTest.s87
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/main.c
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/settings/rtosdemo.cspy.bat
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/settings/rtosdemo.dbgdt
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/settings/rtosdemo.dni
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/settings/rtosdemo.wsdt
FreeRTOS/Source/portable/IAR/RL78/port.c
FreeRTOS/Source/portable/IAR/RL78/portasm.s87
FreeRTOS/Source/portable/IAR/RL78/portmacro.h

index 1833c1601d15b1d70b8e992d572be7b8f13e7bdf..d9cef01304a2015aab8f6e3dc6c2873413b12215 100644 (file)
     ***************************************************************************\r
 \r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \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, and our new\r
     fully thread aware and reentrant UDP/IP stack.\r
 \r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems, who sell the code with commercial support,\r
     indemnification and middleware, under the OpenRTOS brand.\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
+\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
 \r
 asm file.  It is valid in a C file, but not valid in an asm file. */\r
 #ifdef __IAR_SYSTEMS_ICC__\r
 \r
-       #pragma language=extended\r
+//     #pragma language=extended\r
        #pragma system_include\r
 \r
        #include <intrinsics.h>\r
 \r
-       /* Device specific includes. */\r
-       #include <ior5f100le.h>\r
-       #include <ior5f100le_ext.h>\r
-\r
 #endif /* __IAR_SYSTEMS_ICC__ */\r
 \r
 #define configUSE_PREEMPTION                   1\r
@@ -142,26 +138,7 @@ to exclude the API function. */
 #define INCLUDE_xTimerGetTimerDaemonTaskHandle         0\r
 \r
 \r
-/******************************************************************************\r
- * PORT SPECIFIC CONFIGURATION OPTIONS\r
- ******************************************************************************/\r
-\r
-/*\r
- * RL78/G13 Clock Source Configuration\r
- * 1 = use internal High Speed Clock Source (typically 32Mhz on the RL78/G13)\r
- * 0 = use external Clock Source\r
- */\r
-#define configCLOCK_SOURCE                       1\r
-\r
-#if configCLOCK_SOURCE == 0\r
-       #define configCPU_CLOCK_HZ              ( ( unsigned long ) 20000000 )  /* using the external clock source */\r
-#else\r
-       #define configCPU_CLOCK_HZ              ( ( unsigned long ) 32000000 )   /* using the internal high speed clock */\r
-#endif /* configCLOCK_SOURCE */\r
-\r
 #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
 \r
-\r
-\r
 #endif /* FREERTOS_CONFIG_H */\r
 \r
index 6796d046231499bc715779776ea970a6f92959b9..94f97c0c2f55d600aa48dee9ae9bc3beb082cdc7 100644 (file)
@@ -3,7 +3,7 @@
 <project>\r
   <fileVersion>2</fileVersion>\r
   <configuration>\r
-    <name>Debug</name>\r
+    <name>YRPBRL78G13</name>\r
     <toolchain>\r
       <name>RL78</name>\r
     </toolchain>\r
         <file>$TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin</file>\r
         <loadFlag>0</loadFlag>\r
       </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\FreeRTOS\OpenRTOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\SafeRTOS\SafeRTOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin</file>\r
+        <loadFlag>1</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$EW_DIR$\common\plugins\Stack\Stack.ENU.ewplugin</file>\r
+        <loadFlag>1</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin</file>\r
+        <loadFlag>1</loadFlag>\r
+      </plugin>\r
+    </debuggerPlugins>\r
+  </configuration>\r
+  <configuration>\r
+    <name>YRDKRL78G14</name>\r
+    <toolchain>\r
+      <name>RL78</name>\r
+    </toolchain>\r
+    <debug>1</debug>\r
+    <settings>\r
+      <name>C-SPY</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>DebugMandatory</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugInput</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugProcessorVariant</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebuggerNearConstLocation</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugRunToEnable</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugRunToName</name>\r
+          <state>main</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugMacOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugMacFile</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DynDriver</name>\r
+          <state>TKRL78</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugDDFOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugDDFFile</name>\r
+          <state>$TOOLKIT_DIR$\CONFIG\DDF\ior5f104pj.ddf</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugCUseExtraOptions</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugExtraOptions</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesSuppressCheck1</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesPath1</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesSuppressCheck2</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesPath2</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesSuppressCheck3</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesPath3</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesOffset1</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesOffset2</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesOffset3</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesUse1</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesUse2</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugImagesUse3</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>E1RL78</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>E1Mandatory</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>E1SuppressLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>E1VerifyLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>E1LogFile</name>\r
+          <state>$PROJ_DIR$\cspycomm.log</state>\r
+        </option>\r
+        <option>\r
+          <name>E1DoLogfile</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>E20RL78</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>E20Mandatory</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>E20SuppressLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>E20VerifyLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>E20LogFile</name>\r
+          <state>$PROJ_DIR$\cspycomm.log</state>\r
+        </option>\r
+        <option>\r
+          <name>E20DoLogfile</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>IECRL78</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>IecMandatory</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IecSuppressLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IecVerifyLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IecLogFile</name>\r
+          <state>$PROJ_DIR$\cspycomm.log</state>\r
+        </option>\r
+        <option>\r
+          <name>IecDoLogfile</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IecSupExchAdapter</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>SIMRL78</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>SimMandatory</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>TKRL78</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>TKMandatory</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>TKSuppressLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>TKVerifyLoad</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>TKLogFile</name>\r
+          <state>$PROJ_DIR$\cspycomm.log</state>\r
+        </option>\r
+        <option>\r
+          <name>TKDoLogfile</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <debuggerPlugins>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\FreeRTOS\OpenRTOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
+      <plugin>\r
+        <file>$TOOLKIT_DIR$\plugins\rtos\SafeRTOS\SafeRTOSPlugin.ewplugin</file>\r
+        <loadFlag>0</loadFlag>\r
+      </plugin>\r
       <plugin>\r
         <file>$TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin</file>\r
         <loadFlag>0</loadFlag>\r
index 00e2d9df5fdb8bf1e602bca166710eed50583e0f..573347038383e35f1e46fda5762c3fcac6ceca9b 100644 (file)
@@ -3,16 +3,16 @@
 <project>\r
   <fileVersion>2</fileVersion>\r
   <configuration>\r
-    <name>Debug</name>\r
+    <name>YRPBRL78G13</name>\r
     <toolchain>\r
       <name>RL78</name>\r
     </toolchain>\r
     <debug>1</debug>\r
     <settings>\r
       <name>General</name>\r
-      <archiveVersion>2</archiveVersion>\r
+      <archiveVersion>4</archiveVersion>\r
       <data>\r
-        <version>0</version>\r
+        <version>1</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>ExePath</name>\r
-          <state>Debug\Exe</state>\r
+          <state>YRPBRL78G13\Exe</state>\r
         </option>\r
         <option>\r
           <name>ObjPath</name>\r
-          <state>Debug\Obj</state>\r
+          <state>YRPBRL78G13\Obj</state>\r
         </option>\r
         <option>\r
           <name>ListPath</name>\r
-          <state>Debug\List</state>\r
+          <state>YRPBRL78G13\List</state>\r
         </option>\r
         <option>\r
           <name>GenRuntimeLibSelect</name>\r
@@ -86,8 +86,8 @@
         </option>\r
         <option>\r
           <name>GenLibInFormatter</name>\r
-          <version>0</version>\r
-          <state>2</state>\r
+          <version>1</version>\r
+          <state>3</state>\r
         </option>\r
         <option>\r
           <name>GenLibInFormatterDescription</name>\r
@@ -95,8 +95,8 @@
         </option>\r
         <option>\r
           <name>GenLibOutFormatter</name>\r
-          <version>0</version>\r
-          <state>3</state>\r
+          <version>1</version>\r
+          <state>4</state>\r
         </option>\r
         <option>\r
           <name>GenLibOutFormatterDescription</name>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GenMathFunctionVariant</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenMathFunctionDescription</name>\r
+          <state>Default variants of cos, sin, tan, log, log10, pow, and exp.</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCRL78</name>\r
-      <archiveVersion>2</archiveVersion>\r
+      <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>5</version>\r
+        <version>6</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IccCppDialect</name>\r
           <state>1</state>\r
         </option>\r
-        <option>\r
-          <name>IccRelaxedFpPrecision</name>\r
-          <state>0</state>\r
-        </option>\r
         <option>\r
           <name>IccRequirePrototypes</name>\r
           <state>0</state>\r
         </option>\r
         <option>\r
           <name>IccOptAllowList</name>\r
-          <version>0</version>\r
-          <state>00000</state>\r
+          <version>1</version>\r
+          <state>0000011</state>\r
         </option>\r
         <option>\r
           <name>IccWrksegEnable</name>\r
           <name>IccExtraOptions</name>\r
           <state></state>\r
         </option>\r
+        <option>\r
+          <name>IccdAggressiveInlining</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccdAggressiveUnrolling</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCppInlineSemantics</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccStaticDestr</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccFloatSemantics</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ARL78</name>\r
-      <archiveVersion>2</archiveVersion>\r
+      <archiveVersion>3</archiveVersion>\r
       <data>\r
         <version>1</version>\r
         <wantNonLocal>1</wantNonLocal>\r
     </settings>\r
     <settings>\r
       <name>XLINK</name>\r
-      <archiveVersion>2</archiveVersion>\r
+      <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>13</version>\r
+        <version>14</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>XlinkFarHeap</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcUnitSize</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>XAR</name>\r
-      <archiveVersion>2</archiveVersion>\r
+      <archiveVersion>3</archiveVersion>\r
       <data>\r
         <version>0</version>\r
         <wantNonLocal>1</wantNonLocal>\r
     </settings>\r
     <settings>\r
       <name>INTERNAL_HWSUPPORT</name>\r
-      <archiveVersion>2</archiveVersion>\r
+      <archiveVersion>3</archiveVersion>\r
+      <data/>\r
+    </settings>\r
+    <settings>\r
+      <name>BILINK</name>\r
+      <archiveVersion>0</archiveVersion>\r
+      <data/>\r
+    </settings>\r
+  </configuration>\r
+  <configuration>\r
+    <name>YRDKRL78G14</name>\r
+    <toolchain>\r
+      <name>RL78</name>\r
+    </toolchain>\r
+    <debug>1</debug>\r
+    <settings>\r
+      <name>General</name>\r
+      <archiveVersion>4</archiveVersion>\r
+      <data>\r
+        <version>1</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>GenDeviceSelect</name>\r
+          <state>R5F104PJ      RL78 - R5F104PJ</state>\r
+        </option>\r
+        <option>\r
+          <name>GenCodeModel</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenDataModel</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenNearConstLocation</name>\r
+          <version>0</version>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>GenNearConstStart</name>\r
+          <state>0xf3000</state>\r
+        </option>\r
+        <option>\r
+          <name>GenNearConstSize</name>\r
+          <state>27.75</state>\r
+        </option>\r
+        <option>\r
+          <name>GOutputBinary</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>ExePath</name>\r
+          <state>YRDKRL78G14\Exe</state>\r
+        </option>\r
+        <option>\r
+          <name>ObjPath</name>\r
+          <state>YRDKRL78G14\Obj</state>\r
+        </option>\r
+        <option>\r
+          <name>ListPath</name>\r
+          <state>YRDKRL78G14\List</state>\r
+        </option>\r
+        <option>\r
+          <name>GenRuntimeLibSelect</name>\r
+          <version>0</version>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>GenRuntimeLibSelectSlave</name>\r
+          <version>0</version>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>GenRTDescription</name>\r
+          <state>Use the normal configuration of the C/EC++ runtime library. No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.</state>\r
+        </option>\r
+        <option>\r
+          <name>GenRTConfigPath</name>\r
+          <state>$TOOLKIT_DIR$\LIB\dlrl78nn2n.h</state>\r
+        </option>\r
+        <option>\r
+          <name>GenRTLibraryPath</name>\r
+          <state>$TOOLKIT_DIR$\LIB\dlrl78nn2n.r87</state>\r
+        </option>\r
+        <option>\r
+          <name>GenHwSupport</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenLibInFormatter</name>\r
+          <version>1</version>\r
+          <state>3</state>\r
+        </option>\r
+        <option>\r
+          <name>GenLibInFormatterDescription</name>\r
+          <state>No specifier n, no float, no scan set, no assignment suppressing.</state>\r
+        </option>\r
+        <option>\r
+          <name>GenLibOutFormatter</name>\r
+          <version>1</version>\r
+          <state>4</state>\r
+        </option>\r
+        <option>\r
+          <name>GenLibOutFormatterDescription</name>\r
+          <state>No specifier a or A, no specifier n, no float, no flags.</state>\r
+        </option>\r
+        <option>\r
+          <name>GenStackSize</name>\r
+          <state>130</state>\r
+        </option>\r
+        <option>\r
+          <name>GenNearHeapSize</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenFarHeapSize</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralEnableMisra</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraVerbose</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules98</name>\r
+          <version>0</version>\r
+          <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
+        </option>\r
+        <option>\r
+          <name>GenMathFunctionVariant</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenMathFunctionDescription</name>\r
+          <state>Default variants of cos, sin, tan, log, log10, pow, and exp.</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>ICCRL78</name>\r
+      <archiveVersion>3</archiveVersion>\r
+      <data>\r
+        <version>6</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>IccDivModInstr</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCore</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCodeModel</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccDataModel</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccNearConstLocation</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccObjPrefix</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccLibConfigHeader</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccLang</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCDialect</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccAllowVLA</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCppDialect</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccRequirePrototypes</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccLanguageConformance</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCharIs</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccMultibyteSupport</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccOptLevel</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccOptStrategy</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccOptLevelSlave</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccOptAllowList</name>\r
+          <version>1</version>\r
+          <state>0000000</state>\r
+        </option>\r
+        <option>\r
+          <name>IccWrksegEnable</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccWrksegSize</name>\r
+          <state>20</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCalltFuncRt</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccModuleTypeOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccModuleType</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccObjModuleNameOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccObjModuleName</name>\r
+          <state>$FILE_BNAME$</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCodeSegmentNameOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCodeSegmentName</name>\r
+          <state>CODE</state>\r
+        </option>\r
+        <option>\r
+          <name>IccGenerateDebugInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccOutputFile</name>\r
+          <state>$FILE_BNAME$.r87</state>\r
+        </option>\r
+        <option>\r
+          <name>CCDefines</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>CCPreprocFile</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCPreprocComments</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCPreprocLine</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCListCFile</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCListCMnemonics</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>CCListCMessages</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCListAssFile</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCListAssSource</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>CCEnableRemarks</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCDiagSuppress</name>\r
+          <state>Pa082</state>\r
+        </option>\r
+        <option>\r
+          <name>CCDiagRemark</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>CCDiagWarning</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>CCDiagError</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>CCDiagWarnAreErr</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CCCompilerRuntimeInfo</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>PreInclude</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>CCIncludePath2</name>\r
+          <state>$PROJ_DIR$\..\..\Source\include</state>\r
+          <state>$PROJ_DIR$\..\Common\include</state>\r
+          <state>$PROJ_DIR$</state>\r
+          <state>$PROJ_DIR$\..\..\Source\portable\IAR\RL78</state>\r
+        </option>\r
+        <option>\r
+          <name>CCStdIncCheck</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CompilerMisraOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
+        <option>\r
+          <name>CompilerMisraRules98</name>\r
+          <version>0</version>\r
+          <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
+        </option>\r
+        <option>\r
+          <name>IccUseExtraOptions</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccExtraOptions</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>IccdAggressiveInlining</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccdAggressiveUnrolling</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccCppInlineSemantics</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IccStaticDestr</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IccFloatSemantics</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>ARL78</name>\r
+      <archiveVersion>3</archiveVersion>\r
+      <data>\r
+        <version>1</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>AsmCore</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmHwSupport</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmObjPrefix</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmOutputFile</name>\r
+          <state>$FILE_BNAME$.r87</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmCaseSensitivity</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmMultibyteSupport</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmAllowMnemonics</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmAllowDirectives</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmMacroChars</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDebugInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListFile</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListNoDiagnostics</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListIncludeCrossRef</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListMacroDefinitions</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListNoMacroExpansion</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListAssembledOnly</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmListTruncateMultiline</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmStdIncludeIgnore</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmIncludePath</name>\r
+          <state>$PROJ_DIR$\..\..\Source\portable\IAR\RL78</state>\r
+          <state>$PROJ_DIR$</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDefines</name>\r
+          <state></state>\r
+          <state>__NEAR_DATA_MODEL__</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmPreprocOutput</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmPreprocComment</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmPreprocLine</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmEnableRemarks</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDiagnosticsSuppress</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDiagnosticsRemark</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDiagnosticsWarning</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDiagnosticsError</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDiagnosticsWarningsAreErrors</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmLimitNumberOfErrors</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmMaxNumberOfErrors</name>\r
+          <state>100</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmUseExtraOptions</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmExtraOptions</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>AsmCodeModel</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>AsmDataModel</name>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>CUSTOM</name>\r
+      <archiveVersion>3</archiveVersion>\r
+      <data>\r
+        <extensions></extensions>\r
+        <cmdline></cmdline>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>BICOMP</name>\r
+      <archiveVersion>0</archiveVersion>\r
+      <data/>\r
+    </settings>\r
+    <settings>\r
+      <name>BUILDACTION</name>\r
+      <archiveVersion>1</archiveVersion>\r
+      <data>\r
+        <prebuild></prebuild>\r
+        <postbuild></postbuild>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>XLINK</name>\r
+      <archiveVersion>3</archiveVersion>\r
+      <data>\r
+        <version>14</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>XOutOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>OutputFile</name>\r
+          <state>RTOSDemo.d87</state>\r
+        </option>\r
+        <option>\r
+          <name>OutputFormat</name>\r
+          <version>11</version>\r
+          <state>23</state>\r
+        </option>\r
+        <option>\r
+          <name>FormatVariant</name>\r
+          <version>8</version>\r
+          <state>2</state>\r
+        </option>\r
+        <option>\r
+          <name>SecondaryOutputFile</name>\r
+          <state>(None for the selected format)</state>\r
+        </option>\r
+        <option>\r
+          <name>XDefines</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>AlwaysOutput</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>OverlapWarnings</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>NoGlobalCheck</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>XList</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>SegmentMap</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>ListSymbols</name>\r
+          <state>2</state>\r
+        </option>\r
+        <option>\r
+          <name>PageLengthCheck</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>PageLength</name>\r
+          <state>80</state>\r
+        </option>\r
+        <option>\r
+          <name>XIncludes</name>\r
+          <state>$TOOLKIT_DIR$\LIB\</state>\r
+        </option>\r
+        <option>\r
+          <name>ModuleStatus</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>XclOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>XclFile</name>\r
+          <state>$TOOLKIT_DIR$\CONFIG\lnkr5f104pj.xcl</state>\r
+        </option>\r
+        <option>\r
+          <name>XclFileSlave</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>XLinkMisraHandler</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkExtraOptionsCheck</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkExtraOptions</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>DoFill</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>FillerByte</name>\r
+          <state>0xFF</state>\r
+        </option>\r
+        <option>\r
+          <name>DoCrc</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcSize</name>\r
+          <version>0</version>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcAlgo</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcPoly</name>\r
+          <state>0x11021</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcCompl</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>RangeCheckAlternatives</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>SuppressAllWarn</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>SuppressDiags</name>\r
+          <state>w18, w6</state>\r
+        </option>\r
+        <option>\r
+          <name>TreatAsWarn</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>TreatAsErr</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>ModuleLocalSym</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcBitOrder</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>IncludeSuppressed</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>ModuleSummary</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>xcProgramEntryLabel</name>\r
+          <state>__program_start</state>\r
+        </option>\r
+        <option>\r
+          <name>DebugInformation</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>RuntimeControl</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>IoEmulation</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>AllowExtraOutput</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GenerateExtraOutput</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XExtraOutOverride</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>ExtraOutputFile</name>\r
+          <state>RTOSDemo.a87</state>\r
+        </option>\r
+        <option>\r
+          <name>ExtraOutputFormat</name>\r
+          <version>11</version>\r
+          <state>23</state>\r
+        </option>\r
+        <option>\r
+          <name>ExtraFormatVariant</name>\r
+          <version>8</version>\r
+          <state>2</state>\r
+        </option>\r
+        <option>\r
+          <name>xcOverrideProgramEntryLabel</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>xcProgramEntryLabelSelect</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>ListOutputFormat</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>BufferedTermOutput</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>OverlaySystemMap</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>RawBinaryFile</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>RawBinarySymbol</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>RawBinarySegment</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>RawBinaryAlign</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>CrcAlign</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcInitialValue</name>\r
+          <state>0x0</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkNearConstLocation</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkRTLibraryFile</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkHwSupport</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkLibIOConfig</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkStackSize</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkNearHeap</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>XlinkFarHeap</name>\r
+          <state>1</state>\r
+        </option>\r
+        <option>\r
+          <name>CrcUnitSize</name>\r
+          <version>0</version>\r
+          <state>0</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>XAR</name>\r
+      <archiveVersion>3</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>XarOutOverride</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>XarInputs</name>\r
+          <state></state>\r
+        </option>\r
+        <option>\r
+          <name>XarOutputFile</name>\r
+          <state></state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
+    <settings>\r
+      <name>INTERNAL_HWSUPPORT</name>\r
+      <archiveVersion>3</archiveVersion>\r
       <data/>\r
     </settings>\r
     <settings>\r
index f252075fd92de8cb48bd01c291674ec15f7e546e..d57fbcfaf6f9ff5b654bb43fc63812bd33e1199b 100644 (file)
@@ -58,9 +58,6 @@
 \r
 ;------------------------------------------------------------------------------\r
 \r
-#if __CORE__ != __RL78_1__\r
-       #error "This file is only for RL78 Devices"\r
-#endif\r
 \r
 ; Functions implemented in this file\r
 ;------------------------------------------------------------------------------\r
        PUBLIC    vRegTest1\r
        PUBLIC    vRegTest2\r
 \r
-; Functions used by this file\r
+; Functions and variables used by this file\r
 ;------------------------------------------------------------------------------\r
        EXTERN    vRegTestError\r
+       EXTERN    usRegTest1LoopCounter\r
+       EXTERN    usRegTest2LoopCounter\r
 \r
 ;------------------------------------------------------------------------------\r
 ;   Fill all the registers with known values, then check that the registers\r
@@ -146,6 +145,9 @@ loop1:
 \r
 #endif\r
 \r
+       ; Indicate that this task is still cycling.\r
+       INCW    usRegTest1LoopCounter\r
+\r
        MOVW    AX, #0x1122\r
        BR              loop1\r
 \r
@@ -207,6 +209,9 @@ loop2:
 \r
 #endif\r
 \r
+       ; Indicate that this task is still cycling.\r
+       INCW    usRegTest2LoopCounter\r
+\r
        MOVW    AX, #0x99aa\r
        BR              loop2\r
 \r
index a8f76f5fe670bb48a515a4dc5a4c532b355339b2..499676718d4c09e82a77bc669a00d1abad05d86e 100644 (file)
     ***************************************************************************\r
 \r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \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, and our new\r
     fully thread aware and reentrant UDP/IP stack.\r
 \r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems, who sell the code with commercial support,\r
     indemnification and middleware, under the OpenRTOS brand.\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
+\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
 \r
@@ -152,7 +152,7 @@ its own executions. */
 #define mainDEMO_TIMER_PERIOD_MS                       ( mainCHECK_TIMER_PERIOD_MS / mainDEMO_TIMER_INCREMENTS_PER_CHECK_TIMER_TIMEOUT )\r
 \r
 /* The LED toggled by the check timer. */\r
-#define mainLED_0                                              P7_bit.no7\r
+#define mainLED_0                                              P1_bit.no0\r
 \r
 /* A block time of zero simple means "don't block". */\r
 #define mainDONT_BLOCK                                         ( 0U )\r
@@ -184,10 +184,9 @@ extern void vRegTest2( void *pvParameters );
 \r
 /*-----------------------------------------------------------*/\r
 \r
-/* If an error is discovered by one of the RegTest tasks then this flag is set\r
-to pdFAIL.  The 'check' timer then inspects this flag to detect errors within\r
-the RegTest tasks. */\r
-static short sRegTestStatus = pdPASS;\r
+/* Variables that are incremented on each cycle of the two reg tests to allow\r
+the check timer to know that they are still executing. */\r
+unsigned short usRegTest1LoopCounter = 0, usRegTest2LoopCounter;\r
 \r
 /* The check timer.  This uses prvCheckTimerCallback() as its callback\r
 function. */\r
@@ -203,13 +202,13 @@ static volatile unsigned long ulDemoSoftwareTimerCounter = 0UL;
 enabled. */\r
 __root __far const unsigned char OptionByte[] @ 0x00C0 =\r
 {\r
-       WATCHDOG_DISABLED, LVI_ENABLED, RESERVED_FF, OCD_ENABLED\r
+       0x00U, 0xFFU, 0xF8U, 0x81U\r
 };\r
 \r
 /* Security byte definition */\r
-__root __far const unsigned char SecuIDCode[]  @ 0x00C4 =\r
+__root __far const unsigned char ucSecurityCode[]  @ 0x00C4 =\r
 {\r
-       0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x54\r
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
 };\r
 \r
 /*-----------------------------------------------------------*/\r
@@ -274,6 +273,7 @@ static void prvDemoTimerCallback( xTimerHandle xTimer )
 static void prvCheckTimerCallback( xTimerHandle xTimer )\r
 {\r
 static portBASE_TYPE xChangedTimerPeriodAlready = pdFALSE, xErrorStatus = pdPASS;\r
+static unsigned short usLastRegTest1Counter = 0, usLastRegTest2Counter = 0;\r
 \r
        /* Inspect the status of the standard demo tasks. */\r
        if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
@@ -291,11 +291,25 @@ static portBASE_TYPE xChangedTimerPeriodAlready = pdFALSE, xErrorStatus = pdPASS
                xErrorStatus = pdFAIL;\r
        }\r
 \r
-       /* Inspect the status of the reg test tasks. */\r
-       if( sRegTestStatus != pdPASS )\r
+       /* Indicate an error if either of the reg test loop counters have not\r
+       incremented since the last time this function was called. */\r
+       if( usLastRegTest1Counter == usRegTest1LoopCounter )\r
+       {\r
+               xErrorStatus = pdFAIL;\r
+       }\r
+       else\r
+       {\r
+               usLastRegTest1Counter = usRegTest1LoopCounter;\r
+       }\r
+\r
+       if( usLastRegTest2Counter == usRegTest2LoopCounter )\r
        {\r
                xErrorStatus = pdFAIL;\r
        }\r
+       else\r
+       {\r
+               usLastRegTest2Counter = usRegTest2LoopCounter;\r
+       }\r
        \r
        /* Ensure that the demo software timer has expired\r
        mainDEMO_TIMER_INCREMENTS_PER_CHECK_TIMER_TIMEOUT times in between\r
@@ -340,69 +354,33 @@ unsigned portCHAR ucResetFlag = RESF;
 \r
        portDISABLE_INTERRUPTS();\r
 \r
-       /* Clock Configuration:\r
-       In this port, to use the internal high speed clock source of the\r
-       microcontroller, define the configCLOCK_SOURCE as 1 in FreeRTOSConfig.h.  To\r
-       use an external clock define configCLOCK_SOURCE as 0. */\r
-       #if configCLOCK_SOURCE == 1\r
-       {\r
-               /* Set fMX */\r
-               CMC = 0x00;\r
-               MSTOP = 1U;\r
-               \r
-               /* Set fMAIN */\r
-               MCM0 = 0U;\r
-               \r
-               /* Set fSUB */\r
-               XTSTOP = 1U;\r
-               OSMC = 0x10;\r
-               \r
-               /* Set fCLK */\r
-               CSS = 0U;\r
-               \r
-               /* Set fIH */\r
-               HIOSTOP = 0U;\r
-       }\r
-       #else\r
-       {\r
-               unsigned char ucTempStabset, ucTempStabWait;    \r
-\r
-               /* Set fMX */\r
-               CMC = 0x41;\r
-               OSTS = 0x07;\r
-               MSTOP = 0U;\r
-               ucTempStabset = 0xFF;\r
-               \r
-               do\r
-               {\r
-                       ucTempStabWait = OSTC;\r
-                       ucTempStabWait &= ucTempStabset;\r
-               }\r
-               while( ucTempStabWait != ucTempStabset );\r
-               \r
-               /* Set fMAIN */\r
-               MCM0 = 1U;\r
-               \r
-               /* Set fSUB */\r
-               XTSTOP = 1U;\r
-               OSMC = 0x10;\r
-               \r
-               /* Set fCLK */\r
-               CSS = 0U;\r
-               \r
-               /* Set fIH */\r
-               HIOSTOP = 0U;\r
-       }\r
-       #endif /* configCLOCK_SOURCE == 1 */\r
+       /* Set fMX */\r
+       CMC = 0x00;\r
+       MSTOP = 1U;\r
+       \r
+       /* Set fMAIN */\r
+       MCM0 = 0U;\r
+       \r
+       /* Set fSUB */\r
+       XTSTOP = 1U;\r
+       OSMC = 0x10;\r
+       \r
+       /* Set fCLK */\r
+       CSS = 0U;\r
+       \r
+       /* Set fIH */\r
+       HIOSTOP = 0U;\r
        \r
        /* LED port initialization - set port register. */\r
-       P7 &= 0x7F;\r
+//     P7 &= 0x7F;\r
+       P1 &= 0xFE;\r
        \r
        /* Set port mode register. */\r
-       PM7 &= 0x7F;\r
+//     PM7 &= 0x7F;\r
+       PM1 &= 0xFE;\r
        \r
        /* Switch pin initialization - enable pull-up resistor. */\r
-       PU12_bit.no0  = 1;\r
+//     PU12_bit.no0  = 1;\r
 \r
        return pdTRUE;\r
 }\r
@@ -410,12 +388,9 @@ unsigned portCHAR ucResetFlag = RESF;
 \r
 void vRegTestError( void )\r
 {\r
-       /* Called by the RegTest tasks if an error is found.  lRegTestStatus is\r
-       inspected by the check task. */\r
-       sRegTestStatus = pdFAIL;\r
-\r
-       /* Do not return from here as the reg test tasks clobber all registers so\r
-       function calls may not function correctly. */\r
+       /* Called by both reg test tasks if an error is found.  There is no way out\r
+       of this function so the loop counter of the calling task will stop\r
+       incrementing, which will result in the check timer signialling an error. */\r
        for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 7c8c4b4c13f472a9c6008d2be6893edecb4185a6..662970eac8651b21790e917251a3ab167bd326b1 100644 (file)
@@ -2,14 +2,23 @@
 @REM C-SPY Debugger, as an aid to preparing a command line for running\r
 @REM the cspybat command line utility using the appropriate settings.\r
 @REM\r
-@REM You can launch cspybat by typing the name of this batch file followed\r
-@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).\r
 @REM Note that this file is generated every time a new debug session\r
 @REM is initialized, so you may want to move or rename the file before\r
 @REM making changes.\r
+@REM\r
+@REM You can launch cspybat by typing the name of this batch file followed\r
+@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).\r
+@REM\r
+@REM Read about available command line parameters in the C-SPY Debugging\r
+@REM Guide. Hints about additional command line parameters that may be\r
+@REM useful in specific cases:\r
+@REM   --download_only   Downloads a code image without starting a debug\r
+@REM                     session afterwards.\r
+@REM   --silent          Omits the sign-on message.\r
+@REM   --timeout         Limits the maximum allowed execution time.\r
 @REM \r
 \r
 \r
-"C:\devtools\IAR Systems\Embedded Workbench 6.0\common\bin\cspybat" "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\bin\rl78proc.dll" "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\bin\rl78ocd.dll"  %1 --plugin "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\bin\rl78bat.dll" --backend -B "--core" "rl78_1" "--near_const_location" "rom0" "--near_const_start" "0xf2000" "--near_const_size" "51.75" "-p" "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\CONFIG\DDF\ior5f100le.ddf" "-d" "tk" \r
+"C:\devtools\IAR Systems\Embedded Workbench 6.0\common\bin\cspybat" "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\bin\rl78proc.dll" "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\bin\rl78ocd.dll"  %1 --plugin "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\bin\rl78bat.dll" --backend -B "--core" "rl78_2" "--near_const_location" "rom0" "--near_const_start" "0xf3000" "--near_const_size" "27.75" "-p" "C:\devtools\IAR Systems\Embedded Workbench 6.0\rl78\CONFIG\DDF\ior5f104pj.ddf" "-d" "tk" \r
 \r
 \r
index 4e0742a3d1be2c2c3d3e75175be9600c85571a28..bbc7c8cb11c06ae4f59b2df74c2b8c79df13ed7d 100644 (file)
           \r
           \r
           \r
-        <Column0>188</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
+        <Column0>242</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
       </Workspace>\r
       <Disassembly>\r
         \r
         \r
         \r
-      <PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><MixedMode>1</MixedMode><CodeCovShow>1</CodeCovShow><InstrProfShow>1</InstrProfShow></Disassembly>\r
-    <STACK2><PreferedWindows><Position>1</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></STACK2><Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register></Static>\r
+      <PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><MixedMode>1</MixedMode><CodeCovShow>1</CodeCovShow><InstrProfShow>1</InstrProfShow><col-names><item>Disassembly</item><item>_I0</item></col-names><col-widths><item>500</item><item>20</item></col-widths><DisasmHistory/><ShowCodeCoverage>0</ShowCodeCoverage><ShowInstrProfiling>0</ShowInstrProfiling></Disassembly>\r
+    <STACK2><PreferedWindows><Position>1</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></STACK2><Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register><WATCH_1><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><expressions><item></item></expressions><col-names><item>Expression</item><item>Location</item><item>Type</item><item>Value</item></col-names><col-widths><item>100</item><item>150</item><item>100</item><item>100</item></col-widths></WATCH_1></Static>\r
     <Windows>\r
       \r
       \r
       \r
-    <Wnd0>\r
+    <Wnd1>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-30626-17561</Identity>\r
@@ -47,7 +47,7 @@
           </Tab>\r
         </Tabs>\r
         \r
-      <SelectedTab>0</SelectedTab></Wnd0><Wnd1>\r
+      <SelectedTab>0</SelectedTab></Wnd1><Wnd4>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-8606-17564</Identity>\r
           </Tab>\r
         </Tabs>\r
         \r
-      <SelectedTab>0</SelectedTab></Wnd1></Windows>\r
+      <SelectedTab>0</SelectedTab></Wnd4><Wnd5><Tabs><Tab><Identity>TabID-3875-4388</Identity><TabName>Disassembly</TabName><Factory>Disassembly</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd5></Windows>\r
     <Editor>\r
       \r
       \r
       \r
       \r
-    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\main.c</Filename><XPos>0</XPos><YPos>231</YPos><SelStart>11243</SelStart><SelEnd>11243</SelEnd></Tab><ActiveTab>0</ActiveTab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\portmacro.h</Filename><XPos>0</XPos><YPos>70</YPos><SelStart>4200</SelStart><SelEnd>4200</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\MemMang\heap_1.c</Filename><XPos>0</XPos><YPos>103</YPos><SelStart>5748</SelStart><SelEnd>5748</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>76</YPos><SelStart>4876</SelStart><SelEnd>4876</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\RegTest.s87</Filename><XPos>0</XPos><YPos>124</YPos><SelStart>5213</SelStart><SelEnd>5213</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\tasks.c</Filename><XPos>0</XPos><YPos>1245</YPos><SelStart>46367</SelStart><SelEnd>46367</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\port_iodefine.h</Filename><XPos>0</XPos><YPos>750</YPos><SelStart>23118</SelStart><SelEnd>23118</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\main.c</Filename><XPos>0</XPos><YPos>185</YPos><SelStart>10072</SelStart><SelEnd>10072</SelEnd></Tab><ActiveTab>6</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\port.c</Filename><XPos>0</XPos><YPos>231</YPos><SelStart>9542</SelStart><SelEnd>9542</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\port_iodefine_ext.h</Filename><XPos>0</XPos><YPos>303</YPos><SelStart>9467</SelStart><SelEnd>9467</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\portasm.s87</Filename><XPos>0</XPos><YPos>65</YPos><SelStart>4092</SelStart><SelEnd>4092</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\Common\Minimal\dynamic.c</Filename><XPos>0</XPos><YPos>370</YPos><SelStart>16102</SelStart><SelEnd>16102</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
     <Positions>\r
       \r
       \r
       \r
       \r
       \r
-    <Top><Row0><Sizes><Toolbar-01bf0d90><key>iaridepm.enu1</key></Toolbar-01bf0d90></Sizes></Row0><Row1><Sizes><Toolbar-02bb4d40><key>debuggergui.enu1</key></Toolbar-02bb4d40><Toolbar-02bb55d8><key>rl78ocd.enu1</key></Toolbar-02bb55d8></Sizes></Row1></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>631</Bottom><Right>262</Right><x>-2</x><y>-2</y><xscreen>264</xscreen><yscreen>244</yscreen><sizeHorzCX>206250</sizeHorzCX><sizeHorzCY>259023</sizeHorzCY><sizeVertCX>206250</sizeVertCX><sizeVertCY>671975</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>242</Bottom><Right>1282</Right><x>-2</x><y>-2</y><xscreen>1284</xscreen><yscreen>244</yscreen><sizeHorzCX>1003125</sizeHorzCX><sizeHorzCY>259023</sizeHorzCY><sizeVertCX>206250</sizeVertCX><sizeVertCY>259023</sizeVertCY></Rect></Wnd0></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+    <Top><Row0><Sizes><Toolbar-01349228><key>iaridepm.enu1</key></Toolbar-01349228></Sizes></Row0><Row1><Sizes><Toolbar-04b811e8><key>debuggergui.enu1</key></Toolbar-04b811e8><Toolbar-0b5d8968><key>rl78ocd.enu1</key></Toolbar-0b5d8968></Sizes></Row1><Row2><Sizes/></Row2><Row3><Sizes/></Row3><Row4><Sizes/></Row4><Row5><Sizes/></Row5><Row6><Sizes/></Row6><Row7><Sizes/></Row7><Row8><Sizes/></Row8></Top><Left><Row0><Sizes><Wnd4><Rect><Top>-2</Top><Left>-2</Left><Bottom>808</Bottom><Right>316</Right><x>-2</x><y>-2</y><xscreen>141</xscreen><yscreen>108</yscreen><sizeHorzCX>83929</sizeHorzCX><sizeHorzCY>109980</sizeHorzCY><sizeVertCX>189286</sizeVertCX><sizeVertCY>824847</sizeVertCY></Rect></Wnd4></Sizes></Row0></Left><Right><Row0><Sizes><Wnd5><Rect><Top>-2</Top><Left>-2</Left><Bottom>808</Bottom><Right>684</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>408333</sizeVertCX><sizeVertCY>824847</sizeVertCY></Rect></Wnd5></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>106</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>108</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>109980</sizeHorzCY><sizeVertCX>83929</sizeVertCX><sizeVertCY>109980</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
   </Desktop>\r
 </Project>\r
 \r
index bb345183e4b8e1751b632c537f8f77e8602a7c5b..fa359aaec3d8b75b4fd909089995bea9beee0a83 100644 (file)
@@ -15,7 +15,7 @@ TypeViolation=1
 UnspecRange=1\r
 ActionState=1\r
 [DebugChecksum]\r
-Checksum=-1460440724\r
+Checksum=104434279\r
 [DisAssemblyWindow]\r
 NumStates=_ 1\r
 State 1=_ 1\r
@@ -24,12 +24,12 @@ Enabled=_ 0
 [CodeCoverage]\r
 Enabled=_ 0\r
 [E1]\r
-Map0=0,0,65535,65536\r
-Map1=1,1044224,1048319,4096\r
+Map0=0,0,262143,262144\r
+Map1=1,1023744,1048319,24576\r
 MapEntries=2\r
-HWsettings=1,0,0,0,4,0,1,0,16,16\r
+HWsettings=3,0,1,2,4,0,1,0,16,1\r
 HWsettingsCube=2,4294967295,2,4294967295,0,1,0,0\r
-HWsettingsRsuid=55555555555555555554\r
+HWsettingsRsuid=FFFFFFFFFFFFFFFFFFFF\r
 EventEntries=0\r
 SeqName0=\r
 SeqData0=0,0\r
@@ -75,11 +75,12 @@ TraceSettings=64,0,0,0,0,0,8192
 TimerSettings=0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\r
 CoverSettings=1048192,1048207,0\r
 Version=1,xxx.txt\r
-LastDevFile=DR5F100LE.DVF\r
+LastDevFile=DR5F104PJ.DVF\r
 EmulType=64\r
 BreakToggle=0\r
-EventLimits=0, 1, 1, 0, 0, 0, 2\r
+EventLimits=0,1,1,0,0,0,2\r
 LastSetupFailed=1\r
+ForceHwSetup=0\r
 [StackPlugin]\r
 Enabled=1\r
 OverflowWarningsEnabled=1\r
@@ -92,12 +93,12 @@ LimitSize=0
 ByteLimit=50\r
 [TK]\r
 LastSetupFailed=0\r
-Map0=0,0,65535,65536\r
-Map1=1,1044224,1048319,4096\r
+Map0=0,0,262143,262144\r
+Map1=1,1023744,1048319,24576\r
 MapEntries=2\r
-HWsettings=1,0,0,2,4,0,1,0,16,1\r
+HWsettings=3,0,1,2,4,0,1,0,16,1\r
 HWsettingsCube=2,4294967295,2,4294967295,0,1,0,0\r
-HWsettingsRsuid=55555555555555555554\r
+HWsettingsRsuid=00000000000000000000\r
 EventEntries=0\r
 SeqName0=\r
 SeqData0=0,0\r
@@ -139,14 +140,15 @@ SeqEnable34=0,0,0,0,0,0,0,0,0,0
 SeqEnable44=0,0,0,0,0,0,0,0,0,0\r
 SeqDisable4=0,0,0,0,0,0,0,0,0,0\r
 SeqData24=0,0,0,0,0,0\r
-TraceSettings=64,0,0,0,0,0,8192\r
+TraceSettings=128,0,0,0,0,0,8192\r
 TimerSettings=0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\r
 CoverSettings=1048192,1048207,0\r
 Version=1,trace.txt\r
-LastDevFile=DR5F100LE.DVF\r
+LastDevFile=DR5F104PJ.DVF\r
 EmulType=256\r
 BreakToggle=0\r
-EventLimits=0, 1, 1, 0, 0, 0, 2\r
+EventLimits=0,2,2,0,0,0,2\r
+ForceHwSetup=0\r
 [Stack]\r
 FillEnabled=0\r
 OverflowWarningsEnabled=1\r
@@ -159,6 +161,8 @@ LimitSize=0
 ByteLimit=50\r
 [CallStack]\r
 ShowArgs=0\r
+[Disassembly]\r
+MixedMode=1\r
 [Log file]\r
 LoggingEnabled=_ 0\r
 LogFile=_ ""\r
@@ -176,9 +180,9 @@ Enabled=0
 Mode=0\r
 Graph=0\r
 Symbiont=0\r
+Exclusions=\r
 [Breakpoints]\r
-Bp0=_ "STD_CODE" "{$PROJ_DIR$\..\..\Source\portable\MemMang\heap_1.c}.121.4@1" 1 0 0 0 "" 0 ""\r
-Count=1\r
+Count=0\r
 [Aliases]\r
 A0=_ "C:\Data\RL78_STICK\FreeRTOSV6.1.1\Source\portable\IAR\RL78\portasm.s87" "E:\Data\RL78_STICK\FreeRTOSV6.1.1\Source\portable\IAR\RL78\portasm.s87"\r
 Count=1\r
index f892a4e2e4a7b337ab1ac7116ae45cab4e34a749..be861fea05dd7502ddf5adbe7db36eaa1e050000 100644 (file)
@@ -3,7 +3,7 @@
 <Workspace>\r
   <ConfigDictionary>\r
     \r
-  <CurrentConfigs><Project>RTOSDemo/Debug</Project></CurrentConfigs></ConfigDictionary>\r
+  <CurrentConfigs><Project>RTOSDemo/YRDKRL78G14</Project></CurrentConfigs></ConfigDictionary>\r
   <Desktop>\r
     <Static>\r
       <Workspace>\r
           \r
           \r
           \r
-        <Column0>244</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
+        <Column0>319</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
       </Workspace>\r
     <Build><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>684</ColumnWidth1><ColumnWidth2>182</ColumnWidth2><ColumnWidth3>45</ColumnWidth3></Build><TerminalIO/><Debug-Log><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1218</ColumnWidth1></Debug-Log><Disassembly><MixedMode>1</MixedMode><CodeCovShow>1</CodeCovShow><InstrProfShow>1</InstrProfShow></Disassembly><Find-in-Files><ColumnWidth0>439</ColumnWidth0><ColumnWidth1>62</ColumnWidth1><ColumnWidth2>753</ColumnWidth2></Find-in-Files></Static>\r
     <Windows>\r
       \r
-    <Wnd2>\r
+    <Wnd0>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-25565-17041</Identity>\r
             <Factory>Workspace</Factory>\r
             <Session>\r
               \r
-            <NodeDict><ExpandedNode>RTOSDemo</ExpandedNode></NodeDict></Session>\r
+            <NodeDict><ExpandedNode>RTOSDemo</ExpandedNode><ExpandedNode>RTOSDemo/Demo Source</ExpandedNode><ExpandedNode>RTOSDemo/Kernel Source</ExpandedNode><ExpandedNode>RTOSDemo/Kernel Source/port.c</ExpandedNode></NodeDict></Session>\r
           </Tab>\r
         </Tabs>\r
         \r
-      <SelectedTab>0</SelectedTab></Wnd2><Wnd3><Tabs><Tab><Identity>TabID-4654-17433</Identity><TabName>Build</TabName><Factory>Build</Factory><Session/></Tab><Tab><Identity>TabID-7454-1824</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab><Tab><Identity>TabID-32037-14096</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd3></Windows>\r
+      <SelectedTab>0</SelectedTab></Wnd0><Wnd1><Tabs><Tab><Identity>TabID-4654-17433</Identity><TabName>Build</TabName><Factory>Build</Factory><Session/></Tab><Tab><Identity>TabID-7454-1824</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab><Tab><Identity>TabID-32199-1847</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd1></Windows>\r
     <Editor>\r
       \r
       \r
       \r
       \r
-    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\main.c</Filename><XPos>0</XPos><YPos>60</YPos><SelStart>11655</SelStart><SelEnd>11655</SelEnd></Tab><ActiveTab>0</ActiveTab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\portmacro.h</Filename><XPos>0</XPos><YPos>70</YPos><SelStart>4200</SelStart><SelEnd>4200</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\MemMang\heap_1.c</Filename><XPos>0</XPos><YPos>103</YPos><SelStart>5748</SelStart><SelEnd>5748</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>76</YPos><SelStart>4876</SelStart><SelEnd>4876</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\RegTest.s87</Filename><XPos>0</XPos><YPos>124</YPos><SelStart>5213</SelStart><SelEnd>5213</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\tasks.c</Filename><XPos>0</XPos><YPos>1245</YPos><SelStart>46367</SelStart><SelEnd>46367</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\port_iodefine.h</Filename><XPos>0</XPos><YPos>750</YPos><SelStart>23118</SelStart><SelEnd>23118</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\main.c</Filename><XPos>0</XPos><YPos>185</YPos><SelStart>10072</SelStart><SelEnd>10072</SelEnd></Tab><ActiveTab>6</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\port.c</Filename><XPos>0</XPos><YPos>231</YPos><SelStart>9542</SelStart><SelEnd>9542</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\port_iodefine_ext.h</Filename><XPos>0</XPos><YPos>303</YPos><SelStart>9467</SelStart><SelEnd>9467</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\RL78\portasm.s87</Filename><XPos>0</XPos><YPos>65</YPos><SelStart>4092</SelStart><SelEnd>4092</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\Common\Minimal\dynamic.c</Filename><XPos>0</XPos><YPos>370</YPos><SelStart>16102</SelStart><SelEnd>16102</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
     <Positions>\r
       \r
       \r
       \r
       \r
       \r
-    <Top><Row0><Sizes><Toolbar-01336518><key>iaridepm.enu1</key></Toolbar-01336518></Sizes></Row0></Top><Left><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>629</Bottom><Right>318</Right><x>-2</x><y>-2</y><xscreen>263</xscreen><yscreen>200</yscreen><sizeHorzCX>156548</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>190476</sizeVertCX><sizeVertCY>642566</sizeVertCY></Rect></Wnd2></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>309</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>311</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>316701</sizeHorzCY><sizeVertCX>205357</sizeVertCX><sizeVertCY>258656</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+    <Top><Row0><Sizes><Toolbar-01349228><key>iaridepm.enu1</key></Toolbar-01349228></Sizes></Row0><Row1><Sizes/></Row1><Row2><Sizes/></Row2><Row3><Sizes/></Row3><Row4><Sizes/></Row4><Row5><Sizes/></Row5><Row6><Sizes/></Row6><Row7><Sizes/></Row7><Row8><Sizes/></Row8><Row9><Sizes/></Row9></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>639</Bottom><Right>409</Right><x>-2</x><y>-2</y><xscreen>647</xscreen><yscreen>471</yscreen><sizeHorzCX>385119</sizeHorzCX><sizeHorzCY>479633</sizeHorzCY><sizeVertCX>244643</sizeVertCX><sizeVertCY>652749</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>299</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>301</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>306517</sizeHorzCY><sizeVertCX>505357</sizeVertCX><sizeVertCY>608961</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
   </Desktop>\r
 </Workspace>\r
 \r
index 584cafaccf2342f034fd0e390b12b40530887c12..1ea23611c2c1809eb3b76c817a7f0b9848a69736 100644 (file)
     ***************************************************************************\r
 \r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \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, and our new\r
     fully thread aware and reentrant UDP/IP stack.\r
 \r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems, who sell the code with commercial support,\r
     indemnification and middleware, under the OpenRTOS brand.\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
+\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
 \r
@@ -233,32 +233,32 @@ const unsigned short usClockHz = 15000UL; /* Internal clock. */
 const unsigned short usCompareMatch = ( usClockHz / configTICK_RATE_HZ ) + 1UL;\r
 \r
        /* Use the internal 15K clock. */\r
-       OSMC = 0x16U;\r
+       OSMC = ( unsigned char ) 0x16;\r
 \r
        /* Supply the RTC clock. */\r
-       RTCEN = 1U;\r
+       RTCEN = ( unsigned char ) 1U;\r
        \r
        /* Disable ITMC operation. */\r
-       ITMC = 0x0000;\r
+       ITMC = ( unsigned char ) 0x0000;\r
        \r
        /* Disable INTIT interrupt. */\r
-       ITMK = 1U;\r
+       ITMK = ( unsigned char ) 1;\r
        \r
        /* Set INTIT high priority */\r
-       ITPR1 = 1U;\r
-       ITPR0 = 1U;\r
+       ITPR1 = ( unsigned char ) 1;\r
+       ITPR0 = ( unsigned char ) 1;\r
        \r
-       /* Set interval. */\r
-       ITMC = usCompareMatch;\r
-\r
        /* Clear INIT interrupt. */\r
-       ITIF = 0U;\r
+       ITIF = ( unsigned char ) 0;\r
+\r
+       /* Set interval and enable interrupt operation. */\r
+       ITMC = usCompareMatch | 0x8000U;\r
        \r
        /* Enable INTIT interrupt. */\r
-       ITMK = 0U;\r
+       ITMK = ( unsigned char ) 0;\r
        \r
        /* Enable IT operation. */\r
-       ITMC |= 0x8000;\r
+//     ITMC |= 0x8000;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 110dd397f666c55fe03a7cf1db98236d52639a77..8920d21418448d3659ef98ff71e60a38ed1cc376 100644 (file)
 \r
 #include "ISR_Support.h"\r
 \r
-\r
-#if __CORE__ != __RL78_1__\r
-       #error "This file is only for RL78 Devices"\r
-#endif\r
-\r
 #define CS                    0xFFFFC\r
 #define ES                    0xFFFFD\r
 \r
index 09c0c5e7b17ddc4bc2d02d1d81bc9f0a6f0af526..a5682bdd4c3f01d22684d3af004c96783b716f5e 100644 (file)
     ***************************************************************************\r
 \r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \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, and our new\r
     fully thread aware and reentrant UDP/IP stack.\r
 \r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems, who sell the code with commercial support,\r
     indemnification and middleware, under the OpenRTOS brand.\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
+\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
 \r
 #ifndef PORTMACRO_H\r
 #define PORTMACRO_H\r
 \r
+#include "port_iodefine.h"\r
+#include "port_iodefine_ext.h"\r
+\r
 #ifdef __cplusplus\r
 extern "C" {\r
 #endif\r
@@ -178,19 +181,6 @@ extern volatile unsigned short usCriticalNesting;                                                          \
 #define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters )\r
 #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )\r
 \r
-/* --------------------------------------------------------------------------*/\r
-/* Option-bytes and security ID                                              */\r
-/* --------------------------------------------------------------------------*/\r
-#define OPT_BYTES_SIZE     4\r
-#define SECU_ID_SIZE       10\r
-#define WATCHDOG_DISABLED  0x00\r
-#define LVI_ENABLED        0xFE\r
-#define LVI_DISABLED       0xFF\r
-#define RESERVED_FF        0xFF\r
-#define OCD_DISABLED       0x04\r
-#define OCD_ENABLED        0x81\r
-#define OCD_ENABLED_ERASE  0x80\r
-\r
 #ifdef __cplusplus\r
 }\r
 #endif\r