]> git.sur5r.net Git - freertos/commitdiff
Add FreeRTOS+CLI examples to the Renesas RZ/T demos.
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 10 Oct 2015 10:29:29 +0000 (10:29 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 10 Oct 2015 10:29:29 +0000 (10:29 +0000)
Fix some compiler warnings.
Correct spellings in comments.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2386 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

54 files changed:
FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/Sample-CLI-commands.c
FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c
FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/Full_Demo/reg_test.S
FreeRTOS/Demo/CORTEX_A5_SAMA5D4x_EK_IAR/Full_Demo/reg_test.S
FreeRTOS/Demo/CORTEX_A9_Cyclone_V_SoC_DK/reg_test.S
FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/reg_test.s
FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/Full_Demo/reg_test.S
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/.cproject
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/.project
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/.settings/language.settings.xml
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/RTOSDemo HardwareDebug.launch
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/RTOSDemo.ewp
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/System/IAR/Interrupt_Entry_Stubs.asm
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/settings/RTOSDemo.dbgdt
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/settings/RTOSDemo.dni
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/settings/RTOSDemo.wsdt
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/settings/RTOSDemo.wspos
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/Blinky_Demo/main_blinky.c
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/FreeRTOSConfig.h
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/Full_Demo/main_full.c
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/Full_Demo/reg_test_GCC.S
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/Full_Demo/reg_test_IAR.asm
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_cmt_user.c
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_interrupthandlers.h
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa.c [new file with mode: 0644]
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa.h [new file with mode: 0644]
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa_user.c [new file with mode: 0644]
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_systeminit.c
FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/main.c
FreeRTOS/Demo/ColdFire_MCF52221_CodeWarrior/sources/main.c
FreeRTOS/Demo/ColdFire_MCF52259_CodeWarrior/main.c
FreeRTOS/Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/main.c
FreeRTOS/Demo/RX100_RX113-RSK_GCC_e2studio_IAR/.settings/language.settings.xml
FreeRTOS/Demo/RX100_RX113-RSK_GCC_e2studio_IAR/src/Full_Demo/RegTest_GCC.S
FreeRTOS/Demo/RX100_RX113-RSK_Renesas_e2studio/.cproject
FreeRTOS/Demo/RX100_RX113-RSK_Renesas_e2studio/src/Full_Demo/main_full.c
FreeRTOS/Demo/RX200_RX210-RSK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX200_RX231-RSK_GCC_e2studio_IAR/src/Full_Demo/RegTest_GCC.S
FreeRTOS/Demo/RX200_RX231-RSK_GCC_e2studio_IAR/src/Full_Demo/RegTest_IAR.s
FreeRTOS/Demo/RX200_RX231-RSK_Renesas_e2studio/src/Full_Demo/main_full.c
FreeRTOS/Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX62N-RDK_IAR/RegTest.s
FreeRTOS/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX62N-RSK_GNURX/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX62N-RSK_IAR/RegTest.s
FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX630-RSK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX63N-RDK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX64M_RSK_GCC_e2studio/src/RegTest.S
FreeRTOS/Demo/RX600_RX64M_RSK_Renesas_e2studio/Source/RegTest.src
FreeRTOS/Demo/RX700_RX71M_RSK_GCC_e2studio_IAR/src/Full_Demo/RegTest_GCC.S
FreeRTOS/Demo/RX700_RX71M_RSK_GCC_e2studio_IAR/src/Full_Demo/RegTest_IAR.s
FreeRTOS/Demo/RX700_RX71M_RSK_Renesas_e2studio/src/Full_Demo/main_full.c

index 0b06ac00b73dd060a91cfd6289f69f0ab76ac131..e23074dadbb97d6a9e29f483bf0cf050c2d31c90 100644 (file)
@@ -70,8 +70,7 @@
 \r
  /******************************************************************************\r
  *\r
- * See the following URL for information on the commands defined in this file:\r
- * http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/Ethernet_Related_CLI_Commands.shtml\r
+ * http://www.FreeRTOS.org/cli\r
  *\r
  ******************************************************************************/\r
 \r
@@ -339,7 +338,7 @@ static BaseType_t prvThreeParameterEchoCommand( char *pcWriteBuffer, size_t xWri
 {\r
 const char *pcParameter;\r
 BaseType_t xParameterStringLength, xReturn;\r
-static BaseType_t lParameterNumber = 0;\r
+static UBaseType_t uxParameterNumber = 0;\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -348,7 +347,7 @@ static BaseType_t lParameterNumber = 0;
        ( void ) xWriteBufferLen;\r
        configASSERT( pcWriteBuffer );\r
 \r
-       if( lParameterNumber == 0 )\r
+       if( uxParameterNumber == 0 )\r
        {\r
                /* The first time the function is called after the command has been\r
                entered just a header string is returned. */\r
@@ -356,7 +355,7 @@ static BaseType_t lParameterNumber = 0;
 \r
                /* Next time the function is called the first parameter will be echoed\r
                back. */\r
-               lParameterNumber = 1L;\r
+               uxParameterNumber = 1U;\r
 \r
                /* There is more data to be returned as no parameters have been echoed\r
                back yet. */\r
@@ -368,7 +367,7 @@ static BaseType_t lParameterNumber = 0;
                pcParameter = FreeRTOS_CLIGetParameter\r
                                                (\r
                                                        pcCommandString,                /* The command string itself. */\r
-                                                       lParameterNumber,               /* Return the next parameter. */\r
+                                                       uxParameterNumber,              /* Return the next parameter. */\r
                                                        &xParameterStringLength /* Store the parameter string length. */\r
                                                );\r
 \r
@@ -377,24 +376,24 @@ static BaseType_t lParameterNumber = 0;
 \r
                /* Return the parameter string. */\r
                memset( pcWriteBuffer, 0x00, xWriteBufferLen );\r
-               sprintf( pcWriteBuffer, "%d: ", ( int ) lParameterNumber );\r
-               strncat( pcWriteBuffer, pcParameter, xParameterStringLength );\r
+               sprintf( pcWriteBuffer, "%d: ", ( int ) uxParameterNumber );\r
+               strncat( pcWriteBuffer, pcParameter, ( size_t ) xParameterStringLength );\r
                strncat( pcWriteBuffer, "\r\n", strlen( "\r\n" ) );\r
 \r
                /* If this is the last of the three parameters then there are no more\r
                strings to return after this one. */\r
-               if( lParameterNumber == 3L )\r
+               if( uxParameterNumber == 3U )\r
                {\r
                        /* If this is the last of the three parameters then there are no more\r
                        strings to return after this one. */\r
                        xReturn = pdFALSE;\r
-                       lParameterNumber = 0L;\r
+                       uxParameterNumber = 0;\r
                }\r
                else\r
                {\r
                        /* There are more parameters to return after this one. */\r
                        xReturn = pdTRUE;\r
-                       lParameterNumber++;\r
+                       uxParameterNumber++;\r
                }\r
        }\r
 \r
@@ -406,7 +405,7 @@ static BaseType_t prvParameterEchoCommand( char *pcWriteBuffer, size_t xWriteBuf
 {\r
 const char *pcParameter;\r
 BaseType_t xParameterStringLength, xReturn;\r
-static BaseType_t lParameterNumber = 0;\r
+static UBaseType_t uxParameterNumber = 0;\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -415,7 +414,7 @@ static BaseType_t lParameterNumber = 0;
        ( void ) xWriteBufferLen;\r
        configASSERT( pcWriteBuffer );\r
 \r
-       if( lParameterNumber == 0 )\r
+       if( uxParameterNumber == 0 )\r
        {\r
                /* The first time the function is called after the command has been\r
                entered just a header string is returned. */\r
@@ -423,7 +422,7 @@ static BaseType_t lParameterNumber = 0;
 \r
                /* Next time the function is called the first parameter will be echoed\r
                back. */\r
-               lParameterNumber = 1L;\r
+               uxParameterNumber = 1U;\r
 \r
                /* There is more data to be returned as no parameters have been echoed\r
                back yet. */\r
@@ -435,7 +434,7 @@ static BaseType_t lParameterNumber = 0;
                pcParameter = FreeRTOS_CLIGetParameter\r
                                                (\r
                                                        pcCommandString,                /* The command string itself. */\r
-                                                       lParameterNumber,               /* Return the next parameter. */\r
+                                                       uxParameterNumber,              /* Return the next parameter. */\r
                                                        &xParameterStringLength /* Store the parameter string length. */\r
                                                );\r
 \r
@@ -443,13 +442,13 @@ static BaseType_t lParameterNumber = 0;
                {\r
                        /* Return the parameter string. */\r
                        memset( pcWriteBuffer, 0x00, xWriteBufferLen );\r
-                       sprintf( pcWriteBuffer, "%d: ", ( int ) lParameterNumber );\r
-                       strncat( pcWriteBuffer, pcParameter, xParameterStringLength );\r
+                       sprintf( pcWriteBuffer, "%d: ", ( int ) uxParameterNumber );\r
+                       strncat( pcWriteBuffer, ( char * ) pcParameter, ( size_t ) xParameterStringLength );\r
                        strncat( pcWriteBuffer, "\r\n", strlen( "\r\n" ) );\r
 \r
                        /* There might be more parameters to return after this one. */\r
                        xReturn = pdTRUE;\r
-                       lParameterNumber++;\r
+                       uxParameterNumber++;\r
                }\r
                else\r
                {\r
@@ -461,7 +460,7 @@ static BaseType_t lParameterNumber = 0;
                        xReturn = pdFALSE;\r
 \r
                        /* Start over the next time this command is executed. */\r
-                       lParameterNumber = 0;\r
+                       uxParameterNumber = 0;\r
                }\r
        }\r
 \r
index 3f6179944a8e1e63a0562110fc26775d00f776d8..ce5f02d7ab506c0a23e977cfba536e2b51195c0b 100644 (file)
@@ -164,7 +164,7 @@ xComPortHandle xPort;
        xPort = xSerialPortInitMinimal( configCLI_BAUD_RATE, cmdQUEUE_LENGTH );\r
 \r
        /* Send the welcome message. */\r
-       vSerialPutString( xPort, ( signed char * ) pcWelcomeMessage, strlen( pcWelcomeMessage ) );\r
+       vSerialPutString( xPort, ( signed char * ) pcWelcomeMessage, ( unsigned short ) strlen( pcWelcomeMessage ) );\r
 \r
        for( ;; )\r
        {\r
@@ -183,7 +183,7 @@ xComPortHandle xPort;
                        if( cRxedChar == '\n' || cRxedChar == '\r' )\r
                        {\r
                                /* Just to space the output from the input. */\r
-                               vSerialPutString( xPort, ( signed char * ) pcNewLine, strlen( pcNewLine ) );\r
+                               vSerialPutString( xPort, ( signed char * ) pcNewLine, ( unsigned short ) strlen( pcNewLine ) );\r
 \r
                                /* See if the command is empty, indicating that the last command\r
                                is to be executed again. */\r
@@ -203,7 +203,7 @@ xComPortHandle xPort;
                                        xReturned = FreeRTOS_CLIProcessCommand( cInputString, pcOutputString, configCOMMAND_INT_MAX_OUTPUT_SIZE );\r
 \r
                                        /* Write the generated string to the UART. */\r
-                                       vSerialPutString( xPort, ( signed char * ) pcOutputString, strlen( pcOutputString ) );\r
+                                       vSerialPutString( xPort, ( signed char * ) pcOutputString, ( unsigned short ) strlen( pcOutputString ) );\r
 \r
                                } while( xReturned != pdFALSE );\r
 \r
@@ -215,7 +215,7 @@ xComPortHandle xPort;
                                ucInputIndex = 0;\r
                                memset( cInputString, 0x00, cmdMAX_INPUT_SIZE );\r
 \r
-                               vSerialPutString( xPort, ( signed char * ) pcEndOfOutputMessage, strlen( pcEndOfOutputMessage ) );\r
+                               vSerialPutString( xPort, ( signed char * ) pcEndOfOutputMessage, ( unsigned short ) strlen( pcEndOfOutputMessage ) );\r
                        }\r
                        else\r
                        {\r
@@ -260,7 +260,7 @@ void vOutputString( const char * const pcMessage )
 {\r
        if( xSemaphoreTake( xTxMutex, cmdMAX_MUTEX_WAIT ) == pdPASS )\r
        {\r
-               vSerialPutString( xPort, ( signed char * ) pcMessage, strlen( pcMessage ) );\r
+               vSerialPutString( xPort, ( signed char * ) pcMessage, ( unsigned short ) strlen( pcMessage ) );\r
                xSemaphoreGive( xTxMutex );\r
        }\r
 }\r
index c111bebee406fa0de088011098f007083a1aa2c1..fae7dfa13ded680309fddcadbb1e41246686b7d8 100644 (file)
@@ -123,7 +123,7 @@ vRegTest1Implementation
        vmov    d14, r4, r5\r
        vmov    d15, r6, r7\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 reg1_loop\r
        ; Yield to increase test coverage\r
@@ -317,7 +317,7 @@ vRegTest2Implementation
        vmov    d14, r4, r5\r
        vmov    d15, r6, r7\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 reg2_loop\r
        ; Check all the VFP registers still contain the values set above.\r
index 45ddc9f8ec04f83afb2fe70de02ca4802581b26e..e17686ed7888eae5ae01b996c801935723e4bdf5 100644 (file)
@@ -142,7 +142,7 @@ vRegTest1Implementation
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 reg1_loop\r
        ; Yield to increase test coverage\r
@@ -434,7 +434,7 @@ vRegTest2Implementation
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 reg2_loop\r
        ; Check all the VFP registers still contain the values set above.\r
index 6a0198771aab1b51fbb1640adb30389373d5da62..780ec13b61d575cd5741ad2281684b682cc73ca8 100644 (file)
@@ -135,7 +135,7 @@ vRegTest1Implementation:
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg1_loop:\r
        /* Yield to increase test coverage */\r
@@ -425,7 +425,7 @@ vRegTest2Implementation:
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg2_loop:\r
        /* Check all the VFP registers still contain the values set above.\r
index c9e269ff6aa1855ee02409d997a5cefec68fe950..af98e7eee4d9cd770db721152d1bf720628c807a 100644 (file)
@@ -146,7 +146,7 @@ vRegTest1Implementation
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 reg1_loop\r
        ; Yield to increase test coverage\r
@@ -438,7 +438,7 @@ vRegTest2Implementation
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 reg2_loop\r
        ; Check all the VFP registers still contain the values set above.\r
index 6a0198771aab1b51fbb1640adb30389373d5da62..780ec13b61d575cd5741ad2281684b682cc73ca8 100644 (file)
@@ -135,7 +135,7 @@ vRegTest1Implementation:
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg1_loop:\r
        /* Yield to increase test coverage */\r
@@ -425,7 +425,7 @@ vRegTest2Implementation:
        vmov    d30, r4, r5\r
        vmov    d31, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg2_loop:\r
        /* Check all the VFP registers still contain the values set above.\r
index b6ac7fa6a4588f10359e460e9ae39a2bed95c6d5..be6b644f412f62cd80713b4ab8f00cf84506172b 100644 (file)
@@ -44,6 +44,7 @@
                                                                <option id="com.renesas.cdt.core.Compiler.option.deviceShortName.897790463" name="DeviceShortName" superClass="com.renesas.cdt.core.Compiler.option.deviceShortName" value="R7S910018" valueType="string"/>\r
                                                                <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.core.Compiler.option.includeFileDir.1914876765" name="Include file directories" superClass="com.renesas.cdt.core.Compiler.option.includeFileDir" valueType="includePath">\r
                                                                        <listOptionValue builtIn="false" value="&quot;${TCINSTALL}/bin/newlib/libc/sys/arm&quot;"/>\r
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/Full_Demo/FreeRTOS-Plus-CLI}&quot;"/>\r
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/Full_Demo}&quot;"/>\r
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/Full_Demo/Standard_Demo_Tasks/include}&quot;"/>\r
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/FreeRTOS_Source/include}&quot;"/>\r
                                                                        <listOptionValue builtIn="false" value="&quot;.\libTutorial.a&quot;"/>\r
                                                                </option>\r
                                                                <option id="com.renesas.cdt.core.Linker.option.commandFileOverride.622113609" name="Command file overide" superClass="com.renesas.cdt.core.Linker.option.commandFileOverride" value="com.renesas.cdt.core.Linker.option.commandFileOverride.externalLinkerScript" valueType="enumerated"/>\r
-                                                               <option command=" -T&quot;C:/E/Dev/FreeRTOS/WorkingCopy/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR_ARM\HardwareDebug\LinkerSubCommand.tmp&quot; -T" id="com.renesas.cdt.core.Linker.option.file.464254322" name="File" superClass="com.renesas.cdt.core.Linker.option.file" value="&quot;${workspace_loc:/${ProjName}/System/GCC/GNU_LINKER_ATCM.ld}&quot;" valueType="string"/>\r
+                                                               <option command=" -T&quot;C:/E/Dev/FreeRTOS/WorkingCopy/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR\HardwareDebug\LinkerSubCommand.tmp&quot; -T" id="com.renesas.cdt.core.Linker.option.file.464254322" name="File" superClass="com.renesas.cdt.core.Linker.option.file" value="&quot;${workspace_loc:/${ProjName}/System/GCC/GNU_LINKER_ATCM.ld}&quot;" valueType="string"/>\r
                                                        </tool>\r
                                                        <tool id="com.renesas.cdt.rz.hardwaredebug.win32.tool.objcopy.Id.1674695683" name="Objcopy" superClass="com.renesas.cdt.rz.hardwaredebug.win32.tool.objcopy.Id"/>\r
                                                </toolChain>\r
                                        </folderInfo>\r
-                                       <fileInfo id="com.renesas.cdt.rz.hardwaredebug.win32.configuration.Id.137003302.1449590210" name="reg_test_IAR.asm" rcbsApplicability="disable" resourcePath="src/Full_Demo/reg_test_IAR.asm" toolsToInvoke="com.renesas.cdt.rz.hardwaredebug.win32.tool.compiler.Id.542544613.984236333">\r
-                                               <tool id="com.renesas.cdt.rz.hardwaredebug.win32.tool.compiler.Id.542544613.984236333" name="Compiler" superClass="com.renesas.cdt.rz.hardwaredebug.win32.tool.compiler.Id.542544613"/>\r
-                                       </fileInfo>\r
                                        <sourceEntries>\r
-                                               <entry excluding="src/Full_Demo/reg_test_IAR.asm|src/cg_src/r_cg_s12ad_user.c|src/cg_src/r_cg_scifa.c|src/cg_src/r_cg_s12ad.c|src/cg_src/r_cg_scifa_user.c|src/cg_src/r_cg_cmt.c|System/GCC/src/siorw.c|System/GCC/src/siochar.c|System/GCC/src/gnu_io.c|System/GCC/src/syscalls.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>\r
+                                               <entry excluding="src/Full_Demo/reg_test_IAR.asm|src/cg_src/r_cg_s12ad_user.c|src/cg_src/r_cg_s12ad.c|src/cg_src/r_cg_cmt.c|System/GCC/src/siorw.c|System/GCC/src/siochar.c|System/GCC/src/gnu_io.c|System/GCC/src/syscalls.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>\r
                                        </sourceEntries>\r
                                </configuration>\r
                        </storageModule>\r
index 46213b5457d0a230814484ae8578a03b73f6f755..564380c6c092cbbf18ebbc4e4f696c16fcf59a72 100644 (file)
                        <type>2</type>\r
                        <locationURI>FREERTOS_ROOT/FreeRTOS/Source</locationURI>\r
                </link>\r
+               <link>\r
+                       <name>src/Full_Demo/FreeRTOS-Plus-CLI</name>\r
+                       <type>2</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI</locationURI>\r
+               </link>\r
+               <link>\r
+                       <name>src/Full_Demo/Sample-CLI-commands.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/Sample-CLI-commands.c</locationURI>\r
+               </link>\r
                <link>\r
                        <name>src/Full_Demo/Standard_Demo_Tasks</name>\r
                        <type>2</type>\r
                        <locationURI>FREERTOS_ROOT/FreeRTOS/Demo/Common/Minimal</locationURI>\r
                </link>\r
+               <link>\r
+                       <name>src/Full_Demo/UARTCommandConsole.c</name>\r
+                       <type>1</type>\r
+                       <locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c</locationURI>\r
+               </link>\r
                <link>\r
                        <name>src/Full_Demo/Standard_Demo_Tasks/include</name>\r
                        <type>2</type>\r
                </link>\r
        </linkedResources>\r
        <filteredResources>\r
+               <filter>\r
+                       <id>1444470719732</id>\r
+                       <name></name>\r
+                       <type>6</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-RTOSDemo.ewd</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719742</id>\r
+                       <name></name>\r
+                       <type>6</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-RTOSDemo.eww</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719742</id>\r
+                       <name></name>\r
+                       <type>6</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-RTOSDemo.ewp</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719757</id>\r
+                       <name></name>\r
+                       <type>6</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-RTOSDemo.ewt</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719769</id>\r
+                       <name></name>\r
+                       <type>6</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-RTOSDemo.dep</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719775</id>\r
+                       <name></name>\r
+                       <type>10</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-Debug</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719782</id>\r
+                       <name></name>\r
+                       <type>10</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-setting</arguments>\r
+                       </matcher>\r
+               </filter>\r
+               <filter>\r
+                       <id>1444470719788</id>\r
+                       <name></name>\r
+                       <type>10</type>\r
+                       <matcher>\r
+                               <id>org.eclipse.ui.ide.multiFilter</id>\r
+                               <arguments>1.0-name-matches-false-false-settings</arguments>\r
+                       </matcher>\r
+               </filter>\r
                <filter>\r
                        <id>1442133034715</id>\r
                        <name>System</name>\r
index 546c39b1ef63a0fb51a8071f9ada532a698a3b94..e9eeb925cc50a134af69d377464caccafa3f98e8 100644 (file)
@@ -3,7 +3,7 @@
        <configuration id="com.renesas.cdt.rz.hardwaredebug.win32.configuration.Id.137003302" name="HardwareDebug">\r
                <extension point="org.eclipse.cdt.core.LanguageSettingsProvider">\r
                        <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>\r
-                       <provider class="com.renesas.cdt.common.build.spec.RZGCCBuiltinSpecsDetector" console="false" env-hash="1695716901026871493" id="RZGCCBuiltinSpecsDetector" keep-relative-paths="false" name="Renesas GNUARM-NONE GCCBuildinCompilerSettings" options-hash="857384749" parameter="arm-none-eabi-gcc -E -P -v -dD ${INPUTS}" prefer-non-shared="true">\r
+                       <provider class="com.renesas.cdt.common.build.spec.RZGCCBuiltinSpecsDetector" console="false" env-hash="-453079405608331002" id="RZGCCBuiltinSpecsDetector" keep-relative-paths="false" name="Renesas GNUARM-NONE GCCBuildinCompilerSettings" options-hash="857384749" parameter="arm-none-eabi-gcc -E -P -v -dD ${INPUTS}" prefer-non-shared="true">\r
                                <language-scope id="org.eclipse.cdt.core.gcc"/>\r
                                <language-scope id="org.eclipse.cdt.core.g++"/>\r
                        </provider>\r
index f652b92fd36f50187389b35bbda351d224af1a98..246f801ae9e6793868c409933552d7049e549ba7 100644 (file)
@@ -13,7 +13,7 @@
 <stringAttribute key="com.renesas.cdt.core.targetDevice" value="R7S910018"/>\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.ioview.dsf.registerSelection" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;selectedRegisterList ioFilePath=&quot;C:\DevTools\Renesas\e2_studio\internal\IoFiles\RZ\R7S910018.sfrx&quot;/&gt;&#13;&#10;"/>\r
+<stringAttribute key="com.renesas.cdt.debug.ioview.dsf.registerSelection" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;selectedRegisterList ioFilePath=&quot;C:\DevTools\Renesas\e2_studio_4\internal\IoFiles\RZ\R7S910018.sfrx&quot;/&gt;&#13;&#10;"/>\r
 <stringAttribute key="com.renesas.cdt.launch.dsf.IO_MAP" value="${eclipse_home}..\internal\IoFiles\RZ\R7S910018.sfrx"/>\r
 <booleanAttribute key="com.renesas.cdt.launch.dsf.USE_DEFAULT_IO_MAP" value="true"/>\r
 <listAttribute key="com.renesas.cdt.launch.dsf.downloadImages">\r
@@ -46,7 +46,7 @@
 <intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.delay" value="3"/>\r
 <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="true"/>\r
 <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="true"/>\r
-<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value="C:\E\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\CORTEX_R4F_RZ_T_GCC_IAR_ARM\HardwareDebug\RTOSDemo.x"/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value="C:\E\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\CORTEX_R4F_RZ_T_GCC_IAR\HardwareDebug\RTOSDemo.x"/>\r
 <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value="0"/>\r
 <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/>\r
 <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" 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="false"/>\r
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="true"/>\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="C:\E\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\CORTEX_R4F_RZ_T_GCC_IAR_ARM\HardwareDebug\RTOSDemo.x"/>\r
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value="C:\E\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\CORTEX_R4F_RZ_T_GCC_IAR\HardwareDebug\RTOSDemo.x"/>\r
 <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value="0"/>\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
 <stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>\r
 <stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>\r
 <stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_START_MODE" value="remote"/>\r
-<booleanAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN" value="false"/>\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/RTOSDemo.x"/>\r
 <stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="RTOSDemo"/>\r
-<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>\r
+<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>\r
 <stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="com.renesas.cdt.rz.hardwaredebug.win32.configuration.Id.137003302"/>\r
 <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">\r
 <listEntry value="/RTOSDemo"/>\r
index d10d23c8dc60976d1347e5af29457a7e7c87364b..a8212ec6799bf8b28249b407aa5818deb4967c7a 100644 (file)
         <option>\r
           <name>CCAllowList</name>\r
           <version>1</version>\r
-          <state>11111110</state>\r
+          <state>00000000</state>\r
         </option>\r
         <option>\r
           <name>CCDebugInfo</name>\r
           <state>$PROJ_DIR$\src\cg_src</state>\r
           <state>$PROJ_DIR$\..\Common\include</state>\r
           <state>$PROJ_DIR$\src\Full_Demo</state>\r
+          <state>$PROJ_DIR$\..\..\..\FreeRTOS-Plus\Source\FreeRTOS-Plus-CLI</state>\r
         </option>\r
         <option>\r
           <name>CCStdIncCheck</name>\r
         </option>\r
         <option>\r
           <name>CCOptLevel</name>\r
-          <state>3</state>\r
+          <state>0</state>\r
         </option>\r
         <option>\r
           <name>CCOptStrategy</name>\r
         </option>\r
         <option>\r
           <name>CCOptLevelSlave</name>\r
-          <state>3</state>\r
+          <state>0</state>\r
         </option>\r
         <option>\r
           <name>CompilerMisraRules98</name>\r
         <name>$PROJ_DIR$\..\Common\Minimal\TimerDemo.c</name>\r
       </file>\r
     </group>\r
+    <group>\r
+      <name>FreeRTOS+CLI</name>\r
+      <file>\r
+        <name>$PROJ_DIR$\..\..\..\FreeRTOS-Plus\Source\FreeRTOS-Plus-CLI\FreeRTOS_CLI.c</name>\r
+      </file>\r
+    </group>\r
     <file>\r
       <name>$PROJ_DIR$\src\Full_Demo\IntQueueTimer.c</name>\r
     </file>\r
     <file>\r
       <name>$PROJ_DIR$\src\Full_Demo\reg_test_IAR.asm</name>\r
     </file>\r
+    <file>\r
+      <name>$PROJ_DIR$\..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\Sample-CLI-commands.c</name>\r
+    </file>\r
+    <file>\r
+      <name>$PROJ_DIR$\..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\UARTCommandConsole.c</name>\r
+    </file>\r
   </group>\r
   <group>\r
     <name>Renesas_cg_src</name>\r
     <file>\r
       <name>$PROJ_DIR$\src\cg_src\r_cg_rspi_user.c</name>\r
     </file>\r
+    <file>\r
+      <name>$PROJ_DIR$\src\cg_src\r_cg_scifa.c</name>\r
+    </file>\r
+    <file>\r
+      <name>$PROJ_DIR$\src\cg_src\r_cg_scifa_user.c</name>\r
+    </file>\r
     <file>\r
       <name>$PROJ_DIR$\src\cg_src\r_cg_systeminit.c</name>\r
     </file>\r
index 4668654ac3e296984e1f5ce4f744243fdaed2bef..2c85e509df42461fb6f7840b38c733a9414b2595 100644 (file)
        EXTERN FreeRTOS_IRQ_Handler\r
        EXTERN vCMT_1_Channel_0_ISR\r
        EXTERN vCMT_1_Channel_1_ISR\r
+       EXTERN r_scifa2_txif2_interrupt\r
+       EXTERN r_scifa2_rxif2_interrupt\r
+       EXTERN r_scifa2_drif2_interrupt\r
+       EXTERN r_scifa2_brif2_interrupt\r
 \r
        PUBLIC FreeRTOS_Tick_Handler_Entry\r
        PUBLIC vCMT_1_Channel_0_ISR_Entry\r
        PUBLIC vCMT_1_Channel_1_ISR_Entry\r
+       PUBLIC r_scifa2_txif2_interrupt_entry\r
+       PUBLIC r_scifa2_rxif2_interrupt_entry\r
+       PUBLIC r_scifa2_drif2_interrupt_entry\r
+       PUBLIC r_scifa2_brif2_interrupt_entry\r
 \r
 FreeRTOS_Tick_Handler_Entry:\r
        /* Save used registers (probably not necessary). */\r
@@ -113,5 +121,53 @@ vCMT_1_Channel_1_ISR_Entry:
        /* Restore used registers then branch to the FreeRTOS IRQ handler. */\r
        POP             {r0-r1}\r
        B               FreeRTOS_IRQ_Handler\r
+/*-----------------------------------------------------------*/\r
+\r
+r_scifa2_txif2_interrupt_entry:\r
+       /* Save used registers (probably not necessary). */\r
+       PUSH    {r0-r1}\r
+       /* Save the address of the C portion of this handler in pxISRFunction. */\r
+       LDR             r0, =pxISRFunction\r
+       LDR             R1, =r_scifa2_txif2_interrupt\r
+       STR             R1, [r0]\r
+       /* Restore used registers then branch to the FreeRTOS IRQ handler. */\r
+       POP             {r0-r1}\r
+       B               FreeRTOS_IRQ_Handler\r
+/*-----------------------------------------------------------*/\r
+\r
+r_scifa2_rxif2_interrupt_entry:\r
+       /* Save used registers (probably not necessary). */\r
+       PUSH    {r0-r1}\r
+       /* Save the address of the C portion of this handler in pxISRFunction. */\r
+       LDR             r0, =pxISRFunction\r
+       LDR             R1, =r_scifa2_rxif2_interrupt\r
+       STR             R1, [r0]\r
+       /* Restore used registers then branch to the FreeRTOS IRQ handler. */\r
+       POP             {r0-r1}\r
+       B               FreeRTOS_IRQ_Handler\r
+/*-----------------------------------------------------------*/\r
+\r
+r_scifa2_drif2_interrupt_entry:\r
+       /* Save used registers (probably not necessary). */\r
+       PUSH    {r0-r1}\r
+       /* Save the address of the C portion of this handler in pxISRFunction. */\r
+       LDR             r0, =pxISRFunction\r
+       LDR             R1, =r_scifa2_drif2_interrupt\r
+       STR             R1, [r0]\r
+       /* Restore used registers then branch to the FreeRTOS IRQ handler. */\r
+       POP             {r0-r1}\r
+       B               FreeRTOS_IRQ_Handler\r
+/*-----------------------------------------------------------*/\r
+\r
+r_scifa2_brif2_interrupt_entry:\r
+       /* Save used registers (probably not necessary). */\r
+       PUSH    {r0-r1}\r
+       /* Save the address of the C portion of this handler in pxISRFunction. */\r
+       LDR             r0, =pxISRFunction\r
+       LDR             R1, =r_scifa2_brif2_interrupt\r
+       STR             R1, [r0]\r
+       /* Restore used registers then branch to the FreeRTOS IRQ handler. */\r
+       POP             {r0-r1}\r
+       B               FreeRTOS_IRQ_Handler\r
 \r
-    END\r
+       END\r
index 01a9516881701c14b3e9796ceb9026ceac2a4b1e..f8efa3853e6c4b55e77bcec691d8c7908d00db48 100644 (file)
@@ -4,9 +4,9 @@
   <Desktop>\r
     <Static>\r
       <Debug-Log>\r
-        <ColumnWidth0>20</ColumnWidth0>\r
-        <ColumnWidth1>1622</ColumnWidth1>\r
-      </Debug-Log>\r
+        \r
+        \r
+      <ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1622</ColumnWidth1></Debug-Log>\r
       <Build>\r
         <ColumnWidth0>20</ColumnWidth0>\r
         <ColumnWidth1>1216</ColumnWidth1>\r
       </Build>\r
       <Workspace>\r
         <ColumnWidths>\r
-          <Column0>194</Column0>\r
-          <Column1>27</Column1>\r
-          <Column2>27</Column2>\r
-          <Column3>27</Column3>\r
-        </ColumnWidths>\r
+          \r
+          \r
+          \r
+          \r
+        <Column0>178</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
       </Workspace>\r
       <Disassembly>\r
         <col-names>\r
-          <item>Disassembly</item>\r
-          <item>_I0</item>\r
-        </col-names>\r
+          \r
+          \r
+        <item>Disassembly</item><item>_I0</item></col-names>\r
         <col-widths>\r
-          <item>500</item>\r
-          <item>20</item>\r
-        </col-widths>\r
+          \r
+          \r
+        <item>500</item><item>20</item></col-widths>\r
         <DisasmHistory/>\r
         <PreferedWindows>\r
-          <Position>2</Position>\r
-          <ScreenPosX>0</ScreenPosX>\r
-          <ScreenPosY>0</ScreenPosY>\r
-          <Windows/>\r
-        </PreferedWindows>\r
-        <ShowCodeCoverage>1</ShowCodeCoverage>\r
-        <ShowInstrProfiling>1</ShowInstrProfiling>\r
-      </Disassembly>\r
+          \r
+          \r
+          \r
+          \r
+        <Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows>\r
+        \r
+        \r
+      <ShowCodeCoverage>1</ShowCodeCoverage><ShowInstrProfiling>1</ShowInstrProfiling></Disassembly>\r
       <Breakpoints>\r
         <PreferedWindows>\r
           <Position>3</Position>\r
@@ -66,7 +66,9 @@
       </Register>\r
     </Static>\r
     <Windows>\r
-      <Wnd3>\r
+      \r
+      \r
+    <Wnd3>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-31370-17793</Identity>\r
             <Session/>\r
           </Tab>\r
         </Tabs>\r
-        <SelectedTab>0</SelectedTab>\r
-      </Wnd3>\r
-      <Wnd4>\r
+        \r
+      <SelectedTab>0</SelectedTab></Wnd3><Wnd4>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-9350-17796</Identity>\r
             <TabName>Workspace</TabName>\r
             <Factory>Workspace</Factory>\r
             <Session>\r
-              <NodeDict>\r
-                <ExpandedNode>RTOSDemo</ExpandedNode>\r
-                <ExpandedNode>RTOSDemo/FreeRTOS_Source</ExpandedNode>\r
-                <ExpandedNode>RTOSDemo/Full_Demo</ExpandedNode>\r
-              </NodeDict>\r
-            </Session>\r
+              \r
+            <NodeDict><ExpandedNode>RTOSDemo</ExpandedNode><ExpandedNode>RTOSDemo/FreeRTOS_Source</ExpandedNode><ExpandedNode>RTOSDemo/Full_Demo</ExpandedNode><ExpandedNode>RTOSDemo/Renesas_cg_src</ExpandedNode></NodeDict></Session>\r
           </Tab>\r
         </Tabs>\r
-        <SelectedTab>0</SelectedTab>\r
-      </Wnd4>\r
-    </Windows>\r
+        \r
+      <SelectedTab>0</SelectedTab></Wnd4><Wnd5><Tabs><Tab><Identity>TabID-29908-24406</Identity><TabName>Register</TabName><Factory>Register</Factory><Session><REG1>0</REG1><REG2>0</REG2><Group>0</Group><States>0</States></Session></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd5></Windows>\r
     <Editor>\r
-      <Pane>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\src\main.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>128</YPos2>\r
-          <SelStart2>6721</SelStart2>\r
-          <SelEnd2>6721</SelEnd2>\r
-        </Tab>\r
-        <ActiveTab>0</ActiveTab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\src\Full_Demo\IntQueueTimer.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>81</YPos2>\r
-          <SelStart2>4886</SelStart2>\r
-          <SelEnd2>4912</SelEnd2>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\System\IAR\Interrupt_Entry_Stubs.asm</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>66</YPos2>\r
-          <SelStart2>4185</SelStart2>\r
-          <SelEnd2>4185</SelEnd2>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\..\..\Source\portable\IAR\ARM_CRx_No_GIC\port.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>245</YPos2>\r
-          <SelStart2>11320</SelStart2>\r
-          <SelEnd2>11320</SelEnd2>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\src\Full_Demo\reg_test_IAR.asm</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>123</YPos2>\r
-          <SelStart2>5555</SelStart2>\r
-          <SelEnd2>5555</SelEnd2>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\..\Common\Minimal\TimerDemo.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>242</YPos2>\r
-          <SelStart2>12612</SelStart2>\r
-          <SelEnd2>12612</SelEnd2>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>$WS_DIR$\..\..\Source\tasks.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>0</YPos>\r
-          <SelStart>0</SelStart>\r
-          <SelEnd>0</SelEnd>\r
-          <XPos2>0</XPos2>\r
-          <YPos2>202</YPos2>\r
-          <SelStart2>11920</SelStart2>\r
-          <SelEnd2>11930</SelEnd2>\r
-        </Tab>\r
-      </Pane>\r
-      <ActivePane>0</ActivePane>\r
-      <Sizes>\r
-        <Pane>\r
-          <X>1000000</X>\r
-          <Y>1000000</Y>\r
-        </Pane>\r
-      </Sizes>\r
-      <SplitMode>1</SplitMode>\r
-    </Editor>\r
+      \r
+      \r
+      \r
+      \r
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\cg_src\r_cg_scifa.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>200</YPos2><SelStart2>9333</SelStart2><SelEnd2>9333</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>118</YPos2><SelStart2>6976</SelStart2><SelEnd2>6976</SelEnd2></Tab><ActiveTab>1</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Blinky_Demo\main_blinky.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>178</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\tasks.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>4426</YPos2><SelStart2>147164</SelStart2><SelEnd2>147164</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\cg_src\r_cg_scifa_user.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>278</YPos2><SelStart2>11843</SelStart2><SelEnd2>11843</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Full_Demo\IntQueueTimer.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>135</YPos2><SelStart2>4854</SelStart2><SelEnd2>4854</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Full_Demo\main_full.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>241</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\UARTCommandConsole.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>143</YPos2><SelStart2>7172</SelStart2><SelEnd2>7172</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
     <Positions>\r
-      <Top>\r
-        <Row0>\r
-          <Sizes>\r
-            <Toolbar-00D67C28>\r
-              <key>iaridepm.enu1</key>\r
-            </Toolbar-00D67C28>\r
-            <Toolbar-1B72B5F8>\r
-              <key>debuggergui.enu1</key>\r
-            </Toolbar-1B72B5F8>\r
-          </Sizes>\r
-        </Row0>\r
-        <Row1>\r
-          <Sizes>\r
-            <Toolbar-1B72B530>\r
-              <key>armjet.enu1</key>\r
-            </Toolbar-1B72B530>\r
-          </Sizes>\r
-        </Row1>\r
-      </Top>\r
-      <Left>\r
-        <Row0>\r
-          <Sizes>\r
-            <Wnd4>\r
-              <Rect>\r
-                <Top>-2</Top>\r
-                <Left>-2</Left>\r
-                <Bottom>718</Bottom>\r
-                <Right>268</Right>\r
-                <x>-2</x>\r
-                <y>-2</y>\r
-                <xscreen>200</xscreen>\r
-                <yscreen>200</yscreen>\r
-                <sizeHorzCX>119048</sizeHorzCX>\r
-                <sizeHorzCY>203252</sizeHorzCY>\r
-                <sizeVertCX>160714</sizeVertCX>\r
-                <sizeVertCY>731707</sizeVertCY>\r
-              </Rect>\r
-            </Wnd4>\r
-          </Sizes>\r
-        </Row0>\r
-      </Left>\r
-      <Right>\r
-        <Row0>\r
-          <Sizes/>\r
-        </Row0>\r
-      </Right>\r
-      <Bottom>\r
-        <Row0>\r
-          <Sizes>\r
-            <Wnd3>\r
-              <Rect>\r
-                <Top>-2</Top>\r
-                <Left>-2</Left>\r
-                <Bottom>198</Bottom>\r
-                <Right>1682</Right>\r
-                <x>-2</x>\r
-                <y>-2</y>\r
-                <xscreen>1684</xscreen>\r
-                <yscreen>200</yscreen>\r
-                <sizeHorzCX>1002381</sizeHorzCX>\r
-                <sizeHorzCY>203252</sizeHorzCY>\r
-                <sizeVertCX>119048</sizeVertCX>\r
-                <sizeVertCY>203252</sizeVertCY>\r
-              </Rect>\r
-            </Wnd3>\r
-          </Sizes>\r
-        </Row0>\r
-      </Bottom>\r
-      <Float>\r
-        <Sizes/>\r
-      </Float>\r
-    </Positions>\r
+      \r
+      \r
+      \r
+      \r
+      \r
+    <Top><Row0><Sizes><Toolbar-011C9AA0><key>iaridepm.enu1</key></Toolbar-011C9AA0><Toolbar-1ECD4A78><key>debuggergui.enu1</key></Toolbar-1ECD4A78></Sizes></Row0><Row1><Sizes><Toolbar-1ECD49B0><key>armjet.enu1</key></Toolbar-1ECD49B0></Sizes></Row1></Top><Left><Row0><Sizes><Wnd4><Rect><Top>-2</Top><Left>-2</Left><Bottom>718</Bottom><Right>268</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203252</sizeHorzCY><sizeVertCX>160714</sizeVertCX><sizeVertCY>731707</sizeVertCY></Rect></Wnd4></Sizes></Row0></Left><Right><Row0><Sizes><Wnd5><Rect><Top>-2</Top><Left>-2</Left><Bottom>718</Bottom><Right>198</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203252</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>731707</sizeVertCY></Rect></Wnd5></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>203252</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>203252</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
   </Desktop>\r
 </Project>\r
 \r
index d7aa2b82269b1c83f63913b99b936069dd2ace32..8ecc7a3c9470ea18a2df923ff83dcb4e74d039c5 100644 (file)
@@ -48,7 +48,7 @@ PrevWtdReset=Reset and halt after bootloader
 [ArmDriver]\r
 EnableCache=1\r
 [DebugChecksum]\r
-Checksum=479945930\r
+Checksum=1116957455\r
 [Exceptions]\r
 StopOnUncaught=_ 0\r
 StopOnThrow=_ 0\r
@@ -104,9 +104,10 @@ Category=_ 0
 LoggingEnabled=_ 0\r
 LogFile=_ ""\r
 [Disassemble mode]\r
-mode=0\r
+mode=3\r
 [Breakpoints2]\r
-Count=0\r
+Bp0=_ 1 "EMUL_CODE" "{$PROJ_DIR$\src\cg_src\r_cg_scifa_user.c}.237.2" 0 0 1 "" 0 "" 0\r
+Count=1\r
 [Aliases]\r
 Count=0\r
 SuppressDialog=0\r
index ce2aca9bc18ddcfa417f16515f78e5ac3e66e2c5..319c4dfb90a6decf125d73f0b6a900dcfcbe07cb 100644 (file)
@@ -12,7 +12,7 @@
           \r
           \r
           \r
-        <Column0>222</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
+        <Column0>293</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
       </Workspace>\r
       <Debug-Log>\r
         \r
       <ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1216</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3></Build>\r
       <TerminalIO/>\r
       <Find-in-Files>\r
-        <ColumnWidth0>497</ColumnWidth0>\r
-        <ColumnWidth1>82</ColumnWidth1>\r
-        <ColumnWidth2>746</ColumnWidth2>\r
-        <ColumnWidth3>331</ColumnWidth3>\r
-      </Find-in-Files>\r
-    </Static>\r
+        \r
+        \r
+        \r
+        \r
+      <ColumnWidth0>497</ColumnWidth0><ColumnWidth1>82</ColumnWidth1><ColumnWidth2>746</ColumnWidth2><ColumnWidth3>331</ColumnWidth3></Find-in-Files>\r
+    <Select-Ambiguous-Definitions><ColumnWidth0>580</ColumnWidth0><ColumnWidth1>82</ColumnWidth1><ColumnWidth2>994</ColumnWidth2></Select-Ambiguous-Definitions></Static>\r
     <Windows>\r
       \r
       \r
-    <Wnd0>\r
+    <Wnd1>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-31096-4084</Identity>\r
             <Factory>Workspace</Factory>\r
             <Session>\r
               \r
-            <NodeDict><ExpandedNode>RTOSDemo</ExpandedNode><ExpandedNode>RTOSDemo/Full_Demo</ExpandedNode><ExpandedNode>RTOSDemo/Full_Demo/Common Demo Tasks</ExpandedNode></NodeDict></Session>\r
+            <NodeDict><ExpandedNode>RTOSDemo</ExpandedNode><ExpandedNode>RTOSDemo/Blinky Demo</ExpandedNode><ExpandedNode>RTOSDemo/FreeRTOS_Source</ExpandedNode><ExpandedNode>RTOSDemo/FreeRTOS_Source/portable</ExpandedNode><ExpandedNode>RTOSDemo/FreeRTOS_Source/portable/MemMang</ExpandedNode><ExpandedNode>RTOSDemo/FreeRTOS_Source/portable/MemMang/IAR</ExpandedNode><ExpandedNode>RTOSDemo/Full_Demo</ExpandedNode><ExpandedNode>RTOSDemo/Renesas_cg_src</ExpandedNode></NodeDict></Session>\r
           </Tab>\r
         </Tabs>\r
         \r
-      <SelectedTab>0</SelectedTab></Wnd0><Wnd1>\r
+      <SelectedTab>0</SelectedTab></Wnd1><Wnd3>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-12820-6268</Identity>\r
             <Factory>Find-in-Files</Factory>\r
             <Session/>\r
           </Tab>\r
-        </Tabs>\r
+        <Tab><Identity>TabID-6803-3328</Identity><TabName>Ambiguous Definitions</TabName><Factory>Select-Ambiguous-Definitions</Factory><Session/></Tab></Tabs>\r
         \r
-      <SelectedTab>1</SelectedTab></Wnd1></Windows>\r
+      <SelectedTab>1</SelectedTab></Wnd3></Windows>\r
     <Editor>\r
       \r
       \r
       \r
       \r
-    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>128</YPos2><SelStart2>6721</SelStart2><SelEnd2>6721</SelEnd2></Tab><ActiveTab>0</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Full_Demo\IntQueueTimer.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>81</YPos2><SelStart2>4886</SelStart2><SelEnd2>4912</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\System\IAR\Interrupt_Entry_Stubs.asm</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>66</YPos2><SelStart2>4185</SelStart2><SelEnd2>4185</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\ARM_CRx_No_GIC\port.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>245</YPos2><SelStart2>11320</SelStart2><SelEnd2>11320</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Full_Demo\reg_test_IAR.asm</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>123</YPos2><SelStart2>5555</SelStart2><SelEnd2>5555</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\Common\Minimal\TimerDemo.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>242</YPos2><SelStart2>12612</SelStart2><SelEnd2>12612</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\tasks.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>202</YPos2><SelStart2>11920</SelStart2><SelEnd2>11930</SelEnd2></Tab></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$\src\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>67</YPos2><SelStart2>6976</SelStart2><SelEnd2>6976</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Full_Demo\main_full.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>69</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Blinky_Demo\main_blinky.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>69</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\ARM_CRx_No_GIC\portASM.s</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>81</YPos2><SelStart2>4099</SelStart2><SelEnd2>4099</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\src\Full_Demo\reg_test_IAR.asm</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>101</YPos2><SelStart2>5250</SelStart2><SelEnd2>5250</SelEnd2></Tab><ActiveTab>4</ActiveTab></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-025B83D8><key>iaridepm.enu1</key></Toolbar-025B83D8></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>619</Bottom><Right>312</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203252</sizeHorzCY><sizeVertCX>186905</sizeVertCX><sizeVertCY>631098</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>321</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>323</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>328252</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>203252</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+    <Top><Row0><Sizes><Toolbar-00BB9AA0><key>iaridepm.enu1</key></Toolbar-00BB9AA0></Sizes></Row0></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>619</Bottom><Right>383</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203252</sizeHorzCY><sizeVertCX>229167</sizeVertCX><sizeVertCY>631098</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>321</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>323</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>328252</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>203252</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
   </Desktop>\r
 </Workspace>\r
 \r
index ecdc2c482a7c3a5052fa34998e198f4f69907cd5..c13f71d802707c1064f0e841e1a3ffda40063807 100644 (file)
@@ -1,2 +1,2 @@
 [MainWindow]\r
-WindowPlacement=_ 519 0 1619 872 3\r
+WindowPlacement=_ 367 9 1633 963 3\r
index 83d88be71d8f02f0767063459cc16d4fd7973f68..d56487778fca4aede36195b5b1d634535ae70f2f 100644 (file)
  *\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
+ * this file.  It sends the value 100 to the queue every 200 milliseconds.\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
+ * in this file.  It blocks on the queue to wait for data to arrive from the\r
+ * queue send task - toggling the LED each time it receives the value 100.  The\r
+ * queue send task writes to the queue every 200ms, so the LED should toggle\r
+ * every 200ms.\r
  */\r
 \r
 /* Kernel includes. */\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
+#define mainQUEUE_SEND_FREQUENCY_MS                    ( pdMS_TO_TICKS( 200UL ) )\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
@@ -225,7 +215,7 @@ const unsigned long ulExpectedValue = 100UL;
                is it the expected value?  If it is, toggle the LED. */\r
                if( ulReceivedValue == ulExpectedValue )\r
                {\r
-                       LED2 = !LED2;\r
+                       LED0 = !LED0;\r
                        ulReceivedValue = 0U;\r
                }\r
        }\r
index 49e1c887fb665223728b399657ab8ad9b4c75cf1..ba681d6ef8b8b7d2e1e24f7c480b9a1d3c034788 100644 (file)
@@ -90,7 +90,7 @@
 #define configUSE_IDLE_HOOK                                            1\r
 #define configUSE_TICK_HOOK                                            1\r
 #define configMAX_PRIORITIES                                   ( 5 )\r
-#define configMINIMAL_STACK_SIZE                               ( ( unsigned short ) 120 )\r
+#define configMINIMAL_STACK_SIZE                               ( ( unsigned short ) 100 )\r
 #define configTOTAL_HEAP_SIZE                                  ( ( size_t ) ( 38 * 1024 ) )\r
 #define configMAX_TASK_NAME_LEN                                        ( 10 )\r
 #define configUSE_TRACE_FACILITY                               1\r
@@ -134,6 +134,12 @@ readable ASCII form.  See the notes in the implementation of vTaskList() within
 FreeRTOS/Source/tasks.c for limitations. */\r
 #define configUSE_STATS_FORMATTING_FUNCTIONS   1\r
 \r
+/* The buffer into which output generated by FreeRTOS+CLI is placed.  This must\r
+be at least big enough to contain the output of the task-stats command, as the\r
+example implementation does not include buffer overlow checking. */\r
+#define configCOMMAND_INT_MAX_OUTPUT_SIZE              3500\r
+#define configINCLUDE_QUERY_HEAP_COMMAND               1\r
+\r
 /* Cortex-R specific setting:  FPU has 16 (rather than 32) d registers. */\r
 #define configFPU_D32  0\r
 \r
index f8037155984ae13901d56b8f81dd6adaa91b4e42..09889202aec6808ee95dd0e02ec6162de66f01a6 100644 (file)
@@ -81,7 +81,7 @@
  *\r
  ******************************************************************************\r
  *\r
- * main_full() creates all the demo application tasks and software timers, then\r
+ * main_full() creates a set of demo application tasks and software timers, then\r
  * starts the scheduler.  The web documentation provides more details of the\r
  * standard demo application tasks, which provide no particular functionality,\r
  * but do provide a good example of how to use the FreeRTOS API.\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
  * defined and/or created within this file:\r
  *\r
+ * "FreeRTOS+CLI command console" -  The command console uses SCI1 for its\r
+ * input and output.  The baud rate is set to 19200.  Type "help" to see a list\r
+ * of registered commands.  The FreeRTOS+CLI license is different to the\r
+ * FreeRTOS license, see http://www.FreeRTOS.org/cli for license and usage\r
+ * details.\r
+ *\r
  * "Reg test" tasks - These fill both the core and floating point registers with\r
  * known values, then check that each register maintains its expected value for\r
  * the lifetime of the task.  Each task uses a different set of values.  The reg\r
  * error in the context switching mechanism.\r
  *\r
  * "Check" task - The check task period is initially set to three seconds.  The\r
- * task checks that all the standard demo tasks, and the register check tasks,\r
- * are not only still executing, but are executing without reporting any errors.\r
- * If the check task discovers that a task has either stalled, or reported an\r
- * error, then it changes its own execution period from the initial three\r
- * seconds, to just 200ms.  The check task also toggles an LED each time it is\r
- * called.  This provides a visual indication of the system status:  If the LED\r
- * toggles every three seconds, then no issues have been discovered.  If the LED\r
- * toggles every 200ms, then an issue has been discovered with at least one\r
- * task.\r
+ * task checks that all the standard demo tasks are not only still executing,\r
+ * but are executing without reporting any errors.  If the check task discovers\r
+ * that a task has either stalled, or reported an error, then it changes its own\r
+ * execution period from the initial three seconds, to just 200ms.  The check\r
+ * task also toggles an LED on each iteration of its loop.  This provides a\r
+ * visual indication of the system status:  If the LED toggles every three\r
+ * seconds, then no issues have been discovered.  If the LED toggles every\r
+ * 200ms, then an issue has been discovered with at least one task.\r
  */\r
 \r
 /* Standard includes. */\r
 #define mainCREATOR_TASK_PRIORITY                      ( tskIDLE_PRIORITY + 3UL )\r
 #define mainFLOP_TASK_PRIORITY                         ( tskIDLE_PRIORITY )\r
 #define mainUART_COMMAND_CONSOLE_STACK_SIZE    ( configMINIMAL_STACK_SIZE * 3UL )\r
-#define mainCOM_TEST_TASK_PRIORITY                     ( tskIDLE_PRIORITY + 2 )\r
 #define mainCHECK_TASK_PRIORITY                                ( configMAX_PRIORITIES - 1 )\r
 #define mainQUEUE_OVERWRITE_PRIORITY           ( tskIDLE_PRIORITY )\r
 \r
 /* The priority used by the UART command console task. */\r
 #define mainUART_COMMAND_CONSOLE_TASK_PRIORITY ( configMAX_PRIORITIES - 2 )\r
 \r
-/* A block time of zero simply means "don't block". */\r
-#define mainDONT_BLOCK                                         ( 0UL )\r
-\r
 /* The period after which the check timer will expire, in ms, provided no errors\r
 have been reported by any of the standard demo tasks.  ms are converted to the\r
 equivalent in ticks using the portTICK_PERIOD_MS constant. */\r
-#define mainNO_ERROR_CHECK_TASK_PERIOD         ( 3000UL / portTICK_PERIOD_MS )\r
+#define mainNO_ERROR_CHECK_TASK_PERIOD         pdMS_TO_TICKS( 3000UL )\r
 \r
 /* The period at which the check timer will expire, in ms, if an error has been\r
 reported in one of the standard demo tasks.  ms are converted to the equivalent\r
 in ticks using the portTICK_PERIOD_MS constant. */\r
-#define mainERROR_CHECK_TASK_PERIOD            ( 200UL / portTICK_PERIOD_MS )\r
+#define mainERROR_CHECK_TASK_PERIOD            pdMS_TO_TICKS( 200UL )\r
 \r
 /* Parameters that are passed into the register check tasks solely for the\r
 purpose of ensuring parameters are passed into tasks correctly. */\r
@@ -212,6 +213,17 @@ extern void vRegTest2Implementation( void );
  */\r
 static void prvPseudoRandomiser( void *pvParameters );\r
 \r
+/*\r
+ * Register commands that can be used with FreeRTOS+CLI.  The commands are\r
+ * defined in CLI-Commands.c and File-Related-CLI-Command.c respectively.\r
+ */\r
+extern void vRegisterSampleCLICommands( void );\r
+\r
+/*\r
+ * The task that manages the FreeRTOS+CLI input and output.\r
+ */\r
+extern void vUARTCommandConsoleStart( uint16_t usStackSize, UBaseType_t uxPriority );\r
+\r
 /*-----------------------------------------------------------*/\r
 \r
 /* The following two variables are used to communicate the status of the\r
@@ -220,9 +232,6 @@ then the register check tasks have not discovered any errors.  If a variable
 stops incrementing, then an error has been found. */\r
 volatile unsigned long ulRegTest1LoopCounter = 0UL, ulRegTest2LoopCounter = 0UL;\r
 \r
-/* String for display in the web server.  It is set to an error message if the\r
-check task detects an error.  */\r
-const char *pcStatusMessage = "All tasks running without error";\r
 /*-----------------------------------------------------------*/\r
 \r
 void main_full( void )\r
@@ -252,6 +261,13 @@ void main_full( void )
        /* Create the task that just adds a little random behaviour. */\r
        xTaskCreate( prvPseudoRandomiser, "Rnd", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
 \r
+       /* Start the tasks that implements the command console on the UART, as\r
+       described above. */\r
+       vUARTCommandConsoleStart( mainUART_COMMAND_CONSOLE_STACK_SIZE, mainUART_COMMAND_CONSOLE_TASK_PRIORITY );\r
+\r
+       /* Register the standard CLI commands. */\r
+       vRegisterSampleCLICommands();\r
+\r
        /* Create the task that performs the 'check' functionality,     as described at\r
        the top of this file. */\r
        xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
@@ -395,7 +411,7 @@ unsigned long ulErrorFound = pdFALSE;
                /* Toggle the check LED to give an indication of the system status.  If\r
                the LED toggles every mainNO_ERROR_CHECK_TASK_PERIOD milliseconds then\r
                everything is ok.  A faster toggle indicates an error. */\r
-               LED2 = !LED2;\r
+               LED0 = !LED0;\r
 \r
                if( ulErrorFound != pdFALSE )\r
                {\r
@@ -404,7 +420,6 @@ unsigned long ulErrorFound = pdFALSE;
                        gone wrong (it might just be that the loop back connector required\r
                        by the comtest tasks has not been fitted). */\r
                        xDelayPeriod = mainERROR_CHECK_TASK_PERIOD;\r
-                       pcStatusMessage = "Error found in at least one task.";\r
                }\r
        }\r
 }\r
@@ -458,7 +473,7 @@ static void prvRegTestTaskEntry2( void *pvParameters )
 \r
 static void prvPseudoRandomiser( void *pvParameters )\r
 {\r
-const uint32_t ulMultiplier = 0x015a4e35UL, ulIncrement = 1UL, ulMinDelay = ( 35 / portTICK_PERIOD_MS );\r
+const uint32_t ulMultiplier = 0x015a4e35UL, ulIncrement = 1UL, ulMinDelay = pdMS_TO_TICKS( 35 );\r
 volatile uint32_t ulNextRand = ( uint32_t ) &pvParameters, ulValue;\r
 \r
        /* This task does nothing other than ensure there is a little bit of\r
index 8de8a6e8e40abe5072757532ed0ae3fc0dbc0c0d..51f46915a0e0de5b52d1b3eb8e80e79b7bf81a94 100644 (file)
@@ -119,7 +119,7 @@ vRegTest1Implementation:
        vmov    d14, r4, r5\r
        vmov    d15, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg1_loop:\r
        /* Yield to increase test coverage */\r
@@ -312,7 +312,7 @@ vRegTest2Implementation:
        vmov    d14, r4, r5\r
        vmov    d15, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg2_loop:\r
        /* Check all the VFP registers still contain the values set above.\r
index 653edaaf4111a5a376aa0920b3e2d2a92f14a4b0..1c6f0aee5f2c47e8ded0c512d5c6e9cd4467d5f1 100644 (file)
@@ -118,7 +118,7 @@ vRegTest1Implementation:
        vmov    d14, r4, r5\r
        vmov    d15, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg1_loop:\r
        /* Yield to increase test coverage */\r
@@ -310,7 +310,7 @@ vRegTest2Implementation:
        vmov    d14, r4, r5\r
        vmov    d15, r6, r7\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 reg2_loop:\r
        /* Check all the VFP registers still contain the values set above.\r
index ae2d886af9957990a080154a674826d614535230..ac127c7aa2d4c63e015a8d6ac8bd9e44759333c3 100644 (file)
@@ -58,6 +58,9 @@ volatile uint32_t g_time_us_count;
 * Arguments    : None\r
 * Return Value : None\r
 ***********************************************************************************************************************/\r
+#ifdef __ICCARM__\r
+       __arm __irq\r
+#endif\r
 void r_cmt_cmi4_interrupt(void)\r
 {\r
     /* Clear the interrupt source CMI4 */\r
@@ -79,6 +82,9 @@ void r_cmt_cmi4_interrupt(void)
 * Arguments    : None\r
 * Return Value : None\r
 ***********************************************************************************************************************/\r
+#ifdef __ICCARM__\r
+       __arm __irq\r
+#endif\r
 void r_cmt_cmi5_interrupt(void)\r
 {\r
     /* Clear the interrupt source CMI5 */\r
index 2f0f9357c3a264afa90231f5a98efe22bbbb42e2..ef16a08046ca84a6dfd77f69e6c87b07e12c028e 100644 (file)
@@ -58,6 +58,24 @@ Global functions
 \r
        /* RSPI1 SPII1 */\r
        __irq __arm void r_rspi1_idle_interrupt(void);\r
+\r
+       /* SCIFA TXIF2 */\r
+       __irq __arm void r_scifa2_txif2_interrupt_entry(void);\r
+\r
+       /* SCIFA DRIF2 */\r
+       __irq __arm void r_scifa2_drif2_interrupt_entry(void);\r
+\r
+       /* SCIFA RXIF2 */\r
+       __irq __arm void r_scifa2_rxif2_interrupt_entry(void);\r
+\r
+       /* SCIFA BRIF2 */\r
+       __irq __arm void r_scifa2_brif2_interrupt_entry(void);\r
+\r
+       /* CMT CMI4 */\r
+       __irq __arm void r_cmt_cmi4_interrupt(void);\r
+\r
+       /* CMT CMI5 */\r
+       __irq __arm void r_cmt_cmi5_interrupt(void);\r
 #endif /* __ICCARM__ */\r
 \r
 #ifdef __GNUC__\r
@@ -74,6 +92,24 @@ Global functions
 \r
        /* RSPI1 SPII1 */\r
        void r_rspi1_idle_interrupt(void) __attribute__((interrupt ("IRQ")));\r
+\r
+       /* SCIFA TXIF2 */\r
+       void r_scifa2_txif2_interrupt_entry(void) __attribute__((interrupt ("IRQ")));\r
+\r
+       /* SCIFA DRIF2 */\r
+       void r_scifa2_drif2_interrupt_entry(void) __attribute__((interrupt ("IRQ")));\r
+\r
+       /* SCIFA RXIF2 */\r
+       void r_scifa2_rxif2_interrupt_entry(void) __attribute__((interrupt ("IRQ")));\r
+\r
+       /* SCIFA BRIF2 */\r
+       void r_scifa2_brif2_interrupt_entry(void) __attribute__((interrupt ("IRQ")));\r
+\r
+       /* CMT CMI4 */\r
+       void r_cmt_cmi4_interrupt(void) __attribute__((interrupt ("IRQ")));\r
+\r
+       /* CMT CMI5 */\r
+       void r_cmt_cmi5_interrupt(void) __attribute__((interrupt ("IRQ")));\r
 #endif /* __GNUC__ */\r
 \r
 #endif\r
diff --git a/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa.c b/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa.c
new file mode 100644 (file)
index 0000000..788ae8b
--- /dev/null
@@ -0,0 +1,272 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.\r
+* No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all\r
+* applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED\r
+* OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+* NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY\r
+* LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,\r
+* INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR\r
+* ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability\r
+* of this software. By using this software, 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) 2015 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_scifa.c\r
+* Version      : Code Generator for RZ/T1 V1.00.00.09 [02 Mar 2015]\r
+* Device(s)    : R7S910018CBG\r
+* Tool-Chain   : GCCARM\r
+* Description  : This file implements device driver for SCIF module.\r
+* Creation Date: 19/04/2015\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_scifa.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
+const uint8_t * gp_scifa2_tx_address;   /* SCIFA2 transmit buffer address */\r
+uint16_t        g_scifa2_tx_count;      /* SCIFA2 transmit data number */\r
+uint8_t *       gp_scifa2_rx_address;   /* SCIFA2 receive buffer address */\r
+uint16_t        g_scifa2_rx_count;      /* SCIFA2 receive data number */\r
+uint16_t        g_scifa2_rx_length;     /* SCIFA2 receive data length */\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_SCIFA2_Create\r
+* Description  : This function initializes SCIFA2.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_SCIFA2_Create(void)\r
+{\r
+    volatile uint16_t dummy;\r
+    uint16_t w_count;\r
+\r
+    /* Cancel SCIFA2 module stop state */\r
+    MSTP(SCIFA2) = 0U;\r
+\r
+    /* Disable TXIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00008000UL;\r
+\r
+    /* Disable RXIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00004000UL;\r
+\r
+    /* Disable BRIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00002000UL;\r
+\r
+    /* Disable DRIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00010000UL;\r
+\r
+    /* Clear transmit/receive enable bits */\r
+    SCIFA2.SCR.BIT.TE = 0U;\r
+    SCIFA2.SCR.BIT.RE = 0U;\r
+\r
+    /* Reset transmit/receive FIFO data register operation */\r
+    SCIFA2.FCR.BIT.TFRST = 1U;\r
+    SCIFA2.FCR.BIT.RFRST = 1U;\r
+\r
+    /* Read and clear status flags */\r
+    dummy = SCIFA2.FSR.WORD;\r
+\r
+    /* Remove compiler warnings. */\r
+    ( void ) dummy;\r
+\r
+    SCIFA2.FSR.WORD = 0x00U;\r
+    dummy = (uint16_t) SCIFA2.LSR.BIT.ORER;\r
+\r
+    /* Remove compiler warnings. */\r
+    ( void ) dummy;\r
+\r
+    SCIFA2.LSR.BIT.ORER = 0U;\r
+\r
+    /* Set clock enable bits */\r
+    SCIFA2.SCR.WORD = _SCIF_INTERNAL_SCK_UNUSED;\r
+\r
+    /* Set transmission/reception format */\r
+    SCIFA2.SMR.WORD = _SCIF_CLOCK_SERICLK_4 | _SCIF_STOP_1 | _SCIF_PARITY_DISABLE | _SCIF_DATA_LENGTH_8 |\r
+                      _SCIF_ASYNCHRONOUS_MODE;\r
+    SCIFA2.SEMR.BYTE = _SCIF_16_BASE_CLOCK | _SCIF_NOISE_FILTER_ENABLE | _SCIF_DATA_TRANSFER_LSB_FIRST |\r
+                       _SCIF_BAUDRATE_SINGLE;\r
+\r
+    /* Clear modulation duty register select */\r
+    SCIFA2.SEMR.BIT.MDDRS = 0U;\r
+\r
+    /* Set bit rate */\r
+    SCIFA2.BRR_MDDR.BRR = 0x3CU;\r
+\r
+    /* Wait for at least 1-bit interval */\r
+    for (w_count = 0U; w_count < _SCIF_1BIT_INTERVAL_2; w_count++)\r
+    {\r
+        nop();\r
+    }\r
+\r
+    /* Set FIFO trigger conditions */\r
+    SCIFA2.FTCR.WORD = _SCIF_TX_FIFO_TRIGGER_NUM_0 | _SCIF_TX_TRIGGER_TFTC_VALID | _SCIF_RX_FIFO_TRIGGER_NUM_1 |\r
+                       _SCIF_RX_TRIGGER_RFTC_VALID;\r
+    SCIFA2.FCR.WORD = _SCIF_LOOPBACK_DISABLE | _SCIF_MODEM_CONTROL_DISABLE;\r
+\r
+    /* Disable transmit/receive FIFO data register reset operation */\r
+    SCIFA2.FCR.BIT.TFRST = 0U;\r
+    SCIFA2.FCR.BIT.RFRST = 0U;\r
+\r
+    /* Set TXIF2 interrupt priority */\r
+    VIC.PRL111.LONG = _SCIF_PRIORITY_LEVEL2;\r
+\r
+    /* Set TXIF2 interrupt address */\r
+    VIC.VAD111.LONG = (uint32_t)r_scifa2_txif2_interrupt_entry;\r
+\r
+    /* Set RXIF2 interrupt priority */\r
+    VIC.PRL110.LONG = _SCIF_PRIORITY_LEVEL3;\r
+\r
+    /* Set RXIF2 interrupt address */\r
+    VIC.VAD110.LONG = (uint32_t)r_scifa2_rxif2_interrupt_entry;\r
+\r
+    /* Set BRIF2 interrupt priority */\r
+    VIC.PRL109.LONG = _SCIF_PRIORITY_LEVEL5;\r
+\r
+    /* Set BRIF2 interrupt address */\r
+    VIC.VAD109.LONG = (uint32_t)r_scifa2_brif2_interrupt_entry;\r
+\r
+    /* Set DRIF2 interrupt priority */\r
+    VIC.PRL112.LONG = _SCIF_PRIORITY_LEVEL4;\r
+\r
+    /* Set DRIF2 interrupt address */\r
+    VIC.VAD112.LONG = (uint32_t)r_scifa2_drif2_interrupt_entry;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: R_SCIFA2_Start\r
+* Description  : This function starts SCIFA2.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_SCIFA2_Start(void)\r
+{\r
+    /* Enable TXIF2 interrupt */\r
+    VIC.IEN3.LONG |= 0x00008000UL;\r
+\r
+    /* Enable RXIF2 interrupt */\r
+    VIC.IEN3.LONG |= 0x00004000UL;\r
+\r
+    /* Enable BRIF2 interrupt */\r
+    VIC.IEN3.LONG |= 0x00002000UL;\r
+\r
+    /* Enable DRIF2 interrupt */\r
+    VIC.IEN3.LONG |= 0x00010000UL;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: R_SCIFA2_Stop\r
+* Description  : This function stops SCIFA2.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void R_SCIFA2_Stop(void)\r
+{\r
+    /* Disable serial transmit */\r
+    SCIFA2.SCR.BIT.TE = 0U;\r
+\r
+    /* Disable serial receive */\r
+    SCIFA2.SCR.BIT.RE = 0U;\r
+\r
+    /* Disable TXI interrupt */\r
+    SCIFA2.SCR.BIT.TIE = 0U;\r
+\r
+    /* Disable RXI and ERI interrupt */\r
+    SCIFA2.SCR.BIT.RIE = 0U;\r
+\r
+    /* Disable TXIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00008000UL;\r
+\r
+    /* Disable RXIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00004000UL;\r
+\r
+    /* Disable BRIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00002000UL;\r
+\r
+    /* Disable DRIF2 interrupt */\r
+    VIC.IEC3.LONG = 0x00010000UL;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: R_SCIFA2_Serial_Receive\r
+* Description  : This function receives SCIFA2 data.\r
+* Arguments    : rx_buf -\r
+*                    receive buffer pointer (Not used when receive data handled by DMAC)\r
+*                rx_num -\r
+*                    buffer size (Not used when receive data handled by DMAC)\r
+* Return Value : status -\r
+*                    MD_OK or MD_ARGERROR\r
+***********************************************************************************************************************/\r
+MD_STATUS R_SCIFA2_Serial_Receive(uint8_t * rx_buf, uint16_t rx_num)\r
+{\r
+    MD_STATUS status = MD_OK;\r
+\r
+    if (rx_num < 1U)\r
+    {\r
+        status = MD_ARGERROR;\r
+    }\r
+    else\r
+    {\r
+        g_scifa2_rx_count = 0U;\r
+        g_scifa2_rx_length = rx_num;\r
+        gp_scifa2_rx_address = rx_buf;\r
+\r
+        SCIFA2.FTCR.BIT.RFTC = _SCIF_RX_TRIG_NUM_2;\r
+\r
+        SCIFA2.SCR.BIT.RE = 1U;\r
+        SCIFA2.SCR.BIT.RIE = 1U;\r
+        SCIFA2.SCR.BIT.REIE = 1U;\r
+    }\r
+\r
+    return (status);\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: R_SCIFA2_Serial_Send\r
+* Description  : This function transmits SCIFA2 data.\r
+* Arguments    : tx_buf -\r
+*                    transfer buffer pointer (Not used when transmit data handled by DMAC)\r
+*                tx_num -\r
+*                    buffer size (Not used when transmit data handled by DMAC)\r
+* Return Value : status -\r
+*                    MD_OK or MD_ARGERROR\r
+***********************************************************************************************************************/\r
+MD_STATUS R_SCIFA2_Serial_Send(const uint8_t * tx_buf, uint16_t tx_num)\r
+{\r
+    MD_STATUS status = MD_OK;\r
+\r
+    if (tx_num < 1U)\r
+    {\r
+        status = MD_ARGERROR;\r
+    }\r
+    else\r
+    {\r
+        gp_scifa2_tx_address = tx_buf;\r
+        g_scifa2_tx_count = tx_num;\r
+        SCIFA2.SCR.BIT.TE = 1U;\r
+        SCIFA2.SCR.BIT.TIE = 1U;\r
+    }\r
+\r
+    return (status);\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/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa.h b/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa.h
new file mode 100644 (file)
index 0000000..8331324
--- /dev/null
@@ -0,0 +1,275 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.\r
+* No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all\r
+* applicable laws, including copyright laws. \r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED\r
+* OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+* NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY\r
+* LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,\r
+* INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR\r
+* ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability \r
+* of this software. By using this software, 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) 2015 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_scifa.h\r
+* Version      : Code Generator for RZ/T1 V1.00.00.09 [02 Mar 2015]\r
+* Device(s)    : R7S910018CBG\r
+* Tool-Chain   : GCCARM\r
+* Description  : This file implements device driver for SCIF module.\r
+* Creation Date: 19/04/2015\r
+***********************************************************************************************************************/\r
+#ifndef SCIF_H\r
+#define SCIF_H\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions (Register bit)\r
+***********************************************************************************************************************/\r
+\r
+/*\r
+    Serial mode register (SMR)\r
+*/\r
+/* Clock select (CKS[1:0]) */\r
+#define _SCIF_CLOCK_SERICLK                     (0x0000U) /* SERICLK */\r
+#define _SCIF_CLOCK_SERICLK_4                   (0x0001U) /* SERICLK/4 */\r
+#define _SCIF_CLOCK_SERICLK_16                  (0x0002U) /* SERICLK/16 */\r
+#define _SCIF_CLOCK_SERICLK_64                  (0x0003U) /* SERICLK/64 */\r
+/* Stop bit length (STOP) */\r
+#define _SCIF_STOP_1                            (0x0000U) /* 1 stop bit */\r
+#define _SCIF_STOP_2                            (0x0008U) /* 2 stop bits */\r
+/* Parity mode (PM) */\r
+#define _SCIF_PARITY_EVEN                       (0x0000U) /* Parity even */\r
+#define _SCIF_PARITY_ODD                        (0x0010U) /* Parity odd */\r
+/* Parity enable (PE) */\r
+#define _SCIF_PARITY_DISABLE                    (0x0000U) /* Parity disable */\r
+#define _SCIF_PARITY_ENABLE                     (0x0020U) /* Parity enable */\r
+/* Character length (CHR) */\r
+#define _SCIF_DATA_LENGTH_8                     (0x0000U) /* Data length 8 bits */\r
+#define _SCIF_DATA_LENGTH_7                     (0x0040U) /* Data length 7 bits */\r
+/* Communications mode (CM) */\r
+#define _SCIF_ASYNCHRONOUS_MODE                 (0x0000U) /* Asynchronous mode */\r
+#define _SCIF_CLOCK_SYNCHRONOUS_MODE            (0x0080U) /* Clock synchronous mode */\r
+\r
+/*\r
+    Serial control register (SCR)\r
+*/\r
+/* Clock enable (CKE) */\r
+#define _SCIF_INTERNAL_SCK_UNUSED               (0x0000U) /* Internal clock selected, SCK pin unused */\r
+#define _SCIF_INTERNAL_SCK_OUTPUT               (0x0001U) /* Internal clock selected, SCK pin as clock output */\r
+/* Clock enable (CKE) for clock synchronous mode */\r
+#define _SCIF_INTERNAL_SCK_OUTPUT_SYNC          (0x0000U) /* Internal clock, SCK pin is used for clock output */\r
+#define _SCIF_EXTERNAL_SCK_INPUT_SYNC           (0x0002U) /* External clock, SCK pin is used for clock input */\r
+/* Transmit end interrupt enable (TEIE) */\r
+#define _SCIF_TEI_INTERRUPT_DISABLE             (0x0000U) /* TEI interrupt request disable */\r
+#define _SCIF_TEI_INTERRUPT_ENABLE              (0x0004U) /* TEI interrupt request enable */\r
+/* Receive error interrupt enable (REIE) */\r
+#define _SCIF_ERI_BRI_INTERRUPT_DISABLE         (0x0000U) /* Disable receive-error interrupt and break interrupt */\r
+#define _SCIF_ERI_BRI_INTERRUPT_ENABLE          (0x0008U) /* Enable receive-error interrupt and break interrupt */\r
+/* Receive enable (RE) */\r
+#define _SCIF_RECEIVE_DISABLE                   (0x0000U) /* Disable receive mode */\r
+#define _SCIF_RECEIVE_ENABLE                    (0x0010U) /* Enable receive mode */\r
+/* Transmit enable (TE) */\r
+#define _SCIF_TRANSMIT_DISABLE                  (0x0000U) /* Disable transmit mode */\r
+#define _SCIF_TRANSMIT_ENABLE                   (0x0020U) /* Enable transmit mode */\r
+/* Receive interrupt enable (RIE) */\r
+#define _SCIF_RXI_ERI_DISABLE                   (0x0000U) /* Disable RXI and ERI interrupt requests */\r
+#define _SCIF_RXI_ERI_ENABLE                    (0x0040U) /* Enable RXI and ERI interrupt requests */\r
+/* Transmit interrupt enable (TIE) */\r
+#define _SCIF_TXI_DISABLE                       (0x0000U) /* Disable TXI interrupt requests */\r
+#define _SCIF_TXI_ENABLE                        (0x0080U) /* Enable TXI interrupt requests */\r
+\r
+/*\r
+    FIFO control register (FCR)\r
+*/\r
+/* Loop-Back test (LOOP) */\r
+#define _SCIF_LOOPBACK_DISABLE                  (0x0000U) /* Loop back test is disabled */\r
+#define _SCIF_LOOPBACK_ENABLE                   (0x0001U) /* Loop back test is enabled */\r
+/* Receive FIFO Data Register Reset (RFRST) */\r
+#define _SCIF_RX_FIFO_RESET_DISABLE             (0x0000U) /* FRDR reset operation is disabled */\r
+#define _SCIF_RX_FIFO_RESET_ENABLE              (0x0002U) /* FRDR reset operation is enabled */\r
+/* Transmit FIFO Data Register Reset (TFRST) */\r
+#define _SCIF_TX_FIFO_RESET_DISABLE             (0x0000U) /* FTDR reset operation is disabled */\r
+#define _SCIF_TX_FIFO_RESET_ENABLE              (0x0004U) /* FTDR reset operation is enabled */\r
+/* Modem control enable (MCE) */\r
+#define _SCIF_MODEM_CONTROL_DISABLE             (0x0000U) /* Model signal is disabled */\r
+#define _SCIF_MODEM_CONTROL_ENABLE              (0x0008U) /* Model signal is enabled */\r
+/* Transmit FIFO Data Trigger Number (TTRG[1:0]) */\r
+#define _SCIF_TX_TRIGGER_NUMBER_8               (0x0000U) /* 8 (or 8 when TDFE flag is 1) */\r
+#define _SCIF_TX_TRIGGER_NUMBER_4               (0x0010U) /* 4 (or 12 when TDFE flag is 1) */\r
+#define _SCIF_TX_TRIGGER_NUMBER_2               (0x0020U) /* 2 (or 14 when TDFE flag is 1) */\r
+#define _SCIF_TX_TRIGGER_NUMBER_0               (0x0030U) /* 0 (or 16 when TDFE flag is 1) */\r
+/* Receive FIFO Data Trigger Number (RTRG[1:0]) */\r
+#define _SCIF_RX_TRIGGER_NUMBER_1               (0x0000U) /* 1 */\r
+#define _SCIF_RX_TRIGGER_NUMBER_4               (0x0040U) /* 4 (for asynchronous mode) */\r
+#define _SCIF_RX_TRIGGER_NUMBER_2               (0x0040U) /* 2 (for clock synchronous mode */\r
+#define _SCIF_RX_TRIGGER_NUMBER_8               (0x0080U) /* 8 */\r
+#define _SCIF_RX_TRIGGER_NUMBER_14              (0x00C0U) /* 14 */\r
+/* RTS# Output Active Trigger Number Select (RSTRG[2:0]) */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_15             (0x0000U) /* 15 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_1              (0x0100U) /* 1 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_4              (0x0200U) /* 4 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_6              (0x0300U) /* 6 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_8              (0x0400U) /* 8 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_10             (0x0500U) /* 10 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_12             (0x0600U) /* 12 */\r
+#define _SCIF_RTS_TRIGGER_NUMBER_14             (0x0700U) /* 14 */\r
+\r
+/*\r
+    Serial port register (SPTR)\r
+*/\r
+/* Serial Port Break Data (SPB2DT) */\r
+#define _SCIF_SERIAL_BREAK_DATA_LOW             (0x0000U) /* Input/output data is at low */\r
+#define _SCIF_SERIAL_BREAK_DATA_HIGH            (0x0001U) /* Input/output data is at high */\r
+/* Serial Port Break input/output (SPB2IO) */\r
+#define _SCIF_SERIAL_BREAK_TXD_NO_OUTPUT        (0x0000U) /* SPB2DT bit value is not output to TXD pin */\r
+#define _SCIF_SERIAL_BREAK_TXD_OUTPUT           (0x0002U) /* SPB2DT bit value is output to TXD pin */\r
+/* SCK Port Data (SCKDT) */\r
+#define _SCIF_SCK_DATA_LOW                      (0x0000U) /* Input/output data is at low */\r
+#define _SCIF_SCK_DATA_HIGH                     (0x0004U) /* Input/output data is at high */\r
+/* SCK Port input/output (SCKIO) */\r
+#define _SCIF_SCK_PORT_NO_OUTPUT                (0x0000U) /* SCKDT bit value is not output to SCK pin */\r
+#define _SCIF_SCK_PORT_OUTPUT                   (0x0008U) /* SCKDT bit value is output to SCK pin */\r
+/* CTS# Port Data Select (CTS2DT) */\r
+#define _SCIF_CTS_DATA_0                        (0x0000U) /* Set b4 to 0. Controls CTS# pin with MCE, CTS2IO bit */\r
+#define _SCIF_CTS_DATA_1                        (0x0010U) /* Set b4 to 1. Controls CTS# pin with MCE, CTS2IO bit */\r
+/* CTS# Port Output Specify (CTS2IO) */\r
+#define _SCIF_CTS_OUTPUT_0                      (0x0000U) /* Set b5 to 0. Controls CTS# pin with MCE, CTS2IO bit */\r
+#define _SCIF_CTS_OUTPUT_1                      (0x0020U) /* Set b5 to 1. Controls CTS# pin with MCE, CTS2IO bit */\r
+/* RTS# Port Data Select (RTS2DT) */\r
+#define _SCIF_RTS_DATA_0                        (0x0000U) /* Set b6 to 0. Controls RTS# pin with MCE, RTS2IO bit */\r
+#define _SCIF_RTS_DATA_1                        (0x0040U) /* Set b6 to 1. Controls RTS# pin with MCE, RTS2IO bit */\r
+/* RTS# Port Output Specify (RTS2IO) */\r
+#define _SCIF_RTS_OUTPUT_0                      (0x0000U) /* Set b7 to 0. Controls RTS# pin with MCE, RTS2IO bit */\r
+#define _SCIF_RTS_OUTPUT_1                      (0x0080U) /* Set b7 to 1. Controls RTS# pin with MCE, RTS2IO bit */\r
+\r
+/*\r
+    FIFO Trigger Control Register (FTCR)\r
+*/\r
+/* Transmit FIFO Data Trigger Number (TFTC[4:0]) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_0             (0x0000U) /* 0 (no transmit data trigger) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_1             (0x0001U) /* 1 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_2             (0x0002U) /* 2 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_3             (0x0003U) /* 3 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_4             (0x0004U) /* 4 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_5             (0x0005U) /* 5 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_6             (0x0006U) /* 6 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_7             (0x0007U) /* 7 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_8             (0x0008U) /* 8 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_9             (0x0009U) /* 9 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_10            (0x000AU) /* 10 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_11            (0x000BU) /* 11 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_12            (0x000CU) /* 12 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_13            (0x000DU) /* 13 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_14            (0x000EU) /* 14 (transmit data triggers) */\r
+#define _SCIF_TX_FIFO_TRIGGER_NUM_15            (0x000FU) /* 15 (transmit data triggers) */\r
+/* Transmit Trigger Select (TTRGS) */\r
+#define _SCIF_TX_TRIGGER_TTRG_VALID             (0x0000U) /* TTRG[1:0] bits in FCR are valid */\r
+#define _SCIF_TX_TRIGGER_TFTC_VALID             (0x0080U) /* TFTC[4:0] bits in FTCR are valid */\r
+/* Receive FIFO Data Trigger Number (RFTC[4:0]) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_1             (0x0100U) /* 1 (no receive data trigger) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_2             (0x0200U) /* 2 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_3             (0x0300U) /* 3 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_4             (0x0400U) /* 4 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_5             (0x0500U) /* 5 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_6             (0x0600U) /* 6 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_7             (0x0700U) /* 7 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_8             (0x0800U) /* 8 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_9             (0x0900U) /* 9 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_10            (0x0A00U) /* 10 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_11            (0x0B00U) /* 11 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_12            (0x0C00U) /* 12 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_13            (0x0D00U) /* 13 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_14            (0x0E00U) /* 14 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_15            (0x0F00U) /* 15 (receive data triggers) */\r
+#define _SCIF_RX_FIFO_TRIGGER_NUM_16            (0x1000U) /* 16 (receive data triggers) */\r
+/* Transmit Trigger Select (RTRGS) */\r
+#define _SCIF_RX_TRIGGER_RTRG_VALID             (0x0000U) /* RTRG[1:0] bits in FCR are valid */\r
+#define _SCIF_RX_TRIGGER_RFTC_VALID             (0x8000U) /* RFTC[4:0] bits in FTCR are valid */\r
+\r
+/*\r
+    Serial extended mode register (SEMR)\r
+*/\r
+/* Asynchronous base clock select (ABCS0) */\r
+#define _SCIF_16_BASE_CLOCK                     (0x00U) /* Selects 16 base clock cycles for 1 bit period */\r
+#define _SCIF_8_BASE_CLOCK                      (0x01U) /* Selects 8 base clock cycles for 1 bit period */\r
+/* Noise Cancellation Enable (NFEN) */\r
+#define _SCIF_NOISE_FILTER_DISABLE              (0x00U) /* Noise cancellation for the RxD pin input is disabled */\r
+#define _SCIF_NOISE_FILTER_ENABLE               (0x04U) /* Noise cancellation for the RxD pin input is enabled */\r
+/* Data Transfer Direction Select (DIR) */\r
+#define _SCIF_DATA_TRANSFER_LSB_FIRST           (0x00U) /* Transmits the data in FTDR by the LSB-first method */\r
+#define _SCIF_DATA_TRANSFER_MSB_FIRST           (0x08U) /* Transmits the data in FTDR by the MSB-first method */\r
+/* Modulation Duty Register Select (MDDRS) */\r
+#define _SCIF_BRR_USED                          (0x00U) /* BRR register can be accessed */\r
+#define _SCIF_MDDR_USED                         (0x10U) /* MDDR register can be accessed. */\r
+/* Bit Rate Modulation Enable (BRME) */\r
+#define _SCIF_BIT_RATE_MODULATION_DISABLE       (0x00U) /* Bit rate modulation function is disabled */\r
+#define _SCIF_BIT_RATE_MODULATION_ENABLE        (0x20U) /* Bit rate modulation function is enabled */\r
+/* Baud Rate Generator Double-Speed Mode Select (BGDM) */\r
+#define _SCIF_BAUDRATE_SINGLE                   (0x00U) /* Baud rate generator outputs normal frequency */\r
+#define _SCIF_BAUDRATE_DOUBLE                   (0x80U) /* Baud rate generator doubles output frequency */\r
+\r
+/*\r
+    Interrupt Source Priority Register n (PRLn)\r
+*/\r
+/* Interrupt Priority Level Select (PRL[3:0]) */\r
+#define _SCIF_PRIORITY_LEVEL0                   (0x00000000UL) /* Level 0 (highest) */\r
+#define _SCIF_PRIORITY_LEVEL1                   (0x00000001UL) /* Level 1 */\r
+#define _SCIF_PRIORITY_LEVEL2                   (0x00000002UL) /* Level 2 */\r
+#define _SCIF_PRIORITY_LEVEL3                   (0x00000003UL) /* Level 3 */\r
+#define _SCIF_PRIORITY_LEVEL4                   (0x00000004UL) /* Level 4 */\r
+#define _SCIF_PRIORITY_LEVEL5                   (0x00000005UL) /* Level 5 */\r
+#define _SCIF_PRIORITY_LEVEL6                   (0x00000006UL) /* Level 6 */\r
+#define _SCIF_PRIORITY_LEVEL7                   (0x00000007UL) /* Level 7 */\r
+#define _SCIF_PRIORITY_LEVEL8                   (0x00000008UL) /* Level 8 */\r
+#define _SCIF_PRIORITY_LEVEL9                   (0x00000009UL) /* Level 9 */\r
+#define _SCIF_PRIORITY_LEVEL10                  (0x0000000AUL) /* Level 10 */\r
+#define _SCIF_PRIORITY_LEVEL11                  (0x0000000BUL) /* Level 11 */\r
+#define _SCIF_PRIORITY_LEVEL12                  (0x0000000CUL) /* Level 12 */\r
+#define _SCIF_PRIORITY_LEVEL13                  (0x0000000DUL) /* Level 13 */\r
+#define _SCIF_PRIORITY_LEVEL14                  (0x0000000EUL) /* Level 14 */\r
+#define _SCIF_PRIORITY_LEVEL15                  (0x0000000FUL) /* Level 15 */\r
+\r
+/* FIFO buffer maximum size */\r
+#define _SCIF_FIFO_MAX_SIZE                     (0x10U) /* Size of 16-stage FIFO buffer */\r
+\r
+/***********************************************************************************************************************\r
+Macro definitions\r
+***********************************************************************************************************************/\r
+#define _SCIF_1BIT_INTERVAL_2                (0x0619U)   /* Wait time for 1-bit interval */\r
+#define _SCIF_RX_TRIG_NUM_2                  (0x01U)   /* Receive FIFO data trigger number */\r
+\r
+/***********************************************************************************************************************\r
+Typedef definitions\r
+***********************************************************************************************************************/\r
+typedef enum\r
+{\r
+    OVERRUN_ERROR,\r
+    BREAK_DETECT,\r
+    RECEIVE_ERROR\r
+} scif_error_type_t;\r
+\r
+/***********************************************************************************************************************\r
+Global functions\r
+***********************************************************************************************************************/\r
+void R_SCIFA2_Create(void);\r
+void R_SCIFA2_Start(void);\r
+void R_SCIFA2_Stop(void);\r
+MD_STATUS R_SCIFA2_Serial_Send(const uint8_t * tx_buf, uint16_t tx_num);\r
+MD_STATUS R_SCIFA2_Serial_Receive(uint8_t * rx_buf, uint16_t rx_num);\r
+void r_scifa2_callback_transmitend(void);\r
+void r_scifa2_callback_receiveend(void);\r
+void r_scifa2_callback_error(scif_error_type_t error_type);\r
+\r
+/* Start user code for function. Do not edit comment generated here */\r
+\r
+/* Declared volatile to prevent it being optimised out in Release build mode */\r
+extern volatile uint8_t g_uart_in;\r
+\r
+/* End user code. Do not edit comment generated here */\r
+#endif\r
diff --git a/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa_user.c b/FreeRTOS/Demo/CORTEX_R4F_RZ_T_GCC_IAR/src/cg_src/r_cg_scifa_user.c
new file mode 100644 (file)
index 0000000..adde4d6
--- /dev/null
@@ -0,0 +1,497 @@
+/***********************************************************************************************************************\r
+* DISCLAIMER\r
+* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.\r
+* No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all\r
+* applicable laws, including copyright laws.\r
+* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED\r
+* OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+* NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY\r
+* LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,\r
+* INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR\r
+* ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
+* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability\r
+* of this software. By using this software, 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) 2015 Renesas Electronics Corporation. All rights reserved.\r
+***********************************************************************************************************************/\r
+\r
+/***********************************************************************************************************************\r
+* File Name    : r_cg_scifa_user.c\r
+* Version      : Code Generator for RZ/T1 V1.00.00.09 [02 Mar 2015]\r
+* Device(s)    : R7S910018CBG\r
+* Tool-Chain   : GCCARM\r
+* Description  : This file implements device driver for SCIF module.\r
+* Creation Date: 19/04/2015\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_scifa.h"\r
+/* Start user code for include. Do not edit comment generated here */\r
+#include "r_typedefs.h"\r
+#include "FreeRTOS.h"\r
+#include "task.h"\r
+#include "queue.h"\r
+#include "serial.h"\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
+extern const uint8_t * gp_scifa2_tx_address;   /* SCIFA2 send buffer address */\r
+extern uint16_t        g_scifa2_tx_count;      /* SCIFA2 send data number */\r
+extern uint8_t *       gp_scifa2_rx_address;   /* SCIFA2 receive buffer address */\r
+extern uint16_t        g_scifa2_rx_count;      /* SCIFA2 receive data number */\r
+extern uint16_t        g_scifa2_rx_length;     /* SCIFA2 receive data length */\r
+\r
+/* Start user code for global. Do not edit comment generated here */\r
+\r
+/* Characters received from the UART are stored in this queue, ready to be\r
+received by the application.  ***NOTE*** Using a queue in this way is very\r
+convenient, but also very inefficient.  It can be used here because characters\r
+will only arrive slowly.  In a higher bandwidth system a circular RAM buffer or\r
+DMA should be used in place of this queue. */\r
+static QueueHandle_t xRxQueue = NULL;\r
+\r
+/* When a task calls vSerialPutString() its handle is stored in xSendingTask,\r
+before being placed into the Blocked state (so does not use any CPU time) to\r
+wait for the transmission to end.  The task handle is then used from the UART\r
+transmit end interrupt to remove the task from the Blocked state. */\r
+static TaskHandle_t xSendingTask = NULL;\r
+\r
+/*\r
+ * Entry point for the handlers.  These set the pxISRFunction variable to point\r
+ * to the C handler for each timer, then branch to the FreeRTOS IRQ handler.\r
+ */\r
+#ifdef __GNUC__\r
+       void r_scifa2_txif2_interrupt_entry( void ) __attribute__((naked));\r
+       void r_scifa2_rxif2_interrupt_entry( void ) __attribute__((naked));\r
+       void r_scifa2_drif2_interrupt_entry( void ) __attribute__((naked));\r
+       void r_scifa2_brif2_interrupt_entry( void ) __attribute__((naked));\r
+#endif /* __GNUC__ */\r
+\r
+#ifdef __ICCARM__\r
+       /* IAR requires the entry point to be in an assembly file.  The functions\r
+       are     implemented in $PROJ_DIR$/System/IAR/Interrupt_Entry_Stubs.asm. */\r
+       extern void r_scifa2_txif2_interrupt_entry( void );\r
+       extern void r_scifa2_rxif2_interrupt_entry( void );\r
+       extern void r_scifa2_drif2_interrupt_entry( void );\r
+       extern void r_scifa2_brif2_interrupt_entry( void );\r
+#endif /* __ICCARM__ */\r
+\r
+\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_txif2_interrupt\r
+* Description  : This function is TXIF2 interrupt service routine.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_txif2_interrupt(void)\r
+{\r
+       uint16_t count = 0;\r
+\r
+       /* Get the amount of untransmitted data stored in the FRDR register */\r
+       uint16_t dummy_fdr = SCIFA2.FDR.BIT.T;\r
+\r
+       /* Write data to the transmit FIFO data register */\r
+       while ((g_scifa2_tx_count > 0U) && (count < _SCIF_FIFO_MAX_SIZE - dummy_fdr))\r
+       {\r
+               SCIFA2.FTDR = *gp_scifa2_tx_address;\r
+               gp_scifa2_tx_address++;\r
+               g_scifa2_tx_count--;\r
+               count++;\r
+       }\r
+\r
+       if (SCIFA2.FSR.BIT.TDFE == 1U)\r
+       {\r
+               SCIFA2.FSR.BIT.TDFE = 0U;\r
+       }\r
+\r
+       if (g_scifa2_tx_count <= 0U)\r
+       {\r
+               SCIFA2.SCR.BIT.TIE = 0U;\r
+               SCIFA2.SCR.BIT.TEIE = 1U;\r
+       }\r
+\r
+       /* Wait the interrupt signal is disabled */\r
+       while (0U != (VIC.IRQS3.LONG & 0x00008000UL))\r
+       {\r
+               VIC.IEC3.LONG = 0x00008000UL;\r
+       }\r
+\r
+       VIC.IEN3.LONG |= 0x00008000UL;\r
+\r
+       /* Dummy write */\r
+       VIC.HVA0.LONG = 0x00000000UL;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_rxif2_interrupt\r
+* Description  : This function is RXIF2 interrupt service routine.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_rxif2_interrupt(void)\r
+{\r
+       uint16_t count = 0;\r
+\r
+       /* Get the amount of receive data stored in FRDR register */\r
+       uint16_t dummy_fdr = SCIFA2.FDR.BIT.R;\r
+\r
+       /* Read data from the receive FIFO data register */\r
+       while ((g_scifa2_rx_length > g_scifa2_rx_count) && (count < dummy_fdr))\r
+       {\r
+               *gp_scifa2_rx_address = SCIFA2.FRDR;\r
+               gp_scifa2_rx_address++;\r
+               g_scifa2_rx_count++;\r
+               count++;\r
+       }\r
+\r
+       /* If remaining data is less than the receive trigger number, receive interrupt will not occur.\r
+          In this case, set trigger number to 1 to force receive interrupt for each one byte of data in FRDR */\r
+       if ((g_scifa2_rx_length - g_scifa2_rx_count < _SCIF_RX_TRIG_NUM_2) && (SCIFA2.FTCR.BIT.RFTC != 1U))\r
+       {\r
+               SCIFA2.FTCR.BIT.RFTC = 1U;\r
+       }\r
+\r
+       /* Clear receive FIFO data full flag */\r
+       if (SCIFA2.FSR.BIT.RDF == 1U)\r
+       {\r
+               SCIFA2.FSR.BIT.RDF = 0U;\r
+       }\r
+\r
+       if (g_scifa2_rx_length <= g_scifa2_rx_count)\r
+       {\r
+               /* All data received */\r
+               SCIFA2.SCR.BIT.RE = 0U;\r
+               r_scifa2_callback_receiveend();\r
+       }\r
+\r
+       /* Wait the interrupt signal is disabled */\r
+       while (0U != (VIC.IRQS3.LONG & 0x00004000UL))\r
+       {\r
+               VIC.IEC3.LONG = 0x00004000UL;\r
+       }\r
+\r
+       VIC.IEN3.LONG |= 0x00004000UL;\r
+\r
+       /* Dummy write */\r
+       VIC.HVA0.LONG = 0x00000000UL;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_drif2_interrupt\r
+* Description  : This function is TEIF 2 or DRIF2 interrupt service routine.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_drif2_interrupt(void)\r
+{\r
+       if (1U == SCIFA2.FSR.BIT.TEND)\r
+       {\r
+               SCIFA2.SPTR.BIT.SPB2DT = 0U;\r
+               SCIFA2.SPTR.BIT.SPB2IO = 1U;\r
+               SCIFA2.SCR.BIT.TE = 0U;\r
+               SCIFA2.SCR.BIT.TEIE = 0U;\r
+       }\r
+       r_scifa2_callback_transmitend();\r
+\r
+       /* Clear data ready detect flag */\r
+       if (1U == SCIFA2.FSR.BIT.DR)\r
+       {\r
+       /* Start user code. Do not edit comment generated here */\r
+       /* End user code. Do not edit comment generated here */\r
+               SCIFA2.FSR.BIT.DR = 0U;\r
+       }\r
+\r
+       /* Wait the interrupt signal is disabled */\r
+       while (0U != (VIC.IRQS3.LONG & 0x00010000UL))\r
+       {\r
+               VIC.IEC3.LONG = 0x00010000UL;\r
+       }\r
+\r
+       VIC.IEN3.LONG |= 0x00010000UL;\r
+\r
+       /* Dummy write */\r
+       VIC.HVA0.LONG = 0x00000000UL;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_brif2_interrupt\r
+* Description  : This function is BRIF2 or ERIF2 interrupt service routine.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_brif2_interrupt(void)\r
+{\r
+       if (1U == SCIFA2.FSR.BIT.BRK)\r
+       {\r
+               r_scifa2_callback_error(BREAK_DETECT);\r
+               /* Clear break detect flag */\r
+               SCIFA2.FSR.BIT.BRK = 0U;\r
+       }\r
+\r
+       if (1U == SCIFA2.FSR.BIT.ER)\r
+       {\r
+               r_scifa2_callback_error(RECEIVE_ERROR);\r
+               /* Clear receive error flag */\r
+               SCIFA2.FSR.BIT.ER = 0U;\r
+       }\r
+\r
+       if (1U == SCIFA2.LSR.BIT.ORER)\r
+       {\r
+               r_scifa2_callback_error(OVERRUN_ERROR);\r
+               /* Clear overrun error flag */\r
+               SCIFA2.LSR.BIT.ORER = 0U;\r
+       }\r
+\r
+       /* Wait the interrupt signal is disabled */\r
+       while (0U != (VIC.IRQS3.LONG & 0x00002000UL))\r
+       {\r
+               VIC.IEC3.LONG = 0x00002000UL;\r
+       }\r
+\r
+       VIC.IEN3.LONG |= 0x00002000UL;\r
+\r
+       /* Dummy write */\r
+       VIC.HVA0.LONG = 0x00000000UL;\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_callback_transmitend\r
+* Description  : This function is a callback function when SCIFA2 finishes transmission.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_callback_transmitend(void)\r
+{\r
+       /* Start user code. Do not edit comment generated here */\r
+       BaseType_t xHigherPriorityTaskWoken = pdFALSE;\r
+\r
+       if( xSendingTask != NULL )\r
+       {\r
+               /* A task is waiting for the end of the Tx, unblock it now.\r
+               http://www.freertos.org/vTaskNotifyGiveFromISR.html */\r
+               vTaskNotifyGiveFromISR( xSendingTask, &xHigherPriorityTaskWoken );\r
+               xSendingTask = NULL;\r
+\r
+               portYIELD_FROM_ISR( xHigherPriorityTaskWoken );\r
+       }\r
+\r
+       /* End user code. Do not edit comment generated here */\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_callback_receiveend\r
+* Description  : This function is a callback function when SCIFA2 finishes reception.\r
+* Arguments    : None\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_callback_receiveend(void)\r
+{\r
+       /* Start user code. Do not edit comment generated here */\r
+       uint8_t ucRxedChar = 0;\r
+       BaseType_t xHigherPriorityTaskWoken = pdFALSE;\r
+\r
+       /* Read the received data */\r
+       ucRxedChar = SCIFA2.FRDR;\r
+\r
+       /* Characters received from the UART are stored in this queue, ready to be\r
+       received by the application.  ***NOTE*** Using a queue in this way is very\r
+       convenient, but also very inefficient.  It can be used here because\r
+       characters will only arrive slowly.  In a higher bandwidth system a circular\r
+       RAM buffer or DMA should be used in place of this queue. */\r
+       xQueueSendFromISR( xRxQueue, ( void * ) &ucRxedChar, &xHigherPriorityTaskWoken );\r
+\r
+       /* Re-enable receptions */\r
+       SCIFA2.SCR.BIT.RE = 1U;\r
+\r
+       /* End user code. Do not edit comment generated here */\r
+}\r
+/***********************************************************************************************************************\r
+* Function Name: r_scifa2_callback_error\r
+* Description  : This function is a callback function when SCIFA2 reception encounters error.\r
+* Arguments    : error_type -\r
+*                    reception error type\r
+* Return Value : None\r
+***********************************************************************************************************************/\r
+void r_scifa2_callback_error(scif_error_type_t error_type)\r
+{\r
+       /* Start user code. Do not edit comment generated here */\r
+\r
+       /* Used to suppress the warning message generated for unused variables */\r
+       UNUSED_PARAM(error_type);\r
+\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
+\r
+/* Function required in order to link UARTCommandConsole.c - which is used by\r
+multiple different demo application. */\r
+xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
+{\r
+       ( void ) ulWantedBaud;\r
+       ( void ) uxQueueLength;\r
+\r
+       /* Characters received from the UART are stored in this queue, ready to be\r
+       received by the application.  ***NOTE*** Using a queue in this way is very\r
+       convenient, but also very inefficient.  It can be used here because\r
+       characters will only arrive slowly.  In a higher bandwidth system a circular\r
+       RAM buffer or DMA should be used in place of this queue. */\r
+       xRxQueue = xQueueCreate( uxQueueLength, sizeof( char ) );\r
+       configASSERT( xRxQueue );\r
+\r
+       /* Enable the receive. */\r
+       SCIFA2.FTCR.BIT.RFTC = _SCIF_RX_TRIG_NUM_2;\r
+\r
+       SCIFA2.SCR.BIT.RE = 1U;\r
+       SCIFA2.SCR.BIT.RIE = 1U;\r
+       SCIFA2.SCR.BIT.REIE = 1U;\r
+\r
+       /* Enable SCI1 operations */\r
+       R_SCIFA2_Start();\r
+\r
+       /* Only one UART is supported, so it doesn't matter what is returned\r
+       here. */\r
+       return 0;\r
+}\r
+\r
+/* Function required in order to link UARTCommandConsole.c - which is used by\r
+multiple different demo application. */\r
+void vSerialPutString( xComPortHandle pxPort, const signed char * const pcString, unsigned short usStringLength )\r
+{\r
+const TickType_t xMaxBlockTime = pdMS_TO_TICKS( 5000 );\r
+\r
+       /* Only one port is supported. */\r
+       ( void ) pxPort;\r
+\r
+       /* Don't send the string unless the previous string has been sent. */\r
+       if( xSendingTask == NULL )\r
+       {\r
+               /* Ensure the calling task's notification state is not already\r
+               pending. */\r
+               vTaskNotifyStateClear( NULL );\r
+\r
+               /* Store the handle of the transmitting task.  This is used to unblock\r
+               the task when the transmission has completed. */\r
+               xSendingTask = xTaskGetCurrentTaskHandle();\r
+\r
+               /* Send the string using the auto-generated API. */\r
+               R_SCIFA2_Serial_Send( ( uint8_t * ) pcString, usStringLength );\r
+\r
+               /* Wait in the Blocked state (so not using any CPU time) until the\r
+               transmission has completed. */\r
+               ulTaskNotifyTake( pdTRUE, xMaxBlockTime );\r
+       }\r
+}\r
+\r
+/* Function required in order to link UARTCommandConsole.c - which is used by\r
+multiple different demo application. */\r
+signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )\r
+{\r
+       /* Only one UART is supported. */\r
+       ( void ) pxPort;\r
+\r
+       /* Return a received character, if any are available.  Otherwise block to\r
+       wait for a character. */\r
+       return xQueueReceive( xRxQueue, pcRxedChar, xBlockTime );\r
+}\r
+\r
+/* Function required in order to link UARTCommandConsole.c - which is used by\r
+multiple different demo application. */\r
+signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )\r
+{\r
+       /* Just mapped to vSerialPutString() so the block time is not used. */\r
+       ( void ) xBlockTime;\r
+\r
+       vSerialPutString( pxPort, &cOutChar, sizeof( cOutChar ) );\r
+       return pdPASS;\r
+}\r
+/* End user code. Do not edit comment generated here */\r
+\r
+/*\r
+ * The RZ/T vectors directly to a peripheral specific interrupt handler, rather\r
+ * than using the Cortex-R IRQ vector.  Therefore each interrupt handler\r
+ * installed by the application must follow the examples below, which save a\r
+ * pointer to a standard C function in the pxISRFunction variable, before\r
+ * branching to the FreeRTOS IRQ handler.  The FreeRTOS IRQ handler then manages\r
+ * interrupt entry (including interrupt nesting), before calling the C function\r
+ * saved in the pxISRFunction variable.  NOTE:  The entry points are naked\r
+ * functions - do not add C code to these functions.\r
+ */\r
+#ifdef __GNUC__\r
+       /* The IAR equivalent is implemented in\r
+       $PROJ_DIR$/System/IAR/Interrupt_Entry_Stubs.asm */\r
+       void r_scifa2_txif2_interrupt_entry( void )\r
+       {\r
+               __asm volatile (                                                                                                                \\r
+                                                       "PUSH   {r0-r1}                                                         \t\n"   \\r
+                                                       "LDR    r0, =pxISRFunction                                      \t\n"   \\r
+                                                       "LDR    r1, =r_scifa2_txif2_interrupt           \t\n"   \\r
+                                                       "STR    r1, [r0]                                                        \t\n"   \\r
+                                                       "POP    {r0-r1}                                                         \t\n"   \\r
+                                                       "B              FreeRTOS_IRQ_Handler                                    "\r
+                                               );\r
+       }\r
+#endif /* __GNUC__ */\r
+/*-----------------------------------------------------------*/\r
+\r
+#ifdef __GNUC__\r
+       /* The IAR equivalent is implemented in\r
+       $PROJ_DIR$/System/IAR/Interrupt_Entry_Stubs.asm */\r
+       void r_scifa2_rxif2_interrupt_entry( void )\r
+       {\r
+               __asm volatile (                                                                                                                \\r
+                                                       "PUSH   {r0-r1}                                                         \t\n"   \\r
+                                                       "LDR    r0, =pxISRFunction                                      \t\n"   \\r
+                                                       "LDR    r1, =r_scifa2_rxif2_interrupt           \t\n"   \\r
+                                                       "STR    r1, [r0]                                                        \t\n"   \\r
+                                                       "POP    {r0-r1}                                                         \t\n"   \\r
+                                                       "B              FreeRTOS_IRQ_Handler                                    "\r
+                                               );\r
+       }\r
+#endif /* __GNUC__ */\r
+/*-----------------------------------------------------------*/\r
+\r
+#ifdef __GNUC__\r
+       /* The IAR equivalent is implemented in\r
+       $PROJ_DIR$/System/IAR/Interrupt_Entry_Stubs.asm */\r
+       void r_scifa2_drif2_interrupt_entry( void )\r
+       {\r
+               __asm volatile (                                                                                                                \\r
+                                                       "PUSH   {r0-r1}                                                         \t\n"   \\r
+                                                       "LDR    r0, =pxISRFunction                                      \t\n"   \\r
+                                                       "LDR    r1, =r_scifa2_drif2_interrupt           \t\n"   \\r
+                                                       "STR    r1, [r0]                                                        \t\n"   \\r
+                                                       "POP    {r0-r1}                                                         \t\n"   \\r
+                                                       "B              FreeRTOS_IRQ_Handler                                    "\r
+                                               );\r
+       }\r
+#endif /* __GNUC__ */\r
+/*-----------------------------------------------------------*/\r
+\r
+#ifdef __GNUC__\r
+       /* The IAR equivalent is implemented in\r
+       $PROJ_DIR$/System/IAR/Interrupt_Entry_Stubs.asm */\r
+       void r_scifa2_brif2_interrupt_entry( void )\r
+       {\r
+               __asm volatile (                                                                                                                \\r
+                                                       "PUSH   {r0-r1}                                                         \t\n"   \\r
+                                                       "LDR    r0, =pxISRFunction                                      \t\n"   \\r
+                                                       "LDR    r1, =r_scifa2_brif2_interrupt           \t\n"   \\r
+                                                       "STR    r1, [r0]                                                        \t\n"   \\r
+                                                       "POP    {r0-r1}                                                         \t\n"   \\r
+                                                       "B              FreeRTOS_IRQ_Handler                                    "\r
+                                               );\r
+       }\r
+#endif /* __GNUC__ */\r
+/*-----------------------------------------------------------*/\r
index 996abb8bb01acae8a452c3d44b00388cb35a5147..ed60be8b61f41c78c3bf1f8d231aa60c315e2227 100644 (file)
@@ -2,15 +2,15 @@
 * DISCLAIMER\r
 * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.\r
 * No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all\r
-* applicable laws, including copyright laws. \r
+* applicable laws, including copyright laws.\r
 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED\r
 * OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
 * NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY\r
 * LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,\r
 * INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR\r
 * ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
-* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability \r
-* of this software. By using this software, you agree to the additional terms and conditions found by accessing the \r
+* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability\r
+* of this software. By using this software, you agree to the additional terms and conditions found by accessing the\r
 * following link:\r
 * http://www.renesas.com/disclaimer\r
 *\r
@@ -42,6 +42,7 @@ Includes
 #include "r_cg_tpu.h"\r
 #include "r_cg_rspi.h"\r
 #include "r_cg_mpc.h"\r
+#include "r_cg_scifa.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
@@ -66,7 +67,7 @@ void R_Systeminit(void)
     DI();\r
 \r
     /* Enable writing to registers related to operating modes, LPC, CGC and ATCM */\r
-    SYSTEM.PRCR.LONG = 0x0000A50BU; \r
+    SYSTEM.PRCR.LONG = 0x0000A50BU;\r
 \r
     /* Enable writing to MPC pin function control registers */\r
     MPC.PWPR.BIT.B0WI = 0U;\r
@@ -81,10 +82,11 @@ void R_Systeminit(void)
     R_TPU_Create();\r
     R_RSPI1_Create();\r
     R_MPC_Create();\r
+       R_SCIFA2_Create();\r
 \r
     /* Disable writing to MPC pin function control registers */\r
-    MPC.PWPR.BIT.PFSWE = 0U;    \r
-    MPC.PWPR.BIT.B0WI = 1U;     \r
+    MPC.PWPR.BIT.PFSWE = 0U;\r
+    MPC.PWPR.BIT.B0WI = 1U;\r
 \r
     /* Enable protection */\r
     SYSTEM.PRCR.LONG = 0x0000A500U;\r
index 730e617a594a3ddecebef8a37e88b65831e074dd..92006388a9dbbc0f8d7baf0d0efdd2f239fe3e8f 100644 (file)
@@ -114,11 +114,6 @@ or 0 to run the more comprehensive test and demo application. */
  */\r
 static void prvClearBSS( void );\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
@@ -136,10 +131,6 @@ void vApplicationIdleHook( void );
 void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName );\r
 void vApplicationTickHook( void );\r
 \r
-/* Prototype for the IRQ handler called by the generic Cortex-A5 RTOS port\r
-layer. */\r
-void vApplicationIRQHandler( void );\r
-\r
 /* Library initialisation. */\r
 extern void R_Systeminit( void );\r
 \r
@@ -153,7 +144,7 @@ int main( void )
        prvClearBSS();\r
 \r
        /* Configure the hardware ready to run the demo. */\r
-       prvSetupHardware();\r
+       R_Systeminit();\r
 \r
        /* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top\r
        of this file. */\r
@@ -171,12 +162,6 @@ int main( void )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvSetupHardware( void )\r
-{\r
-       R_Systeminit();\r
-}\r
-/*-----------------------------------------------------------*/\r
-\r
 void vApplicationMallocFailedHook( void )\r
 {\r
        /* Called if a call to pvPortMalloc() fails because there is insufficient\r
index 86cc4264fa8bee63634589ecd4041aa09f4c7eef..74007266530380b951cf377c14597ec7a3a3c0ef 100644 (file)
@@ -262,7 +262,7 @@ volatile unsigned portBASE_TYPE uxUnusedStack;
                ulTicksToWait = mainERROR_PERIOD;\r
                }\r
 \r
-               /* Toggle the LED each itteration. */\r
+               /* Toggle the LED each iteration. */\r
                vParTestToggleLED( mainCHECK_LED );\r
 \r
                /* For demo only - how much unused stack does this task have? */\r
index 3a4d94c5d42f9b8933fe37d0c5d244d8d2f54567..3a9f06d88c7442c2ddd4c7a42458f50ec9986d64 100644 (file)
@@ -280,7 +280,7 @@ TickType_t xLastExecutionTime;
                ulTicksToWait = mainERROR_PERIOD;\r
                }\r
 \r
-               /* Toggle the LED each itteration. */\r
+               /* Toggle the LED each iteration. */\r
                vParTestToggleLED( mainCHECK_LED );\r
        }\r
 }\r
index c502cfd801e4a1877146d1d80458b116c3ad58fe..d1f2a6ca3c6838b10ed6f0f189e4ec0d0e8e8594 100644 (file)
@@ -288,7 +288,7 @@ TickType_t xLastExecutionTime;
                ulTicksToWait = mainERROR_PERIOD;\r
                }\r
 \r
-               /* Toggle the LED each itteration. */\r
+               /* Toggle the LED each iteration. */\r
                vParTestToggleLED( mainCHECK_LED );\r
        }\r
 }\r
index bf4045202258caa80d1c2ed4338bfc5dcf4d7a37..85aaa3647e9ad928b3fe22a952116a3e24bd5f58 100644 (file)
@@ -3,7 +3,7 @@
        <configuration id="%com.renesas.cdt.rx.hardwaredebug.win32.configuration.Id.485661513" name="HardwareDebug">\r
                <extension point="org.eclipse.cdt.core.LanguageSettingsProvider">\r
                        <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>\r
-                       <provider class="com.renesas.cdt.common.build.spec.RXGCCBuiltinSpecsDetector" console="false" env-hash="-83633861543855079" id="RXGCCBuiltinSpecsDetector" keep-relative-paths="false" name="Renesas GCCBuildinCompilerSettings" options-hash="-645709713" parameter="rx-elf-gcc -E -P -v -dD ${INPUTS}" prefer-non-shared="true">\r
+                       <provider class="com.renesas.cdt.common.build.spec.RXGCCBuiltinSpecsDetector" console="false" env-hash="738196985922260309" id="RXGCCBuiltinSpecsDetector" keep-relative-paths="false" name="Renesas GCCBuildinCompilerSettings" options-hash="-645709713" parameter="rx-elf-gcc -E -P -v -dD ${INPUTS}" prefer-non-shared="true">\r
                                <language-scope id="org.eclipse.cdt.core.gcc"/>\r
                                <language-scope id="org.eclipse.cdt.core.g++"/>\r
                        </provider>\r
index 0d8d1e4cfb470d8ff2e915656e971b279f5aa509..eca1d5ca7c9e8143d84f34f7e2962fa3f49fbeb9 100644 (file)
@@ -92,7 +92,7 @@ _vRegTest1Implementation:
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -177,7 +177,7 @@ _vRegTest2Implementation:
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index ee7e6f81f7e9516672254ad6676a864aac2183ff..b3bce5c28d78ed40964e3743bd063fb21b893683 100644 (file)
                                                                </option>\r
                                                                <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.isa.891020448" name="Instruction set architecture" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.isa" value="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.isa.rxv1" valueType="enumerated"/>\r
                                                                <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.floatIns.887015730" name="Use floating point arithmetic instructions" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.floatIns" value="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.floatIns.enable" valueType="enumerated"/>\r
-                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel.964108751" 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
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel.964108751" name="Optimize level" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel" value="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizeLevel.max" valueType="enumerated"/>\r
                                                                <option defaultValue="true" id="com.renesas.cdt.renesas.Compiler.option.GenDebugInfo.159226508" name="Generate debug information" superClass="com.renesas.cdt.renesas.Compiler.option.GenDebugInfo" value="true" valueType="boolean"/>\r
                                                                <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.stuffD.189152785" name="Allocates initialized variables to 4-byte boundary alignment sections" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.stuffD" value="false" valueType="boolean"/>\r
+                                                               <option id="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizationType.2131923502" superClass="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizationType" value="com.renesas.cdt.rxc.HardwareDebug.Compiler.option.optimizationType.speed" valueType="enumerated"/>\r
                                                                <inputType id="%Base.Compiler.Shc.C.Input.Id.1411777144" name="C Input" superClass="%Base.Compiler.Shc.C.Input.Id"/>\r
                                                                <inputType id="%Base.Compiler.Shc.C.Input1.Id.1988726590" name="C++ Input" superClass="%Base.Compiler.Shc.C.Input1.Id"/>\r
                                                        </tool>\r
index ce18a17890eaa75206f4496acbea78860d3e06ee..5b3e7eced959a52869300b918c9611902be110ed 100644 (file)
@@ -520,7 +520,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -607,7 +607,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index d43c1809c252627be9a346f6a95d8448ad1544fb..3650e12e553298d0720bc66f5c8afbbdb7d7e79e 100644 (file)
@@ -524,7 +524,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -611,7 +611,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index 0d8d1e4cfb470d8ff2e915656e971b279f5aa509..eca1d5ca7c9e8143d84f34f7e2962fa3f49fbeb9 100644 (file)
@@ -92,7 +92,7 @@ _vRegTest1Implementation:
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -177,7 +177,7 @@ _vRegTest2Implementation:
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index af07b4bf05989fd1f8b7d9a0afe837dbb51f8360..b61ecb1674a7764d0fb2c1675026c03d642bec91 100644 (file)
@@ -106,7 +106,7 @@ _vRegTest1Implementation:
        MVTACLO R2, A0\r
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -223,7 +223,7 @@ _vRegTest2Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop2:                                                             \r
 \r
index 3a879d48e6a5123aea3f3ffbae4397d3873cfb12..ef637c35a817497fdb073dcfc2611e0c640d3dc8 100644 (file)
@@ -522,7 +522,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -609,7 +609,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index 08ff29807ac1dced59cea8104998713fd3a5d708..b0f506d97185ec3520882faa018fcf241b66eb7e 100644 (file)
@@ -539,7 +539,7 @@ static void prvRegTest1Implementation( void )
                        "MOV    #14, R14                                        \n" \\r
                        "MOV    #15, R15                                        \n" \\r
                        \r
-                       /* Loop, checking each itteration that each register still contains the\r
+                       /* Loop, checking each iteration that each register still contains the\r
                        expected value. */\r
                "TestLoop1:                                                             \n" \\r
 \r
@@ -628,7 +628,7 @@ static void prvRegTest2Implementation( void )
                        "MOV    #140H, R14                                      \n" \\r
                        "MOV    #150H, R15                                      \n" \\r
                        \r
-                       /* Loop, checking each itteration that each register still contains the\r
+                       /* Loop, checking each iteration that each register still contains the\r
                        expected value. */\r
                "TestLoop2:                                                             \n" \\r
 \r
index 4f9a3eea91f644214b90c6fd46b7a2a5e10a0f10..bc0eb478d2681f19c8dbf4f13e5ee4a946decc62 100644 (file)
@@ -95,7 +95,7 @@ _prvRegTest1Implementation:
        MOV     #14, R14                                        \r
        MOV     #15, R15                                        \r
        \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -180,7 +180,7 @@ _prvRegTest2Implementation:
        MOV     #140H, R14                                      \r
        MOV     #150H, R15                                      \r
        \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop2:                                                             \r
 \r
index 5a6d5e86fbefd1a5220c13f0c0015c8a67777183..219a52da9ac19a4d192ec56ee961c7e61906ff1c 100644 (file)
@@ -525,7 +525,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -612,7 +612,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index 08ff29807ac1dced59cea8104998713fd3a5d708..b0f506d97185ec3520882faa018fcf241b66eb7e 100644 (file)
@@ -539,7 +539,7 @@ static void prvRegTest1Implementation( void )
                        "MOV    #14, R14                                        \n" \\r
                        "MOV    #15, R15                                        \n" \\r
                        \r
-                       /* Loop, checking each itteration that each register still contains the\r
+                       /* Loop, checking each iteration that each register still contains the\r
                        expected value. */\r
                "TestLoop1:                                                             \n" \\r
 \r
@@ -628,7 +628,7 @@ static void prvRegTest2Implementation( void )
                        "MOV    #140H, R14                                      \n" \\r
                        "MOV    #150H, R15                                      \n" \\r
                        \r
-                       /* Loop, checking each itteration that each register still contains the\r
+                       /* Loop, checking each iteration that each register still contains the\r
                        expected value. */\r
                "TestLoop2:                                                             \n" \\r
 \r
index 4f9a3eea91f644214b90c6fd46b7a2a5e10a0f10..bc0eb478d2681f19c8dbf4f13e5ee4a946decc62 100644 (file)
@@ -95,7 +95,7 @@ _prvRegTest1Implementation:
        MOV     #14, R14                                        \r
        MOV     #15, R15                                        \r
        \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -180,7 +180,7 @@ _prvRegTest2Implementation:
        MOV     #140H, R14                                      \r
        MOV     #150H, R15                                      \r
        \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop2:                                                             \r
 \r
index 9232b7425f5f3f61e15ef1338a7bc114c75f7e34..29c2f9ca3ad81fc9f79acca7dc48ffc05cef2688 100644 (file)
@@ -525,7 +525,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -612,7 +612,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index 73c01e630f3c0fe333bdf5ba36a8aed56b8e824d..8ecb8a2689edfbcf185ad1e0144f413b987e43c5 100644 (file)
@@ -519,7 +519,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -606,7 +606,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index f5db0e821e1de344cfcd00ff8aed2d1ee3b0611d..ea04c06f6d7de5ce705bab15735908b22c8d5147 100644 (file)
@@ -557,7 +557,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -644,7 +644,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index be5848d7db378f7e1bdab8cd00ab824cc7210348..55b775cd179ca2f1bbdc87155422fd8b943064f0 100644 (file)
@@ -565,7 +565,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -652,7 +652,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r
index 31007973860ff07da85a660b8f21c542e99b4f19..952ddee8cdfc20b2f7ec737ecb03365295df1dba 100644 (file)
@@ -104,7 +104,7 @@ _vRegTest1Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       ;/* Loop, checking each itteration that each register still contains the\r
+       ;/* Loop, checking each iteration that each register still contains the\r
        ;expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -221,7 +221,7 @@ _vRegTest2Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       ;/* Loop, checking each itteration that each register still contains the\r
+       ;/* Loop, checking each iteration that each register still contains the\r
        ;expected value. */\r
 TestLoop2:                                                             \r
 \r
index 60eed56b1be9ae935c8195c6e062bb0b871c4d00..3caedc08f49e3afdd0c3aa31460c23c8fe069d31 100644 (file)
@@ -104,7 +104,7 @@ _vRegTest1Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       ;/* Loop, checking each itteration that each register still contains the\r
+       ;/* Loop, checking each iteration that each register still contains the\r
        ;expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -221,7 +221,7 @@ _vRegTest2Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       ;/* Loop, checking each itteration that each register still contains the\r
+       ;/* Loop, checking each iteration that each register still contains the\r
        ;expected value. */\r
 TestLoop2:                                                             \r
 \r
index 31007973860ff07da85a660b8f21c542e99b4f19..952ddee8cdfc20b2f7ec737ecb03365295df1dba 100644 (file)
@@ -104,7 +104,7 @@ _vRegTest1Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       ;/* Loop, checking each itteration that each register still contains the\r
+       ;/* Loop, checking each iteration that each register still contains the\r
        ;expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -221,7 +221,7 @@ _vRegTest2Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       ;/* Loop, checking each itteration that each register still contains the\r
+       ;/* Loop, checking each iteration that each register still contains the\r
        ;expected value. */\r
 TestLoop2:                                                             \r
 \r
index af07b4bf05989fd1f8b7d9a0afe837dbb51f8360..b61ecb1674a7764d0fb2c1675026c03d642bec91 100644 (file)
@@ -106,7 +106,7 @@ _vRegTest1Implementation:
        MVTACLO R2, A0\r
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop1:                                                             \r
 \r
@@ -223,7 +223,7 @@ _vRegTest2Implementation:
        MVTACHI R3, A1\r
        MVTACLO R4, A1\r
 \r
-       /* Loop, checking each itteration that each register still contains the\r
+       /* Loop, checking each iteration that each register still contains the\r
        expected value. */\r
 TestLoop2:                                                             \r
 \r
index 5aa053cdfe93031db2e4b339f9b3102c46dbfd65..50d2cc81c904ec3c1ed61e914751efcbdc407342 100644 (file)
@@ -524,7 +524,7 @@ static void prvRegTest1Implementation( void )
        MOV.L   #14, R14\r
        MOV.L   #15, R15\r
 \r
-       ; Loop, checking each itteration that each register still contains the\r
+       ; Loop, checking each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop1:\r
 \r
@@ -611,7 +611,7 @@ static void prvRegTest2Implementation( void )
        MOV.L   #140, R14\r
        MOV.L   #150, R15\r
 \r
-       ; Loop, checking on each itteration that each register still contains the\r
+       ; Loop, checking on each iteration that each register still contains the\r
        ; expected value.\r
 TestLoop2:\r
 \r