summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas
diff options
context:
space:
mode:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-12-27 14:43:48 +0000
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-12-27 14:43:48 +0000
commit2495829d0db7359332a66216e020282ee802c806 (patch)
treeb2f741012a673c062e870239df3a250291325e31 /FreeRTOS/Demo/RX600_RX62N-RSK_Renesas
parent0f14bb40b9a1dad50708f43d35283e7093e9fa04 (diff)
downloadfreertos-2495829d0db7359332a66216e020282ee802c806.tar.gz
Start to remove unnecessary 'signed char *' casts from strings that are now just plain char * types.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2143 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Demo/RX600_RX62N-RSK_Renesas')
-rw-r--r--FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/uIP_Task.c24
-rw-r--r--FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c14
2 files changed, 19 insertions, 19 deletions
diff --git a/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/uIP_Task.c b/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/uIP_Task.c
index 5af9ca973..94f1682a2 100644
--- a/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/uIP_Task.c
+++ b/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/uIP_Task.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
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
@@ -111,7 +111,7 @@ constants are assigned to the timer IDs. */
static void prvSetMACAddress( void );
/*
- * Perform any uIP initialisation necessary.
+ * Perform any uIP initialisation necessary.
*/
static void prvInitialise_uIP( void );
@@ -146,7 +146,7 @@ unsigned long ulNewEvent = 0UL;
unsigned long ulUIP_Events = 0UL;
( void ) pvParameters;
-
+
/* Initialise the uIP stack. */
prvInitialise_uIP();
@@ -161,10 +161,10 @@ unsigned long ulUIP_Events = 0UL;
for( ;; )
{
if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )
- {
+ {
/* Is there received data ready to be processed? */
uip_len = ( unsigned short ) ulEMACRead();
-
+
if( ( uip_len > 0 ) && ( uip_buf != NULL ) )
{
/* Standard uIP loop taken from the uIP manual. */
@@ -200,11 +200,11 @@ unsigned long ulUIP_Events = 0UL;
ulUIP_Events &= ~uipETHERNET_RX_EVENT;
}
}
-
+
if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )
{
ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;
-
+
for( i = 0; i < UIP_CONNS; i++ )
{
uip_periodic( i );
@@ -219,14 +219,14 @@ unsigned long ulUIP_Events = 0UL;
}
}
}
-
+
/* Call the ARP timer function every 10 seconds. */
if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )
{
ulUIP_Events &= ~uipARP_TIMER_EVENT;
uip_arp_timer();
}
-
+
if( ulUIP_Events == pdFALSE )
{
xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );
@@ -255,14 +255,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );
/* Create and start the uIP timers. */
- xARPTimer = xTimerCreate( ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */
+ xARPTimer = xTimerCreate( "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */
( 10000UL / portTICK_RATE_MS ), /* Timer period. */
pdTRUE, /* Autor-reload. */
( void * ) uipARP_TIMER,
prvUIPTimerCallback
);
- xPeriodicTimer = xTimerCreate( ( const signed char * const ) "PeriodicTimer",
+ xPeriodicTimer = xTimerCreate( "PeriodicTimer",
( 50 / portTICK_RATE_MS ),
pdTRUE, /* Autor-reload. */
( void * ) uipPERIODIC_TIMER,
@@ -319,7 +319,7 @@ char *c;
/* Only interested in processing form input if this is the IO page. */
c = strstr( pcInputString, "io.shtml" );
-
+
if( c )
{
/* Is there a command in the string? */
diff --git a/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c b/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c
index 047332d9a..016644aa0 100644
--- a/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c
+++ b/FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
PSOCK_BEGIN( &s->sout );
( void ) PT_YIELD_FLAG;
-
+
PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );
PSOCK_END( &s->sout );
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
}
/*---------------------------------------------------------------------------*/
-extern void vTaskList( signed char *pcWriteBuffer );
+extern void vTaskList( char *pcWriteBuffer );
extern char *pcGetTaskStatusMessage( void );
static char cCountBuf[128];
long lRefreshCount = 0;
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
( void ) arg;
lRefreshCount++;
sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );
- vTaskList( uip_appdata );
+ vTaskList( ( char * ) uip_appdata );
strcat( uip_appdata, cCountBuf );
return strlen( uip_appdata );
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
}
/*---------------------------------------------------------------------------*/
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );
extern unsigned short usMaxJitter;
static char cJitterBuffer[ 200 ];
static unsigned short generate_runtime_stats( void *arg )
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
( void ) arg;
lRefreshCount++;
sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );
-
+
#ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST
{
sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );
- vTaskGetRunTimeStats( uip_appdata );
+ vTaskGetRunTimeStats( ( char * ) uip_appdata );
strcat( uip_appdata, cJitterBuffer );
}
#else
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
( void ) cJitterBuffer;
strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );
}
- #endif
+ #endif
strcat( uip_appdata, cCountBuf );