mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2024-06-17 09:23:14 +02:00
31 lines
524 B
C
31 lines
524 B
C
#ifndef __DEBUG_H_
|
|
#define __DEBUG_H_
|
|
|
|
#include <pthread.h>
|
|
#include <time.h>
|
|
|
|
// Constantes
|
|
#define DEBUG_INTERVAL 100
|
|
|
|
|
|
// 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();
|
|
|
|
// Private
|
|
void* TaskDebug(void *pdata);
|
|
|
|
#endif
|