Blame view

Moteur/serial.h 324 Bytes
e742bccc   dmohamed   ADD - Séparation ...
1
2
3
4
5
6
7
8
9
10
11
12
13
  #ifndef __SERIAL_H__
  #define __SERIAL_H__
  
  #include <avr/io.h>		// for the input/output register
  #include <util/delay.h>
  
  #define CPU_FREQ        16000000L       // Assume a CPU frequency of 16Mhz
  
  void init_serial(unsigned long int speed);
  void send_serial(uint8_t c);
  uint8_t get_serial(void);
  void send_ack(void);
  #endif