summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo
diff options
context:
space:
mode:
authorRichard Barry <ribarry@amazon.com>2013-12-30 19:32:29 +0000
committerRichard Barry <ribarry@amazon.com>2013-12-30 19:32:29 +0000
commit38e7554138703686b0dc304a859a32ed24292801 (patch)
treefd708961dfeda30d62bf888b1f90f5b1e37099d4 /FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo
parent31609c7c3e75b0d896449ddadca2899e6de7af76 (diff)
downloadfreertos-git-38e7554138703686b0dc304a859a32ed24292801.tar.gz
Update FreeRTOS+ more demos that use FreeRTOS+CLI to remove casting to int8_t * from strings.
Diffstat (limited to 'FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo')
-rw-r--r--FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-releated-CLI-commands.c12
-rw-r--r--FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-system-demo.c8
-rw-r--r--FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/Sample-CLI-commands.c4
3 files changed, 12 insertions, 12 deletions
diff --git a/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-releated-CLI-commands.c b/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-releated-CLI-commands.c
index a902846c3..faf456af7 100644
--- a/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-releated-CLI-commands.c
+++ b/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-releated-CLI-commands.c
@@ -244,7 +244,7 @@ size_t xColumns = 50U;
configASSERT( pcParameter );
/* Attempt to open the requested file. */
- pxFile = f_open( ( const char * ) pcParameter, "r" );
+ pxFile = f_open( pcParameter, "r" );
}
if( pxFile != NULL )
@@ -406,7 +406,7 @@ unsigned char ucReturned;
configASSERT( pcParameter );
/* Attempt to delete the file. */
- ucReturned = f_delete( ( const char * ) pcParameter );
+ ucReturned = f_delete( pcParameter );
if( ucReturned == F_NO_ERROR )
{
@@ -455,7 +455,7 @@ long lSourceLength, lDestinationLength = 0;
pcSourceFile[ xParameterStringLength ] = 0x00;
/* See if the source file exists, obtain its length if it does. */
- lSourceLength = f_filelength( ( const char * ) pcSourceFile );
+ lSourceLength = f_filelength( pcSourceFile );
if( lSourceLength == 0 )
{
@@ -464,7 +464,7 @@ long lSourceLength, lDestinationLength = 0;
else
{
/* See if the destination file exists. */
- lDestinationLength = f_filelength( ( const char * ) pcDestinationFile );
+ lDestinationLength = f_filelength( pcDestinationFile );
if( lDestinationLength != 0 )
{
@@ -523,7 +523,7 @@ portBASE_TYPE xReturn = pdPASS;
/* Open the source file, seek past the data that has already been
read from the file, read the next block of data, then close the
file again so the destination file can be opened. */
- pxFile = f_open( ( const char * ) pcSourceFile, "r" );
+ pxFile = f_open( pcSourceFile, "r" );
if( pxFile != NULL )
{
f_seek( pxFile, lBytesRead, F_SEEK_SET );
@@ -538,7 +538,7 @@ portBASE_TYPE xReturn = pdPASS;
/* Open the destination file and write the block of data to the end of
the file. */
- pxFile = f_open( ( const char * ) pcDestinationFile, "a" );
+ pxFile = f_open( pcDestinationFile, "a" );
if( pxFile != NULL )
{
f_write( pxWriteBuffer, lBytesToRead, 1, pxFile );
diff --git a/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-system-demo.c b/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-system-demo.c
index e42fd1551..e0606f23d 100644
--- a/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-system-demo.c
+++ b/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/File-system-demo.c
@@ -1,5 +1,5 @@
/*
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
@@ -302,7 +302,7 @@ char cFileName[ fsMAX_FILE_NAME_LEN ];
/* Obtain and print out the working directory. */
f_getcwd( cRAMBuffer, fsRAM_BUFFER_SIZE );
printf( "In directory %s\r\n", cRAMBuffer );
- configASSERT( strcmp( ( const char * ) cRAMBuffer, pcFullPath ) == 0 );
+ configASSERT( strcmp( cRAMBuffer, pcFullPath ) == 0 );
/* Generate the file name. */
sprintf( cFileName, "%s.txt", pcDirectory2 );
@@ -331,7 +331,7 @@ char cFileName[ fsMAX_FILE_NAME_LEN ];
/* Obtain and print out the working directory. */
f_getcwd( cRAMBuffer, fsRAM_BUFFER_SIZE );
printf( "Back in root directory %s\r\n", cRAMBuffer );
- configASSERT( strcmp( ( const char * ) cRAMBuffer, pcRoot ) == 0 );
+ configASSERT( strcmp( cRAMBuffer, pcRoot ) == 0 );
}
/*-----------------------------------------------------------*/
@@ -349,7 +349,7 @@ char cFileName[ fsMAX_FILE_NAME_LEN ];
/* Obtain and print out the working directory. */
f_getcwd( cRAMBuffer, fsRAM_BUFFER_SIZE );
printf( "Back in directory %s\r\n", cRAMBuffer );
- configASSERT( strcmp( ( const char * ) cRAMBuffer, pcFullPath ) == 0 );
+ configASSERT( strcmp( cRAMBuffer, pcFullPath ) == 0 );
/* Generate the file name. */
sprintf( cFileName, "%s.txt", pcDirectory2 );
diff --git a/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/Sample-CLI-commands.c b/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/Sample-CLI-commands.c
index 32d56895e..7bae71bec 100644
--- a/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/Sample-CLI-commands.c
+++ b/FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/Sample-CLI-commands.c
@@ -405,7 +405,7 @@ static portBASE_TYPE lParameterNumber = 0;
configASSERT( pcParameter );
/* There are only two valid parameter values. */
- if( strncmp( ( const char * ) pcParameter, "start", strlen( "start" ) ) == 0 )
+ if( strncmp( pcParameter, "start", strlen( "start" ) ) == 0 )
{
/* Start or restart the trace. */
vTraceStop();
@@ -414,7 +414,7 @@ static portBASE_TYPE lParameterNumber = 0;
sprintf( pcWriteBuffer, "Trace recording (re)started.\r\n" );
}
- else if( strncmp( ( const char * ) pcParameter, "stop", strlen( "stop" ) ) == 0 )
+ else if( strncmp( pcParameter, "stop", strlen( "stop" ) ) == 0 )
{
/* End the trace, if one is running. */
vTraceStop();