Remove unnecessary 'signed char *' casts from strings that are now just plain char * types in the FreeRTOS-Plus directory.
This commit is contained in:
@ -5,11 +5,11 @@
|
||||
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
|
||||
* terms are different to the FreeRTOS license terms.
|
||||
*
|
||||
* FreeRTOS+UDP uses a dual license model that allows the software to be used
|
||||
* under a standard GPL open source license, or a commercial license. The
|
||||
* standard GPL license (unlike the modified GPL license under which FreeRTOS
|
||||
* itself is distributed) requires that all software statically linked with
|
||||
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
|
||||
* FreeRTOS+UDP uses a dual license model that allows the software to be used
|
||||
* under a standard GPL open source license, or a commercial license. The
|
||||
* standard GPL license (unlike the modified GPL license under which FreeRTOS
|
||||
* itself is distributed) requires that all software statically linked with
|
||||
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
|
||||
* Details of both license options follow:
|
||||
*
|
||||
* - Open source licensing -
|
||||
@ -299,7 +299,7 @@ void vDHCPProcess( portBASE_TYPE xReset, xMACAddress_t *pxMACAddress, uint32_t *
|
||||
/* Static configuration is being used, so the network is now up. */
|
||||
#if ipconfigFREERTOS_PLUS_NABTO == 1
|
||||
{
|
||||
/* Return value is used in configASSERT() inside the
|
||||
/* Return value is used in configASSERT() inside the
|
||||
function. */
|
||||
( void ) xStartNabtoTask();
|
||||
}
|
||||
@ -329,11 +329,11 @@ void vDHCPProcess( portBASE_TYPE xReset, xMACAddress_t *pxMACAddress, uint32_t *
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Static configuration is being used, so the network is now
|
||||
/* Static configuration is being used, so the network is now
|
||||
up. */
|
||||
#if ipconfigFREERTOS_PLUS_NABTO == 1
|
||||
{
|
||||
/* Return value is used in configASSERT() inside the
|
||||
/* Return value is used in configASSERT() inside the
|
||||
function. */
|
||||
( void ) xStartNabtoTask();
|
||||
}
|
||||
@ -451,7 +451,7 @@ extern void vIPFunctionsTimerCallback( xTimerHandle xTimer );
|
||||
|
||||
if( xDHCPTimer == NULL )
|
||||
{
|
||||
xDHCPTimer = xTimerCreate( ( const signed char * const ) "DHCP", dhcpINITIAL_TIMER_PERIOD, pdTRUE, ( void * ) eDHCPEvent, vIPFunctionsTimerCallback );
|
||||
xDHCPTimer = xTimerCreate( "DHCP", dhcpINITIAL_TIMER_PERIOD, pdTRUE, ( void * ) eDHCPEvent, vIPFunctionsTimerCallback );
|
||||
configASSERT( xDHCPTimer );
|
||||
xTimerStart( xDHCPTimer, portMAX_DELAY );
|
||||
}
|
||||
|
@ -392,7 +392,7 @@ xIPStackEvent_t xReceivedEvent;
|
||||
|
||||
/* Create the ARP timer, but don't start it until the network has
|
||||
connected. */
|
||||
xARPTimer = xTimerCreate( ( const signed char * const ) "ARPTimer", ( ipARP_TIMER_PERIOD_MS / portTICK_RATE_MS ), pdTRUE, ( void * ) eARPTimerEvent, vIPFunctionsTimerCallback );
|
||||
xARPTimer = xTimerCreate( "ARPTimer", ( ipARP_TIMER_PERIOD_MS / portTICK_RATE_MS ), pdTRUE, ( void * ) eARPTimerEvent, vIPFunctionsTimerCallback );
|
||||
configASSERT( xARPTimer );
|
||||
|
||||
/* Generate a dummy message to say that the network connection has gone
|
||||
@ -557,7 +557,7 @@ static portBASE_TYPE xReturn = pdFALSE;
|
||||
{
|
||||
xNetworkEventQueue = xQueueCreate( ipconfigEVENT_QUEUE_LENGTH, sizeof( xIPStackEvent_t ) );
|
||||
configASSERT( xNetworkEventQueue );
|
||||
vQueueAddToRegistry( xNetworkEventQueue, ( signed char * ) "NetEvnt" );
|
||||
vQueueAddToRegistry( xNetworkEventQueue, "NetEvnt" );
|
||||
}
|
||||
|
||||
if( xNetworkBuffersInitialise() == pdPASS )
|
||||
@ -597,7 +597,7 @@ static portBASE_TYPE xReturn = pdFALSE;
|
||||
FreeRTOS_SocketsInit();
|
||||
|
||||
/* Create the task that processes Ethernet and stack events. */
|
||||
xReturn = xTaskCreate( prvIPTask, ( const signed char * const ) "UDP/IP", ipconfigUDP_TASK_STACK_SIZE_WORDS, NULL, ipconfigUDP_TASK_PRIORITY, NULL );
|
||||
xReturn = xTaskCreate( prvIPTask, "UDP/IP", ipconfigUDP_TASK_STACK_SIZE_WORDS, NULL, ipconfigUDP_TASK_PRIORITY, NULL );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ portBASE_TYPE xReturn, x;
|
||||
{
|
||||
xNetworkBufferSemaphore = xSemaphoreCreateCounting( ipconfigNUM_NETWORK_BUFFERS, ipconfigNUM_NETWORK_BUFFERS );
|
||||
configASSERT( xNetworkBufferSemaphore );
|
||||
vQueueAddToRegistry( xNetworkBufferSemaphore, ( signed char * ) "NetBufSem" );
|
||||
vQueueAddToRegistry( xNetworkBufferSemaphore, "NetBufSem" );
|
||||
|
||||
/* If the trace recorder code is included name the semaphore for viewing
|
||||
in FreeRTOS+Trace. */
|
||||
|
@ -122,7 +122,7 @@ extern uint8_t ucMACAddress[ 6 ];
|
||||
|
||||
/* The handler task is created at the highest possible priority to
|
||||
ensure the interrupt handler can return directly to it. */
|
||||
xTaskCreate( prvEMACHandlerTask, ( const signed char * const ) "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
|
||||
xTaskCreate( prvEMACHandlerTask, "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
|
||||
|
||||
/* Enable the interrupt and set its priority to the minimum
|
||||
interrupt priority. */
|
||||
|
@ -19,9 +19,9 @@
|
||||
*
|
||||
* - Commercial licensing -
|
||||
* Businesses and individuals that for commercial or other reasons cannot comply
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* and do not require any source files to be changed.
|
||||
*
|
||||
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
|
||||
@ -124,7 +124,7 @@ extern uint8_t ucMACAddress[ 6 ];
|
||||
possible priority to ensure the interrupt handler can return directly to
|
||||
it no matter which task was running when the interrupt occurred. */
|
||||
xTaskCreate( prvEMACDeferredInterruptHandlerTask, /* The function that implements the task. */
|
||||
( const signed char * const ) "MACTsk",
|
||||
"MACTsk",
|
||||
configMINIMAL_STACK_SIZE, /* Stack allocated to the task (defined in words, not bytes). */
|
||||
NULL, /* The task parameter is not used. */
|
||||
configMAX_PRIORITIES - 1, /* The priority assigned to the task. */
|
||||
|
@ -5,11 +5,11 @@
|
||||
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
|
||||
* terms are different to the FreeRTOS license terms.
|
||||
*
|
||||
* FreeRTOS+UDP uses a dual license model that allows the software to be used
|
||||
* under a standard GPL open source license, or a commercial license. The
|
||||
* standard GPL license (unlike the modified GPL license under which FreeRTOS
|
||||
* itself is distributed) requires that all software statically linked with
|
||||
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
|
||||
* FreeRTOS+UDP uses a dual license model that allows the software to be used
|
||||
* under a standard GPL open source license, or a commercial license. The
|
||||
* standard GPL license (unlike the modified GPL license under which FreeRTOS
|
||||
* itself is distributed) requires that all software statically linked with
|
||||
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
|
||||
* Details of both license options follow:
|
||||
*
|
||||
* - Open source licensing -
|
||||
@ -21,9 +21,9 @@
|
||||
*
|
||||
* - Commercial licensing -
|
||||
* Businesses and individuals that for commercial or other reasons cannot comply
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* and do not require any source files to be changed.
|
||||
*
|
||||
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
|
||||
@ -126,7 +126,7 @@ extern uint8_t ucMACAddress[ 6 ];
|
||||
possible priority to ensure the interrupt handler can return directly to
|
||||
it no matter which task was running when the interrupt occurred. */
|
||||
xTaskCreate( prvEMACDeferredInterruptHandlerTask,/* The function that implements the task. */
|
||||
( const signed char * const ) "MACTsk",
|
||||
"MACTsk",
|
||||
configMINIMAL_STACK_SIZE, /* Stack allocated to the task (defined in words, not bytes). */
|
||||
NULL, /* The task parameter is not used. */
|
||||
configMAX_PRIORITIES - 1, /* The priority assigned to the task. */
|
||||
|
@ -19,9 +19,9 @@
|
||||
*
|
||||
* - Commercial licensing -
|
||||
* Businesses and individuals that for commercial or other reasons cannot comply
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* and do not require any source files to be changed.
|
||||
*
|
||||
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
|
||||
@ -98,7 +98,7 @@ const portTickType xPHYDelay_400ms = 400UL;
|
||||
portBASE_TYPE xReturn = pdFALSE;
|
||||
|
||||
/* Ensure PHY is ready. */
|
||||
vTaskDelay( xPHYDelay_400ms / portTICK_RATE_MS );
|
||||
vTaskDelay( xPHYDelay_400ms / portTICK_RATE_MS );
|
||||
|
||||
/* Enable GMAC clock. */
|
||||
pmc_enable_periph_clk( ID_GMAC );
|
||||
@ -117,13 +117,13 @@ portBASE_TYPE xReturn = pdFALSE;
|
||||
if( ethernet_phy_init( GMAC, BOARD_GMAC_PHY_ADDR, sysclk_get_cpu_hz() ) == GMAC_OK )
|
||||
{
|
||||
/* Auto Negotiate, work in RMII mode. */
|
||||
if( ethernet_phy_auto_negotiate( GMAC, BOARD_GMAC_PHY_ADDR ) == GMAC_OK )
|
||||
if( ethernet_phy_auto_negotiate( GMAC, BOARD_GMAC_PHY_ADDR ) == GMAC_OK )
|
||||
{
|
||||
/* Establish Ethernet link. */
|
||||
vTaskDelay( xPHYDelay_400ms * 2UL );
|
||||
if( ethernet_phy_set_link( GMAC, BOARD_GMAC_PHY_ADDR, 1 ) == GMAC_OK )
|
||||
{
|
||||
/* Create the event semaphore if it has not already been
|
||||
/* Create the event semaphore if it has not already been
|
||||
created. */
|
||||
if( xGMACRxEventSemaphore == NULL )
|
||||
{
|
||||
@ -136,23 +136,23 @@ portBASE_TYPE xReturn = pdFALSE;
|
||||
}
|
||||
#endif /* ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS == 1 */
|
||||
}
|
||||
|
||||
|
||||
/* Register the callbacks. */
|
||||
gmac_dev_set_rx_callback( &xGMACStruct, prvGMACRxCallback );
|
||||
|
||||
/* The Rx deferred interrupt handler task is created at the
|
||||
highest possible priority to ensure the interrupt handler can
|
||||
return directly to it no matter which task was running when the
|
||||
|
||||
/* The Rx deferred interrupt handler task is created at the
|
||||
highest possible priority to ensure the interrupt handler can
|
||||
return directly to it no matter which task was running when the
|
||||
interrupt occurred. */
|
||||
xTaskCreate( prvGMACDeferredInterruptHandlerTask,/* The function that implements the task. */
|
||||
( const signed char * const ) "MACTsk",
|
||||
"MACTsk",
|
||||
configMINIMAL_STACK_SIZE, /* Stack allocated to the task (defined in words, not bytes). */
|
||||
NULL, /* The task parameter is not used. */
|
||||
configMAX_PRIORITIES - 1, /* The priority assigned to the task. */
|
||||
NULL ); /* The handle is not required, so NULL is passed. */
|
||||
|
||||
/* Enable the interrupt and set its priority as configured.
|
||||
THIS DRIVER REQUIRES configMAC_INTERRUPT_PRIORITY TO BE DEFINED,
|
||||
|
||||
/* Enable the interrupt and set its priority as configured.
|
||||
THIS DRIVER REQUIRES configMAC_INTERRUPT_PRIORITY TO BE DEFINED,
|
||||
PREFERABLY IN FreeRTOSConfig.h. */
|
||||
NVIC_SetPriority( GMAC_IRQn, configMAC_INTERRUPT_PRIORITY );
|
||||
NVIC_EnableIRQ( GMAC_IRQn );
|
||||
@ -235,7 +235,7 @@ uint32_t ulReturned;
|
||||
|
||||
/* Allocate a buffer to hold the data. */
|
||||
pxNetworkBuffer = pxNetworkBufferGet( ipTOTAL_ETHERNET_FRAME_SIZE, xBufferWaitDelay );
|
||||
|
||||
|
||||
if( pxNetworkBuffer != NULL )
|
||||
{
|
||||
/* At least one packet has been received. */
|
||||
|
@ -5,11 +5,11 @@
|
||||
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
|
||||
* terms are different to the FreeRTOS license terms.
|
||||
*
|
||||
* FreeRTOS+UDP uses a dual license model that allows the software to be used
|
||||
* under a standard GPL open source license, or a commercial license. The
|
||||
* standard GPL license (unlike the modified GPL license under which FreeRTOS
|
||||
* itself is distributed) requires that all software statically linked with
|
||||
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
|
||||
* FreeRTOS+UDP uses a dual license model that allows the software to be used
|
||||
* under a standard GPL open source license, or a commercial license. The
|
||||
* standard GPL license (unlike the modified GPL license under which FreeRTOS
|
||||
* itself is distributed) requires that all software statically linked with
|
||||
* FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
|
||||
* Details of both license options follow:
|
||||
*
|
||||
* - Open source licensing -
|
||||
@ -21,9 +21,9 @@
|
||||
*
|
||||
* - Commercial licensing -
|
||||
* Businesses and individuals that for commercial or other reasons cannot comply
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* with the terms of the GPL V2 license must obtain a commercial license before
|
||||
* incorporating FreeRTOS+UDP into proprietary software for distribution in any
|
||||
* form. Commercial licenses can be purchased from http://shop.freertos.org/udp
|
||||
* and do not require any source files to be changed.
|
||||
*
|
||||
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
|
||||
@ -113,7 +113,7 @@ extern uint8_t ucMACAddress[ 6 ];
|
||||
|
||||
/* The handler task is created at the highest possible priority to
|
||||
ensure the interrupt handler can return directly to it. */
|
||||
xTaskCreate( vEMACHandlerTask, ( const signed char * const ) "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
|
||||
xTaskCreate( vEMACHandlerTask, "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
|
||||
xReturn = pdPASS;
|
||||
|
||||
return xReturn;
|
||||
|
@ -382,7 +382,7 @@ unsigned long ulNetMask;
|
||||
/* Create a task that simulates an interrupt in a real system. This will
|
||||
block waiting for packets, then send a message to the uIP task when data
|
||||
is available. */
|
||||
xTaskCreate( prvInterruptSimulatorTask, ( signed char * ) "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, configMAC_ISR_SIMULATOR_PRIORITY, NULL );
|
||||
xTaskCreate( prvInterruptSimulatorTask, "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, configMAC_ISR_SIMULATOR_PRIORITY, NULL );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
Reference in New Issue
Block a user