1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-06-26 13:09:01 +02:00
cdf2018-principal/chef/src/debug.h

31 lines
524 B
C
Raw Normal View History

#ifndef __DEBUG_H_
#define __DEBUG_H_
#include <pthread.h>
2018-04-04 16:17:13 +02:00
#include <time.h>
2018-05-01 13:34:05 +02:00
// Constantes
#define DEBUG_INTERVAL 100
2018-04-29 09:38:49 +02:00
// Structures
enum debugArgTypes {d, f, ld, lf, s};
2018-04-29 09:38:49 +02:00
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();
2018-04-29 09:38:49 +02:00
// Private
void* TaskDebug(void *pdata);
#endif