diff --git a/codes/distance.c b/codes/distance.c index d1173b4..1ad0bc3 100644 --- a/codes/distance.c +++ b/codes/distance.c @@ -8,7 +8,7 @@ //#ifndef RETOUR_H_ //#define RETOUR_H_ -#include "libretour.h" +#include "retour.h" //#endif #define PRESCALER 1024 diff --git a/codes/libretour.c b/codes/libretour.c deleted file mode 100644 index a5541c6..0000000 --- a/codes/libretour.c +++ /dev/null @@ -1,73 +0,0 @@ -#include -#include -#include -#include -#include -#include - - -#define PRESCALER 1024 -#define TIME_SLOT 20 -#define BAUDRATE 103 - -//// INIT SERIAL ///// - -void init_serial(void) -{ - /* ACHTUNG : we suppose UBRR value < 0xff */ - /* Not true in all case */ - uint8_t baudrate = BAUDRATE; - /* Set baud rate */ - UBRR0H = 0; - UBRR0L = baudrate; - - UCSR0B = (1< +#include +#include +#include +#include +#include + + +#define PRESCALER 1024 +#define TIME_SLOT 20 +#define BAUDRATE 103 + +//// INIT SERIAL ///// + +void init_serial(void) +{ + /* ACHTUNG : we suppose UBRR value < 0xff */ + /* Not true in all case */ + uint8_t baudrate = BAUDRATE; + /* Set baud rate */ + UBRR0H = 0; + UBRR0L = baudrate; + + UCSR0B = (1< #include -#include "libretour.h" +#include "retour.h" #define PRESCALER 1024 #define TIME_SLOT 20 diff --git a/site/fichiersRPI/Build/libretour/libretour.c b/site/fichiersRPI/Build/libretour/libretour.c deleted file mode 100644 index a5541c6..0000000 --- a/site/fichiersRPI/Build/libretour/libretour.c +++ /dev/null @@ -1,73 +0,0 @@ -#include -#include -#include -#include -#include -#include - - -#define PRESCALER 1024 -#define TIME_SLOT 20 -#define BAUDRATE 103 - -//// INIT SERIAL ///// - -void init_serial(void) -{ - /* ACHTUNG : we suppose UBRR value < 0xff */ - /* Not true in all case */ - uint8_t baudrate = BAUDRATE; - /* Set baud rate */ - UBRR0H = 0; - UBRR0L = baudrate; - - UCSR0B = (1< +#include +#include +#include +#include +#include + + +#define PRESCALER 1024 +#define TIME_SLOT 20 +#define BAUDRATE 103 + +//// INIT SERIAL ///// + +void init_serial(void) +{ + /* ACHTUNG : we suppose UBRR value < 0xff */ + /* Not true in all case */ + uint8_t baudrate = BAUDRATE; + /* Set baud rate */ + UBRR0H = 0; + UBRR0L = baudrate; + + UCSR0B = (1<