mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2024-06-01 18:45:01 +02:00
18 lines
309 B
C
18 lines
309 B
C
#ifndef __DIAGNOSTICS_H_
|
|
#define __DIAGNOSTICS_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
// Constantes
|
|
#define DIAGNOSTIC_INTERVAL 500
|
|
#define DIAGNOSTIC_POLL_INTERVAL 100
|
|
#define DIAGNOSTIC_SERIAL_TIMEOUT 10000
|
|
|
|
// Public
|
|
void runDiagnostics();
|
|
|
|
// Private
|
|
void execDiagnostic(char *name, bool (*diagnostic)(void));
|
|
|
|
#endif
|