dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
taskmonitor.c File Reference
#include "openpilot.h"
#include "taskmonitor.h"
#include "pios_mutex.h"

Go to the source code of this file.

Functions

 DONT_BUILD_IF (TASKINFO_RUNNING_NUMELEM!=TASKINFO_STACKREMAINING_NUMELEM, taskelems1)
 
 DONT_BUILD_IF (TASKINFO_RUNNING_NUMELEM!=TASKINFO_RUNNINGTIME_NUMELEM, taskelems2)
 
int32_t TaskMonitorInitialize (void)
 
int32_t TaskMonitorAdd (TaskInfoRunningElem task, struct pios_thread *threadp)
 
int32_t TaskMonitorRemove (TaskInfoRunningElem task)
 
bool TaskMonitorQueryRunning (TaskInfoRunningElem task)
 
void TaskMonitorUpdateAll (void)
 

Variables

static struct pios_mutexlock
 
static struct pios_thread * handles [TASKINFO_RUNNING_NUMELEM]
 
static uint32_t lastMonitorTime