diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/.cproject b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/.cproject
index c911170fc..ac423a0b0 100644
--- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/.cproject
+++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/.cproject
@@ -1021,7 +1021,8 @@
-
+
+
@@ -1080,9 +1081,6 @@
-
-
-
diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/RegisterTests.c b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/RegisterTests.c
index 1aa696a93..1302a094f 100644
--- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/RegisterTests.c
+++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/RegisterTests.c
@@ -177,6 +177,8 @@ void vRegisterTest1( void *pvParameters )
" bri 0 \n\t" \
" nop \n\t" \
);
+
+ ( void ) pvParameters;
}
/*-----------------------------------------------------------*/
@@ -294,6 +296,8 @@ void vRegisterTest2( void *pvParameters )
" bri 0 \n\t" \
" nop \n\t" \
);
+
+ ( void ) pvParameters;
}
diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/main-full.c b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/main-full.c
index fcca9f599..059dfdd83 100644
--- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/main-full.c
+++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/main-full.c
@@ -125,6 +125,10 @@
#include "comtest_strings.h"
#include "TimerDemo.h"
+/* lwIP includes. */
+#include "lwip/tcpip.h"
+
+
/* Priorities at which the various tasks are created. */
#define mainQUEUE_POLL_PRIORITY ( tskIDLE_PRIORITY + 1 )
#define mainSEM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
@@ -189,6 +193,9 @@ static void vCheckTimerCallback( xTimerHandle xTimer );
*/
static void prvSetupHardware( void );
+/* Defined in lwIPApps.c. */
+extern void lwIPAppsInit( void *pvArguments );
+
/*-----------------------------------------------------------*/
/* The check timer callback function sets pcStatusMessage to a string that
@@ -217,6 +224,9 @@ int main( void )
/* Configure the interrupt controller, LED outputs and button inputs. */
prvSetupHardware();
+ /* This call creates the TCP/IP thread. */
+ tcpip_init( lwIPAppsInit, NULL );
+
/* Start the reg test tasks, as described in the comments at the top of this
file. */
xTaskCreate( vRegisterTest1, ( const signed char * const ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );
@@ -472,6 +482,9 @@ void vApplicationMallocFailedHook( void )
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{
+ ( void ) pcTaskName;
+ ( void ) pxTask;
+
/* vApplicationStackOverflowHook() will only be called if
configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2. The handle and name
of the offending task will be passed into the hook function via its
@@ -509,6 +522,9 @@ static long lCheckTimerStarted = pdFALSE;
xTimerStart( xCheckTimer, mainDONT_BLOCK );
lCheckTimerStarted = pdTRUE;
}
+
+ extern void vTemp( void );
+ vTemp();
}
/*-----------------------------------------------------------*/
@@ -526,6 +542,8 @@ void vApplicationTickHook( void )
void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump )
{
+ ( void ) xRegisterDump;
+
/* If configINSTALL_EXCEPTION_HANDLERS is set to 1 in FreeRTOSConfig.h, then
the kernel will automatically install its own exception handlers before the
kernel is started, if the application writer has not already caused them to
diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/serial.c b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/serial.c
index 66df57eb7..9d673a55e 100644
--- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/serial.c
+++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/serial.c
@@ -156,6 +156,8 @@ portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, po
void vSerialPutString( xComPortHandle pxPort, const signed char * const pcString, unsigned portBASE_TYPE uxStringLength )
{
+ ( void ) pxPort;
+
/* Output uxStringLength bytes starting from pcString. */
XUartLite_Send( &xUartLiteInstance, ( unsigned char * ) pcString, uxStringLength );
}
@@ -166,6 +168,9 @@ static void prvRxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount )
signed char cRxedChar;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
+ ( void ) pvUnused;
+ ( void ) uxByteCount;
+
/* Place any received characters into the receive queue. */
while( XUartLite_IsReceiveEmpty( xUartLiteInstance.RegBaseAddress ) == pdFALSE )
{
@@ -186,6 +191,9 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
static void prvTxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount )
{
+ ( void ) pvUnused;
+ ( void ) uxByteCount;
+
/* Nothing to do here. The Xilinx library function takes care of the
transmission. */
portNOP();