mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Start to remove unnecessary 'signed char *' casts from strings that are now just plain char * types.
This commit is contained in:
parent
b4116a7c7d
commit
da93f1fc4b
261 changed files with 2822 additions and 2815 deletions
|
@ -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.
|
||||
|
@ -246,7 +246,7 @@ int main( void )
|
|||
PHY. */
|
||||
if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) )
|
||||
{
|
||||
xTaskCreate( vuIP_Task, ( signed portCHAR * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );
|
||||
xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );
|
||||
}
|
||||
|
||||
/* Start the standard demo tasks. */
|
||||
|
@ -261,7 +261,7 @@ int main( void )
|
|||
vStartInterruptQueueTasks();
|
||||
|
||||
/* Start the tasks defined within this file/specific to this demo. */
|
||||
xTaskCreate( vOLEDTask, ( signed portCHAR * ) "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
|
||||
xTaskCreate( vOLEDTask, "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
|
||||
|
||||
/* The suicide tasks must be created last as they need to know how many
|
||||
tasks were running prior to their creation in order to ascertain whether
|
||||
|
@ -363,7 +363,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
|||
{
|
||||
xMessage.pcMessage = "ERROR IN INT QUEUE";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Send the message to the OLED gatekeeper for display. */
|
||||
xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
|
|
@ -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.
|
||||
|
@ -140,14 +140,14 @@ portBASE_TYPE xReturn;
|
|||
{
|
||||
ulRxLength[ ulTemp ] = 0;
|
||||
}
|
||||
|
||||
|
||||
/* Create the queue and task used to defer the MAC processing to the
|
||||
task level. */
|
||||
vSemaphoreCreateBinary( xMACInterruptSemaphore );
|
||||
xSemaphoreTake( xMACInterruptSemaphore, 0 );
|
||||
xReturn = xTaskCreate( vMACHandleTask, ( signed portCHAR * ) "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
|
||||
xReturn = xTaskCreate( vMACHandleTask, "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
|
||||
vTaskDelay( macNEGOTIATE_DELAY );
|
||||
|
||||
|
||||
/* We are only interested in Rx interrupts. */
|
||||
IntPrioritySet( INT_ETH, configKERNEL_INTERRUPT_PRIORITY );
|
||||
IntEnable( INT_ETH );
|
||||
|
@ -168,9 +168,9 @@ unsigned int iLen;
|
|||
{
|
||||
/* Leave room for the size at the start of the buffer. */
|
||||
uip_buf = &( ucRxBuffers[ ulNextRxBuffer ][ 2 ] );
|
||||
|
||||
|
||||
ulRxLength[ ulNextRxBuffer ] = 0;
|
||||
|
||||
|
||||
ulNextRxBuffer++;
|
||||
if( ulNextRxBuffer >= emacNUM_RX_BUFFERS )
|
||||
{
|
||||
|
@ -214,9 +214,9 @@ unsigned portLONG ulNextWord;
|
|||
{
|
||||
vTaskDelay( macWAIT_SEND_TIME );
|
||||
}
|
||||
|
||||
pulSource = ( unsigned portLONG * ) pus;
|
||||
|
||||
|
||||
pulSource = ( unsigned portLONG * ) pus;
|
||||
|
||||
for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned portLONG ) )
|
||||
{
|
||||
HWREG(ETH_BASE + MAC_O_DATA) = *pulSource;
|
||||
|
@ -236,14 +236,14 @@ unsigned portLONG ulTemp;
|
|||
/* Clear the interrupt. */
|
||||
ulTemp = EthernetIntStatus( ETH_BASE, pdFALSE );
|
||||
EthernetIntClear( ETH_BASE, ulTemp );
|
||||
|
||||
|
||||
/* Was it an Rx interrupt? */
|
||||
if( ulTemp & ETH_INT_RX )
|
||||
{
|
||||
xSemaphoreGiveFromISR( xMACInterruptSemaphore, &xHigherPriorityTaskWoken );
|
||||
EthernetIntDisable( ETH_BASE, ETH_INT_RX );
|
||||
}
|
||||
|
||||
|
||||
/* Switch to the uIP task. */
|
||||
portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
|
||||
}
|
||||
|
@ -261,23 +261,23 @@ portBASE_TYPE xSwitchRequired = pdFALSE;
|
|||
{
|
||||
/* Wait for something to do. */
|
||||
xSemaphoreTake( xMACInterruptSemaphore, portMAX_DELAY );
|
||||
|
||||
|
||||
while( ( ulInt = ( EthernetIntStatus( ETH_BASE, pdFALSE ) & ETH_INT_RX ) ) != 0 )
|
||||
{
|
||||
{
|
||||
ulLength = HWREG( ETH_BASE + MAC_O_DATA );
|
||||
|
||||
|
||||
/* Leave room at the start of the buffer for the size. */
|
||||
pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 2 ] );
|
||||
pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 2 ] );
|
||||
*pulBuffer = ( ulLength >> 16 );
|
||||
|
||||
/* Get the size of the data. */
|
||||
pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 4 ] );
|
||||
/* Get the size of the data. */
|
||||
pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 4 ] );
|
||||
ulLength &= 0xFFFF;
|
||||
|
||||
|
||||
if( ulLength > 4 )
|
||||
{
|
||||
ulLength -= 4;
|
||||
|
||||
|
||||
if( ulLength >= UIP_BUFSIZE )
|
||||
{
|
||||
/* The data won't fit in our buffer. Ensure we don't
|
||||
|
@ -291,22 +291,22 @@ portBASE_TYPE xSwitchRequired = pdFALSE;
|
|||
*pulBuffer = HWREG( ETH_BASE + MAC_O_DATA );
|
||||
pulBuffer++;
|
||||
}
|
||||
|
||||
|
||||
/* Store the length of the data into the separate array. */
|
||||
ulRxLength[ ulNextRxBuffer ] = ulLength;
|
||||
|
||||
|
||||
/* Use the next buffer the next time through. */
|
||||
ulNextRxBuffer++;
|
||||
if( ulNextRxBuffer >= emacNUM_RX_BUFFERS )
|
||||
{
|
||||
ulNextRxBuffer = 0;
|
||||
}
|
||||
|
||||
|
||||
/* Ensure the uIP task is not blocked as data has arrived. */
|
||||
xSemaphoreGive( xEMACSemaphore );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
EthernetIntEnable( ETH_BASE, ETH_INT_RX );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -205,7 +205,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
extern void vTaskList( signed char *pcWriteBuffer );
|
||||
extern void vTaskList( char *pcWriteBuffer );
|
||||
static char cCountBuf[ 32 ];
|
||||
long lRefreshCount = 0;
|
||||
static unsigned short
|
||||
|
@ -213,7 +213,7 @@ generate_rtos_stats(void *arg)
|
|||
{
|
||||
lRefreshCount++;
|
||||
sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );
|
||||
vTaskList( uip_appdata );
|
||||
vTaskList( ( char * ) uip_appdata );
|
||||
strcat( uip_appdata, cCountBuf );
|
||||
|
||||
return strlen( uip_appdata );
|
||||
|
@ -254,13 +254,13 @@ static unsigned short generate_io_state( void *arg )
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );
|
||||
extern void vTaskGetRunTimeStats( char *pcWriteBuffer );
|
||||
static unsigned short
|
||||
generate_runtime_stats(void *arg)
|
||||
{
|
||||
lRefreshCount++;
|
||||
sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );
|
||||
vTaskGetRunTimeStats( uip_appdata );
|
||||
vTaskGetRunTimeStats( ( char * ) uip_appdata );
|
||||
strcat( uip_appdata, cCountBuf );
|
||||
|
||||
return strlen( uip_appdata );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue