1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-11-15 04:46:06 +01:00
cdf2018-principal/chef/src/premier.c

41 lines
788 B
C
Raw Normal View History

#include <pthread.h>
2018-04-30 16:15:47 +02:00
#include <stdio.h>
#include <stdlib.h>
#include <time.h> // random seed
#include <unistd.h> // sleep
2018-04-30 16:15:47 +02:00
#include <wiringPi.h>
2018-02-07 17:57:01 +01:00
2018-04-04 16:17:13 +02:00
#include "CF.h"
2018-04-30 16:15:47 +02:00
#include "debug.h"
#include "ihm.h"
#include "movement.h"
2018-04-04 16:17:13 +02:00
#include "position.h"
2018-02-12 19:23:24 +01:00
int main()
{
printf("Démarrage...\n");
2018-04-30 16:15:47 +02:00
if (wiringPiSetup() < 0) {
fprintf(stderr, "Impossible d'initialiser WiringPi\n");
exit(EXIT_FAILURE);
}
initI2C();
configureIHM();
srand(time(NULL));
configureDebug();
2018-04-30 16:15:47 +02:00
/* configureCF(); */
/* configureMovement(); */
/* configurePosition(); */
2018-04-29 09:38:49 +02:00
startDebug();
2018-04-30 16:15:47 +02:00
startIHM();
2018-02-16 22:13:24 +01:00
2018-04-30 16:15:47 +02:00
/* deconfigureMovement(); */
/* deconfigurePosition(); */
/* deconfigureCF(); */
deconfigureIHM();
2018-04-29 09:38:49 +02:00
deconfigureDebug();
return EXIT_SUCCESS;
2018-02-07 17:57:01 +01:00
}