]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SAM4E/NetworkInterface.c
Remove unnecessary 'signed char *' casts from strings that are now just plain char...
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-UDP / portable / NetworkInterface / SAM4E / NetworkInterface.c
index 462ffeddd2edbe4099a1aa133b2f97fd9181ca38..0b330dce4ca2fb345d899e6c712b8e71f7049129 100644 (file)
@@ -19,9 +19,9 @@
  *\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
@@ -98,7 +98,7 @@ const portTickType xPHYDelay_400ms = 400UL;
 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
@@ -117,13 +117,13 @@ portBASE_TYPE xReturn = pdFALSE;
        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
@@ -136,23 +136,23 @@ portBASE_TYPE xReturn = pdFALSE;
                                        }\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
@@ -235,7 +235,7 @@ uint32_t ulReturned;
 \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