Commit demos that have been updated for testing purposes before they are updated once more to test new low power features.

This commit is contained in:
Richard Barry 2013-02-18 11:15:35 +00:00
parent b85c071a79
commit 2b835ccb48
9 changed files with 642 additions and 14 deletions

View file

@ -118,6 +118,7 @@ and the TCP/IP stack together cannot be accommodated with the 32K size limit. */
/* Standard includes. */
#include <stdio.h>
#include <string.h>
/* Scheduler includes. */
#include "FreeRTOS.h"
@ -381,6 +382,8 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
xMessage.pcMessage = "ERROR IN Q SET";
}
configASSERT( strcmp( ( const char * ) xMessage.pcMessage, "PASS" ) == 0 );
/* Send the message to the OLED gatekeeper for display. */
xHigherPriorityTaskWoken = pdFALSE;
xQueueSendFromISR( xOLEDQueue, &xMessage, &xHigherPriorityTaskWoken );
@ -475,3 +478,22 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTask
for( ;; );
}
/*-----------------------------------------------------------*/
void vAssertCalled( const char *pcFile, unsigned long ulLine )
{
volatile unsigned long ulSetTo1InDebuggerToExit = 0;
taskENTER_CRITICAL();
{
while( ulSetTo1InDebuggerToExit == 0 )
{
/* Nothing do do here. Set the loop variable to a non zero value in
the debugger to step out of this function to the point that caused
the assertion. */
( void ) pcFile;
( void ) ulLine;
}
}
taskEXIT_CRITICAL();
}