vStartRecursiveMutexTasks();\r
\r
/* Start the tasks defined within this file. */\r
- xTaskCreate( vLEDTask, "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL );\r
- xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
- xTaskCreate( vPrintTask, "Print", configMINIMAL_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );\r
- xTaskCreate( vButtonHandlerTask, "Button", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+ xTaskCreate( vLEDTask, ( signed char * ) "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL );\r
+ xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+ xTaskCreate( vPrintTask, ( signed char * ) "Print", configMINIMAL_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );\r
+ xTaskCreate( vButtonHandlerTask, ( signed char * ) "Button", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
\r
/* Start the scheduler. */\r
vTaskStartScheduler();\r
\r
static void vLEDTask( void *pvParameters )\r
{\r
+ /* Just to remove compiler warnings. */\r
+ ( void ) pvParameters;\r
+\r
/* Configure IO. */\r
IO0DIR |= mainLED_BIT;\r
IO0SET = mainLED_BIT;\r
const portCHAR * const pcPassMessage = "PASS\n";\r
const portCHAR * const pcFailMessage = "FAIL\n";\r
\r
+ /* Just to remove compiler warnings. */\r
+ ( void ) pvParameters;\r
+\r
/* Initialise xLastExecutionTime so the first call to vTaskDelayUntil()\r
works correctly. */\r
xLastExecutionTime = xTaskGetTickCount();\r
{\r
portCHAR *pcMessage;\r
\r
+ /* Just to stop compiler warnings. */\r
+ ( void ) pvParameters;\r
+\r
for( ;; )\r
{\r
/* Wait for a message to arrive. */\r
\r
static void vButtonHandlerTask( void *pvParameters )\r
{\r
-static portCHAR cListBuffer[ mainLIST_BUFFER_SIZE ];\r
-const portCHAR *pcList = &( cListBuffer[ 0 ] );\r
+static signed portCHAR cListBuffer[ mainLIST_BUFFER_SIZE ];\r
+const signed portCHAR *pcList = &( cListBuffer[ 0 ] );\r
const portCHAR * const pcHeader = "\nTask State Priority Stack #\n************************************************";\r
extern void (vButtonISRWrapper) ( void );\r
\r
+ /* Just to stop compiler warnings. */\r
+ ( void ) pvParameters;\r
+\r
/* Configure the interrupt. */\r
portENTER_CRITICAL();\r
{\r
}\r
/*-----------------------------------------------------------*/\r
\r
+void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName )\r
+{\r
+ /* Check pcTaskName for the name of the offending task, or pxCurrentTCB\r
+ if pcTaskName has itself been corrupted. */\r
+ ( void ) pxTask;\r
+ ( void ) pcTaskName;\r
+ for( ;; );\r
+}\r
\r
\r
\r