1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-26 15:54:15 +01:00

Show when Idle task runs

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@286 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
FredericG 2010-03-12 07:36:27 +00:00 committed by FredericG
parent 8330fd811f
commit 223186f986

View File

@ -36,9 +36,20 @@
/* OpenPilot Includes */
#include "openpilot.h"
#define USE_DEBUG_PINS
/* Task Priorities */
#define PRIORITY_TASK_HOOKS (tskIDLE_PRIORITY + 3)
#ifdef USE_DEBUG_PINS
#define DEBUG_PIN_IDLE 5
#define DebugPinHigh(x) PIOS_DEBUG_PinHigh(x)
#define DebugPinLow(x) PIOS_DEBUG_PinLow(x)
#else
#define DebugPinHigh(x)
#define DebugPinLow(x)
#endif
/* Global Variables */
/* Local Variables */
@ -122,7 +133,7 @@ static void TestTask(void *pvParameters)
}
//vTaskDelayUntil(&xLastExecutionTime, 10 / portTICK_RATE_MS);
vTaskDelayUntil(&xLastExecutionTime, 10 / portTICK_RATE_MS);
}
}
@ -133,6 +144,6 @@ static void TestTask(void *pvParameters)
void vApplicationIdleHook(void)
{
/* Called when the scheduler has no tasks to run */
DebugPinHigh(DEBUG_PIN_IDLE);
DebugPinLow(DEBUG_PIN_IDLE);
}