From a29bfd4942fa9a88eda2c4f5e61d1dd479b47ffc Mon Sep 17 00:00:00 2001 From: grouille Date: Wed, 25 Mar 2020 18:15:30 +0100 Subject: [PATCH] MAJ Git --- codes/Tuno_to_rpi.c | 115 ------------------------------------------------------------------------------------------------------------------- site/fichiersRPI/Build/Makefile | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ site/fichiersRPI/Build/libretour/libretour.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ site/fichiersRPI/Build/libretour/libretour.h | 14 ++++++++++++++ site/fichiersRPI/Build/main.c | 114 ------------------------------------------------------------------------------------------------------------------ site/fichiersRPI/script.sh | 3 +++ site/fichiersRPI/toto.sh | 3 --- 7 files changed, 148 insertions(+), 244 deletions(-) delete mode 100644 codes/Tuno_to_rpi.c create mode 100644 site/fichiersRPI/Build/libretour/libretour.c create mode 100644 site/fichiersRPI/Build/libretour/libretour.h delete mode 100755 site/fichiersRPI/Build/main.c delete mode 100755 site/fichiersRPI/toto.sh diff --git a/codes/Tuno_to_rpi.c b/codes/Tuno_to_rpi.c deleted file mode 100644 index 752fe7a..0000000 --- a/codes/Tuno_to_rpi.c +++ /dev/null @@ -1,115 +0,0 @@ -#include // for the input/output register -#include -#include -#include -#include -#include -#define PRESCALER 1024 -#define TIME_SLOT 20 -#define BAUDRATE 103 - -#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) -#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) - -char Donnee[24]; -float temp; - -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; - /* Enable transmitter *///task_led_red(); - //task_send_serial('A'); - 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< // for the input/output register -#include -#include -#include -#include -#include -#define PRESCALER 1024 -#define TIME_SLOT 20 -#define BAUDRATE 103 - -#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) -#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) - -char Donnee[24]; -float temp; - -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; - /* Enable transmitter *///task_led_red(); - //task_send_serial('A'); - UCSR0B = (1<