\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskList( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskList( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
void vStartUDPCommandInterpreterTask( uint16_t usStackSize, uint32_t ulPort, unsigned portBASE_TYPE uxPriority )\r
{\r
- xTaskCreate( vUDPCommandInterpreterTask, ( signed char * ) "CLI", usStackSize, ( void * ) ulPort, uxPriority, NULL );\r
+ xTaskCreate( vUDPCommandInterpreterTask, "CLI", usStackSize, ( void * ) ulPort, uxPriority, NULL );\r
}\r
/*-----------------------------------------------------------*/\r
\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
/******************************************************************************\r
*\r
- * See the following web page for essential TwoEchoClient.c usage and \r
+ * See the following web page for essential TwoEchoClient.c usage and\r
* configuration details:\r
* http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/Common_Echo_Clients.shtml\r
*\r
void vStartEchoClientTasks( uint16_t usTaskStackSize, unsigned portBASE_TYPE uxTaskPriority )\r
{\r
/* Create the echo client task that does not use the zero copy interface. */\r
- xTaskCreate( prvEchoClientTask, /* The function that implements the task. */\r
- ( const signed char * const ) "Echo0", /* Just a text name for the task to aid debugging. */\r
- usTaskStackSize, /* The stack size is defined in FreeRTOSIPConfig.h. */\r
- NULL, /* The task parameter, not used in this case. */\r
- uxTaskPriority, /* The priority assigned to the task is defined in FreeRTOSConfig.h. */\r
- NULL ); /* The task handle is not used. */\r
+ xTaskCreate( prvEchoClientTask, /* The function that implements the task. */\r
+ "Echo0", /* Just a text name for the task to aid debugging. */\r
+ usTaskStackSize, /* The stack size is defined in FreeRTOSIPConfig.h. */\r
+ NULL, /* The task parameter, not used in this case. */\r
+ uxTaskPriority, /* The priority assigned to the task is defined in FreeRTOSConfig.h. */\r
+ NULL ); /* The task handle is not used. */\r
\r
/* Create the echo client task that does use the zero copy interface. */\r
- xTaskCreate( prvZeroCopyEchoClientTask, /* The function that implements the task. */\r
- ( const signed char * const ) "Echo1", /* Just a text name for the task to aid debugging. */\r
- usTaskStackSize, /* The stack size is defined in FreeRTOSIPConfig.h. */\r
- NULL, /* The task parameter, not used in this case. */\r
- uxTaskPriority, /* The priority assigned to the task is defined in FreeRTOSConfig.h. */\r
- NULL ); /* The task handle is not used. */\r
+ xTaskCreate( prvZeroCopyEchoClientTask, /* The function that implements the task. */\r
+ "Echo1", /* Just a text name for the task to aid debugging. */\r
+ usTaskStackSize, /* The stack size is defined in FreeRTOSIPConfig.h. */\r
+ NULL, /* The task parameter, not used in this case. */\r
+ uxTaskPriority, /* The priority assigned to the task is defined in FreeRTOSConfig.h. */\r
+ NULL ); /* The task handle is not used. */\r
}\r
/*-----------------------------------------------------------*/\r
\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskList( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
* application. It is provided as a convenient development and demonstration\r
* test bed only. This was tested using Windows XP on a dual core laptop.\r
*\r
- * Windows will not be running the FreeRTOS simulator threads continuously, so \r
- * the timing information in the FreeRTOS+Trace logs have no meaningful units. \r
- * See the documentation page for the Windows simulator for an explanation of \r
+ * Windows will not be running the FreeRTOS simulator threads continuously, so\r
+ * the timing information in the FreeRTOS+Trace logs have no meaningful units.\r
+ * See the documentation page for the Windows simulator for an explanation of\r
* the slow timing:\r
* http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html\r
* - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT -\r
/* Start the two tasks as described in the comments at the top of this\r
file. */\r
xTaskCreate( prvQueueReceiveTask, /* The function that implements the task. */\r
- ( signed char * ) "Rx", /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+ "Rx", /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
configMINIMAL_STACK_SIZE, /* The size of the stack to allocate to the task. Not actually used as a stack in the Win32 simulator port. */\r
NULL, /* The parameter passed to the task - not used in this example. */\r
mainQUEUE_RECEIVE_TASK_PRIORITY, /* The priority assigned to the task. */\r
NULL ); /* The task handle is not required, so NULL is passed. */\r
\r
- xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+ xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
\r
/* Create the task that handles the CLI on a UDP port. The port number\r
is set using the configUDP_CLI_PORT_NUMBER setting in FreeRTOSConfig.h. */\r
- xTaskCreate( vUDPCommandInterpreterTask, ( signed char * ) "CLI", configMINIMAL_STACK_SIZE, NULL, mainUDP_CLI_TASK_PRIORITY, NULL );\r
+ xTaskCreate( vUDPCommandInterpreterTask, "CLI", configMINIMAL_STACK_SIZE, NULL, mainUDP_CLI_TASK_PRIORITY, NULL );\r
\r
/* Register commands with the FreeRTOS+CLI command interpreter. */\r
vRegisterCLICommands();\r
\r
void vApplicationTickHook( void )\r
{\r
- /* Write a user event to the trace log. \r
+ /* Write a user event to the trace log.\r
Note tick events will not appear in the trace recording with regular period\r
because this project runs in a Windows simulator, and does not therefore\r
exhibit deterministic behaviour. */\r
- vTraceUserEvent( xTickTraceUserEvent ); \r
+ vTraceUserEvent( xTickTraceUserEvent );\r
}\r
\r
\r
/* Create the TCP server task. This will itself create the client task\r
once it has completed the CyaSSL initialisation. */\r
- xTaskCreate( vSecureTCPServerTask, ( signed char * ) "Server", configMINIMAL_STACK_SIZE, NULL, mainSECURE_SERVER_TASK_PRIORITY, NULL );\r
+ xTaskCreate( vSecureTCPServerTask, "Server", configMINIMAL_STACK_SIZE, NULL, mainSECURE_SERVER_TASK_PRIORITY, NULL );\r
\r
/* Start the task running. */\r
vTaskStartScheduler();\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskList( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
/* Create the task that handles the CLI on a UDP port. The port number\r
is set using the configUDP_CLI_PORT_NUMBER setting in FreeRTOSConfig.h. */\r
xTaskCreate( vUDPCommandInterpreterTask, /* The function that implements the command interpreter IO handling. */\r
- ( signed char * ) "CLI", /* The name of the task - just to assist debugging. */\r
+ "CLI", /* The name of the task - just to assist debugging. */\r
configMINIMAL_STACK_SIZE, NULL, /* The size of the stack allocated to the task. */\r
mainUDP_CLI_TASK_PRIORITY, /* The priority at which the task will run. */\r
NULL ); /* A handle to the task is not required, so NULL is passed. */\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskList( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
/* Generate a table of task stats. */\r
strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
- vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+ vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
\r
/* There is no more data to return after this single string, so return\r
pdFALSE. */\r
\r
/* Add the semaphore and mutex to the queue registry for viewing in the\r
kernel aware state viewer. */\r
- vQueueAddToRegistry( xCDCMutex, ( signed char * ) "CDCMu" );\r
- vQueueAddToRegistry( xNewDataSemaphore, ( signed char * ) "CDCDat" );\r
+ vQueueAddToRegistry( xCDCMutex, "CDCMu" );\r
+ vQueueAddToRegistry( xNewDataSemaphore, "CDCDat" );\r
\r
/* Create that task that handles the console itself. */\r
- xTaskCreate( prvCDCCommandConsoleTask, /* The task that implements the command console. */\r
- ( const int8_t * const ) "CDCCmd", /* Text name assigned to the task. This is just to assist debugging. The kernel does not use this name itself. */\r
- usStackSize, /* The size of the stack allocated to the task. */\r
- NULL, /* The parameter is not used, so NULL is passed. */\r
- uxPriority, /* The priority allocated to the task. */\r
- NULL ); /* A handle is not required, so just pass NULL. */\r
+ xTaskCreate( prvCDCCommandConsoleTask, /* The task that implements the command console. */\r
+ "CDCCmd", /* Text name assigned to the task. This is just to assist debugging. The kernel does not use this name itself. */\r
+ usStackSize, /* The size of the stack allocated to the task. */\r
+ NULL, /* The parameter is not used, so NULL is passed. */\r
+ uxPriority, /* The priority allocated to the task. */\r
+ NULL ); /* A handle is not required, so just pass NULL. */\r
}\r
/*-----------------------------------------------------------*/\r
\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
GPIO_SetDir( ledLED1_PORT, ledLED1_BIT, 1 );\r
\r
/* Create the timer used to toggle LED0. */\r
- xLEDToggleTimer = xTimerCreate( ( const int8_t * ) "LEDTmr", /* Just a text name to associate with the timer, useful for debugging, but not used by the kernel. */\r
- ledTOGGLE_RATE, /* The period of the timer. */\r
- pdTRUE, /* This timer will autoreload, so uxAutoReload is set to pdTRUE. */\r
- NULL, /* The timer ID is not used, so can be set to NULL. */\r
- prvLEDToggleTimerCallback ); /* The callback function executed each time the timer expires. */\r
+ xLEDToggleTimer = xTimerCreate( "LEDTmr", /* Just a text name to associate with the timer, useful for debugging, but not used by the kernel. */\r
+ ledTOGGLE_RATE, /* The period of the timer. */\r
+ pdTRUE, /* This timer will autoreload, so uxAutoReload is set to pdTRUE. */\r
+ NULL, /* The timer ID is not used, so can be set to NULL. */\r
+ prvLEDToggleTimerCallback ); /* The callback function executed each time the timer expires. */\r
\r
/* Sanity check that the timer was actually created. */\r
configASSERT( xLEDToggleTimer );\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
FreeRTOS_select() function to receive from multiple sockets. The first\r
port number to use is passed into both tasks using the task's parameter.\r
Other port numbers are consecutive from the first. */\r
- xTaskCreate( prvMultipleSocketTxTask, ( const signed char * const ) "MultiTx", usStackSize, ( void * ) ulFirstPortNumber, uxPriority, NULL );\r
- xTaskCreate( prvMultipleSocketRxTask, ( const signed char * const ) "MultiRx", usStackSize, ( void * ) ulFirstPortNumber, uxPriority, NULL );\r
+ xTaskCreate( prvMultipleSocketTxTask, "MultiTx", usStackSize, ( void * ) ulFirstPortNumber, uxPriority, NULL );\r
+ xTaskCreate( prvMultipleSocketRxTask, "MultiRx", usStackSize, ( void * ) ulFirstPortNumber, uxPriority, NULL );\r
}\r
/*-----------------------------------------------------------*/\r
\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
void vStartUDPCommandInterpreterTask( uint16_t usStackSize, uint32_t ulPort, unsigned portBASE_TYPE uxPriority )\r
{\r
- xTaskCreate( vUDPCommandInterpreterTask, ( signed char * ) "CLI", usStackSize, ( void * ) ulPort, uxPriority, NULL );\r
+ xTaskCreate( vUDPCommandInterpreterTask, "CLI", usStackSize, ( void * ) ulPort, uxPriority, NULL );\r
}\r
/*-----------------------------------------------------------*/\r
\r
-/* \r
+/*\r
* Task that provides the input and output for the FreeRTOS+CLI command\r
* interpreter. In this case a UDP port is used. See the URL in the comments\r
* within main.c for the location of the online documentation.\r
string. */\r
if( cInChar == '\n' )\r
{\r
- /* Process the input string received prior to the \r
+ /* Process the input string received prior to the\r
newline. */\r
do\r
{\r
/* Pass the string to FreeRTOS+CLI. */\r
xMoreDataToFollow = FreeRTOS_CLIProcessCommand( cInputString, cOutputString, cmdMAX_OUTPUT_SIZE );\r
- \r
+\r
/* Send the output generated by the command's\r
implementation. */\r
FreeRTOS_sendto( xSocket, cOutputString, strlen( ( const char * ) cOutputString ), 0, &xClient, xClientAddressLength );\r
\r
} while( xMoreDataToFollow != pdFALSE ); /* Until the command does not generate any more output. */\r
\r
- /* All the strings generated by the command processing \r
- have been sent. Clear the input string ready to receive \r
+ /* All the strings generated by the command processing\r
+ have been sent. Clear the input string ready to receive\r
the next command. */\r
cInputIndex = 0;\r
memset( cInputString, 0x00, cmdMAX_INPUT_SIZE );\r
- \r
+\r
/* Transmit a spacer, just to make the command console\r
easier to read. */\r
FreeRTOS_sendto( xSocket, "\r\n", strlen( "\r\n" ), 0, &xClient, xClientAddressLength );\r
{\r
if( cInChar == '\r' )\r
{\r
- /* Ignore the character. Newlines are used to \r
+ /* Ignore the character. Newlines are used to\r
detect the end of the input string. */\r
}\r
else if( cInChar == '\b' )\r
{\r
- /* Backspace was pressed. Erase the last character \r
+ /* Backspace was pressed. Erase the last character\r
in the string - if any. */\r
if( cInputIndex > 0 )\r
{\r
}\r
}\r
}\r
- } \r
+ }\r
}\r
else\r
{\r
\r
/* Bind the address to the socket. */\r
if( FreeRTOS_bind( xSocket, &xServer, sizeof( xServer ) ) == -1 )\r
- { \r
+ {\r
FreeRTOS_closesocket( xSocket );\r
xSocket = FREERTOS_INVALID_SOCKET;\r
}\r
/* The address of an echo server that will be used by the two demo echo client\r
tasks.\r
http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/Common_Echo_Clients.shtml */\r
-#define configECHO_SERVER_ADDR0 172\r
-#define configECHO_SERVER_ADDR1 25\r
-#define configECHO_SERVER_ADDR2 218\r
-#define configECHO_SERVER_ADDR3 200\r
+#define configECHO_SERVER_ADDR0 10\r
+#define configECHO_SERVER_ADDR1 134\r
+#define configECHO_SERVER_ADDR2 134\r
+#define configECHO_SERVER_ADDR3 71\r
\r
/* Default MAC address configuration. The demo creates a virtual network\r
connection that uses this MAC address by accessing the raw Ethernet/WiFi data\r
/* Create a task that simulates an interrupt in a real system. This will\r
block waiting for packets, then send a message to the uIP task when data\r
is available. */\r
- xTaskCreate( prvInterruptSimulator, ( signed char * ) "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, ( configuIP_TASK_PRIORITY - 1 ), NULL );\r
+ xTaskCreate( prvInterruptSimulator, "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, ( configuIP_TASK_PRIORITY - 1 ), NULL );\r
}\r
/*-----------------------------------------------------------*/\r
\r
exclude. */\r
#define mainCREATE_UDP_CLI_TASKS 1\r
#define mainCREATE_SIMPLE_UDP_CLIENT_SERVER_TASKS 0\r
-#define mainCREATE_SELECT_UDP_SERVER_TASKS 1\r
-#define mainCREATE_UDP_ECHO_TASKS 0\r
+#define mainCREATE_SELECT_UDP_SERVER_TASKS 0\r
+#define mainCREATE_UDP_ECHO_TASKS 1\r
\r
/*-----------------------------------------------------------*/\r
\r
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license\r
* terms are different to the FreeRTOS license terms.\r
*\r
- * FreeRTOS+UDP uses a dual license model that allows the software to be used \r
- * under a standard GPL open source license, or a commercial license. The \r
- * standard GPL license (unlike the modified GPL license under which FreeRTOS \r
- * itself is distributed) requires that all software statically linked with \r
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms. \r
+ * FreeRTOS+UDP uses a dual license model that allows the software to be used\r
+ * under a standard GPL open source license, or a commercial license. The\r
+ * standard GPL license (unlike the modified GPL license under which FreeRTOS\r
+ * itself is distributed) requires that all software statically linked with\r
+ * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.\r
* Details of both license options follow:\r
*\r
* - Open source licensing -\r
/* Static configuration is being used, so the network is now up. */\r
#if ipconfigFREERTOS_PLUS_NABTO == 1\r
{\r
- /* Return value is used in configASSERT() inside the \r
+ /* Return value is used in configASSERT() inside the\r
function. */\r
( void ) xStartNabtoTask();\r
}\r
}\r
#endif\r
\r
- /* Static configuration is being used, so the network is now \r
+ /* Static configuration is being used, so the network is now\r
up. */\r
#if ipconfigFREERTOS_PLUS_NABTO == 1\r
{\r
- /* Return value is used in configASSERT() inside the \r
+ /* Return value is used in configASSERT() inside the\r
function. */\r
( void ) xStartNabtoTask();\r
}\r
\r
if( xDHCPTimer == NULL )\r
{\r
- xDHCPTimer = xTimerCreate( ( const signed char * const ) "DHCP", dhcpINITIAL_TIMER_PERIOD, pdTRUE, ( void * ) eDHCPEvent, vIPFunctionsTimerCallback );\r
+ xDHCPTimer = xTimerCreate( "DHCP", dhcpINITIAL_TIMER_PERIOD, pdTRUE, ( void * ) eDHCPEvent, vIPFunctionsTimerCallback );\r
configASSERT( xDHCPTimer );\r
xTimerStart( xDHCPTimer, portMAX_DELAY );\r
}\r
\r
/* Create the ARP timer, but don't start it until the network has\r
connected. */\r
- xARPTimer = xTimerCreate( ( const signed char * const ) "ARPTimer", ( ipARP_TIMER_PERIOD_MS / portTICK_RATE_MS ), pdTRUE, ( void * ) eARPTimerEvent, vIPFunctionsTimerCallback );\r
+ xARPTimer = xTimerCreate( "ARPTimer", ( ipARP_TIMER_PERIOD_MS / portTICK_RATE_MS ), pdTRUE, ( void * ) eARPTimerEvent, vIPFunctionsTimerCallback );\r
configASSERT( xARPTimer );\r
\r
/* Generate a dummy message to say that the network connection has gone\r
{\r
xNetworkEventQueue = xQueueCreate( ipconfigEVENT_QUEUE_LENGTH, sizeof( xIPStackEvent_t ) );\r
configASSERT( xNetworkEventQueue );\r
- vQueueAddToRegistry( xNetworkEventQueue, ( signed char * ) "NetEvnt" );\r
+ vQueueAddToRegistry( xNetworkEventQueue, "NetEvnt" );\r
}\r
\r
if( xNetworkBuffersInitialise() == pdPASS )\r
FreeRTOS_SocketsInit();\r
\r
/* Create the task that processes Ethernet and stack events. */\r
- xReturn = xTaskCreate( prvIPTask, ( const signed char * const ) "UDP/IP", ipconfigUDP_TASK_STACK_SIZE_WORDS, NULL, ipconfigUDP_TASK_PRIORITY, NULL );\r
+ xReturn = xTaskCreate( prvIPTask, "UDP/IP", ipconfigUDP_TASK_STACK_SIZE_WORDS, NULL, ipconfigUDP_TASK_PRIORITY, NULL );\r
}\r
}\r
}\r
{\r
xNetworkBufferSemaphore = xSemaphoreCreateCounting( ipconfigNUM_NETWORK_BUFFERS, ipconfigNUM_NETWORK_BUFFERS );\r
configASSERT( xNetworkBufferSemaphore );\r
- vQueueAddToRegistry( xNetworkBufferSemaphore, ( signed char * ) "NetBufSem" );\r
+ vQueueAddToRegistry( xNetworkBufferSemaphore, "NetBufSem" );\r
\r
/* If the trace recorder code is included name the semaphore for viewing\r
in FreeRTOS+Trace. */\r
\r
/* The handler task is created at the highest possible priority to\r
ensure the interrupt handler can return directly to it. */\r
- xTaskCreate( prvEMACHandlerTask, ( const signed char * const ) "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
+ xTaskCreate( prvEMACHandlerTask, "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
\r
/* Enable the interrupt and set its priority to the minimum\r
interrupt priority. */\r
*\r
* - Commercial licensing -\r
* Businesses and individuals that for commercial or other reasons cannot comply\r
- * with the terms of the GPL V2 license must obtain a commercial license before \r
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any \r
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp \r
+ * with the terms of the GPL V2 license must obtain a commercial license before\r
+ * incorporating FreeRTOS+UDP into proprietary software for distribution in any\r
+ * form. Commercial licenses can be purchased from http://shop.freertos.org/udp\r
* and do not require any source files to be changed.\r
*\r
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot\r
possible priority to ensure the interrupt handler can return directly to\r
it no matter which task was running when the interrupt occurred. */\r
xTaskCreate( prvEMACDeferredInterruptHandlerTask, /* The function that implements the task. */\r
- ( const signed char * const ) "MACTsk",\r
+ "MACTsk",\r
configMINIMAL_STACK_SIZE, /* Stack allocated to the task (defined in words, not bytes). */\r
NULL, /* The task parameter is not used. */\r
configMAX_PRIORITIES - 1, /* The priority assigned to the task. */\r
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license\r
* terms are different to the FreeRTOS license terms.\r
*\r
- * FreeRTOS+UDP uses a dual license model that allows the software to be used \r
- * under a standard GPL open source license, or a commercial license. The \r
- * standard GPL license (unlike the modified GPL license under which FreeRTOS \r
- * itself is distributed) requires that all software statically linked with \r
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms. \r
+ * FreeRTOS+UDP uses a dual license model that allows the software to be used\r
+ * under a standard GPL open source license, or a commercial license. The\r
+ * standard GPL license (unlike the modified GPL license under which FreeRTOS\r
+ * itself is distributed) requires that all software statically linked with\r
+ * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.\r
* Details of both license options follow:\r
*\r
* - Open source licensing -\r
*\r
* - Commercial licensing -\r
* Businesses and individuals that for commercial or other reasons cannot comply\r
- * with the terms of the GPL V2 license must obtain a commercial license before \r
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any \r
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp \r
+ * with the terms of the GPL V2 license must obtain a commercial license before\r
+ * incorporating FreeRTOS+UDP into proprietary software for distribution in any\r
+ * form. Commercial licenses can be purchased from http://shop.freertos.org/udp\r
* and do not require any source files to be changed.\r
*\r
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot\r
possible priority to ensure the interrupt handler can return directly to\r
it no matter which task was running when the interrupt occurred. */\r
xTaskCreate( prvEMACDeferredInterruptHandlerTask,/* The function that implements the task. */\r
- ( const signed char * const ) "MACTsk",\r
+ "MACTsk",\r
configMINIMAL_STACK_SIZE, /* Stack allocated to the task (defined in words, not bytes). */\r
NULL, /* The task parameter is not used. */\r
configMAX_PRIORITIES - 1, /* The priority assigned to the task. */\r
*\r
* - Commercial licensing -\r
* Businesses and individuals that for commercial or other reasons cannot comply\r
- * with the terms of the GPL V2 license must obtain a commercial license before \r
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any \r
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp \r
+ * with the terms of the GPL V2 license must obtain a commercial license before\r
+ * incorporating FreeRTOS+UDP into proprietary software for distribution in any\r
+ * form. Commercial licenses can be purchased from http://shop.freertos.org/udp\r
* and do not require any source files to be changed.\r
*\r
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot\r
portBASE_TYPE xReturn = pdFALSE;\r
\r
/* Ensure PHY is ready. */\r
- vTaskDelay( xPHYDelay_400ms / portTICK_RATE_MS ); \r
+ vTaskDelay( xPHYDelay_400ms / portTICK_RATE_MS );\r
\r
/* Enable GMAC clock. */\r
pmc_enable_periph_clk( ID_GMAC );\r
if( ethernet_phy_init( GMAC, BOARD_GMAC_PHY_ADDR, sysclk_get_cpu_hz() ) == GMAC_OK )\r
{\r
/* Auto Negotiate, work in RMII mode. */\r
- if( ethernet_phy_auto_negotiate( GMAC, BOARD_GMAC_PHY_ADDR ) == GMAC_OK ) \r
+ if( ethernet_phy_auto_negotiate( GMAC, BOARD_GMAC_PHY_ADDR ) == GMAC_OK )\r
{\r
/* Establish Ethernet link. */\r
vTaskDelay( xPHYDelay_400ms * 2UL );\r
if( ethernet_phy_set_link( GMAC, BOARD_GMAC_PHY_ADDR, 1 ) == GMAC_OK )\r
{\r
- /* Create the event semaphore if it has not already been \r
+ /* Create the event semaphore if it has not already been\r
created. */\r
if( xGMACRxEventSemaphore == NULL )\r
{\r
}\r
#endif /* ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS == 1 */\r
}\r
- \r
+\r
/* Register the callbacks. */\r
gmac_dev_set_rx_callback( &xGMACStruct, prvGMACRxCallback );\r
- \r
- /* The Rx deferred interrupt handler task is created at the \r
- highest possible priority to ensure the interrupt handler can \r
- return directly to it no matter which task was running when the \r
+\r
+ /* The Rx deferred interrupt handler task is created at the\r
+ highest possible priority to ensure the interrupt handler can\r
+ return directly to it no matter which task was running when the\r
interrupt occurred. */\r
xTaskCreate( prvGMACDeferredInterruptHandlerTask,/* The function that implements the task. */\r
- ( const signed char * const ) "MACTsk",\r
+ "MACTsk",\r
configMINIMAL_STACK_SIZE, /* Stack allocated to the task (defined in words, not bytes). */\r
NULL, /* The task parameter is not used. */\r
configMAX_PRIORITIES - 1, /* The priority assigned to the task. */\r
NULL ); /* The handle is not required, so NULL is passed. */\r
- \r
- /* Enable the interrupt and set its priority as configured. \r
- THIS DRIVER REQUIRES configMAC_INTERRUPT_PRIORITY TO BE DEFINED, \r
+\r
+ /* Enable the interrupt and set its priority as configured.\r
+ THIS DRIVER REQUIRES configMAC_INTERRUPT_PRIORITY TO BE DEFINED,\r
PREFERABLY IN FreeRTOSConfig.h. */\r
NVIC_SetPriority( GMAC_IRQn, configMAC_INTERRUPT_PRIORITY );\r
NVIC_EnableIRQ( GMAC_IRQn );\r
\r
/* Allocate a buffer to hold the data. */\r
pxNetworkBuffer = pxNetworkBufferGet( ipTOTAL_ETHERNET_FRAME_SIZE, xBufferWaitDelay );\r
- \r
+\r
if( pxNetworkBuffer != NULL )\r
{\r
/* At least one packet has been received. */\r
* This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license\r
* terms are different to the FreeRTOS license terms.\r
*\r
- * FreeRTOS+UDP uses a dual license model that allows the software to be used \r
- * under a standard GPL open source license, or a commercial license. The \r
- * standard GPL license (unlike the modified GPL license under which FreeRTOS \r
- * itself is distributed) requires that all software statically linked with \r
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms. \r
+ * FreeRTOS+UDP uses a dual license model that allows the software to be used\r
+ * under a standard GPL open source license, or a commercial license. The\r
+ * standard GPL license (unlike the modified GPL license under which FreeRTOS\r
+ * itself is distributed) requires that all software statically linked with\r
+ * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.\r
* Details of both license options follow:\r
*\r
* - Open source licensing -\r
*\r
* - Commercial licensing -\r
* Businesses and individuals that for commercial or other reasons cannot comply\r
- * with the terms of the GPL V2 license must obtain a commercial license before \r
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any \r
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp \r
+ * with the terms of the GPL V2 license must obtain a commercial license before\r
+ * incorporating FreeRTOS+UDP into proprietary software for distribution in any\r
+ * form. Commercial licenses can be purchased from http://shop.freertos.org/udp\r
* and do not require any source files to be changed.\r
*\r
* FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot\r
\r
/* The handler task is created at the highest possible priority to\r
ensure the interrupt handler can return directly to it. */\r
- xTaskCreate( vEMACHandlerTask, ( const signed char * const ) "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
+ xTaskCreate( vEMACHandlerTask, "EMAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
xReturn = pdPASS;\r
\r
return xReturn;\r
/* Create a task that simulates an interrupt in a real system. This will\r
block waiting for packets, then send a message to the uIP task when data\r
is available. */\r
- xTaskCreate( prvInterruptSimulatorTask, ( signed char * ) "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, configMAC_ISR_SIMULATOR_PRIORITY, NULL );\r
+ xTaskCreate( prvInterruptSimulatorTask, "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, configMAC_ISR_SIMULATOR_PRIORITY, NULL );\r
}\r
/*-----------------------------------------------------------*/\r
\r