1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-07-02 23:58:14 +02:00
cdf2018-principal/chef/src/debug.h
2018-05-02 08:26:35 +02:00

38 lines
638 B
C

#ifndef __DEBUG_H_
#define __DEBUG_H_
#include <pthread.h>
#include <time.h>
#include <stdbool.h>
// Constantes
#define DEBUG_INTERVAL_IDLE 50
#define DEBUG_INTERVAL_ACTIVE 1000
// Structures
enum debugArgTypes {
d,
f,
ld,
lf,
s
};
struct debugArg {
enum debugArgTypes type;
void* var;
struct debugArg* next;
};
// Public
void configureDebug(); // Avant tous les configure
void registerDebugVar(char* name, enum debugArgTypes type, void* var);
void startDebug(); // Après tous les configure
void deconfigureDebug();
void debugSetActive(bool active);
// Private
void* TaskDebug(void* pdata);
#endif