31 lines
488 B
C
31 lines
488 B
C
#ifndef CHAVIREMENT_H
|
|
#include "chavirement.h"
|
|
#endif
|
|
|
|
#ifndef MYGPIO_H
|
|
#include "Driver_GPIO.h"
|
|
#endif
|
|
|
|
#ifndef BATTERIE_H
|
|
#include "batterie.h"
|
|
#endif
|
|
|
|
#include "bordage.h"
|
|
|
|
#include "tourniquet.h"
|
|
|
|
float battery_level_general = 0.0;
|
|
|
|
int main(void) {
|
|
//on init le GPIO A
|
|
MyGPIO_Activate(1);
|
|
MyGPIO_Activate(2);
|
|
//on init le système de chavirement
|
|
init_bordage();
|
|
init_codeur_incr();
|
|
|
|
chavirement_init();
|
|
init_battery(&battery_level_general);
|
|
tourniquet_init();
|
|
while(1) {}
|
|
}
|