#define INCLUDE_xTaskGetSchedulerState 1\r
\r
\r
-/* When switching threads, Windows does not always seem to run the selected\r
-thread immediately. This function can be called to check if the thread\r
-that is currently running is the thread that is responsible for executing\r
-the task selected by the real time scheduler. If not then a yield is performed\r
-which will try and force the running thread to block on a semaphore, and hence\r
-allow the thread that should be running to take over. The trace macros are a\r
-convenient way of lacing the code with these checking calls. */\r
-void vPortCheckCorrectThreadIsRunning( void );\r
-\r
-#define traceBLOCKING_ON_QUEUE_RECEIVE(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceBLOCKING_ON_QUEUE_SEND(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceGIVE_MUTEX_RECURSIVE(pxMutex) vPortCheckCorrectThreadIsRunning();(void)pxMutex\r
-#define traceQUEUE_CREATE(pxNewQueue) vPortCheckCorrectThreadIsRunning();(void)pxNewQueue\r
-#define traceQUEUE_CREATE_FAILED() vPortCheckCorrectThreadIsRunning()\r
-#define traceCREATE_MUTEX(pxNewMutex) vPortCheckCorrectThreadIsRunning();(void)pxNewMutex\r
-#define traceCREATE_MUTEX_FAILED() vPortCheckCorrectThreadIsRunning()\r
-#define traceGIVE_MUTEX_RECURSIVE(pxMutex) vPortCheckCorrectThreadIsRunning();(void)pxMutex\r
-#define traceGIVE_MUTEX_RECURSIVE_FAILED(pxMutex) vPortCheckCorrectThreadIsRunning();(void)pxMutex\r
-#define traceTAKE_MUTEX_RECURSIVE(pxMutex) vPortCheckCorrectThreadIsRunning();(void)pxMutex\r
-#define traceTAKE_MUTEX_RECURSIVE_FAILED(pxMutex) vPortCheckCorrectThreadIsRunning();(void)pxMutex\r
-#define traceCREATE_COUNTING_SEMAPHORE() vPortCheckCorrectThreadIsRunning()\r
-#define traceCREATE_COUNTING_SEMAPHORE_FAILED() vPortCheckCorrectThreadIsRunning()\r
-#define traceQUEUE_SEND(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_SEND_FAILED(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_RECEIVE(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_RECEIVE_FAILED(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_PEEK(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_SEND_FROM_ISR(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_SEND_FROM_ISR_FAILED(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_RECEIVE_FROM_ISR(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_RECEIVE_FROM_ISR_FAILED(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceQUEUE_DELETE(pxQueue) vPortCheckCorrectThreadIsRunning();(void)pxQueue\r
-#define traceTASK_CREATE(pxTask) vPortCheckCorrectThreadIsRunning();(void)pxTask\r
-#define traceTASK_CREATE_FAILED(pxNewTCB) vPortCheckCorrectThreadIsRunning();(void)pxNewTCB\r
-#define traceTASK_DELETE(pxTask) vPortCheckCorrectThreadIsRunning();(void)pxTask\r
-#define traceTASK_DELAY_UNTIL() vPortCheckCorrectThreadIsRunning()\r
-#define traceTASK_DELAY() vPortCheckCorrectThreadIsRunning()\r
-#define traceTASK_PRIORITY_SET(pxTask,uxNewPriority) vPortCheckCorrectThreadIsRunning();(void)pxTask;(void)uxNewPriority\r
-#define traceTASK_SUSPEND(pxTask) vPortCheckCorrectThreadIsRunning();(void)pxTask\r
-#define traceTASK_RESUME(pxTask) vPortCheckCorrectThreadIsRunning();(void)pxTask\r
-#define traceTASK_RESUME_FROM_ISR(pxTask) vPortCheckCorrectThreadIsRunning();(void)pxTask\r
-\r
-\r
#endif /* FREERTOS_CONFIG_H */\r