copy uart from atmega16 project

wont compile right now!
This commit is contained in:
2019-09-21 15:04:12 +02:00
parent d1bbac33f9
commit 1c08382936
4 changed files with 45 additions and 87 deletions

View File

@@ -1,13 +1,13 @@
#ifndef _UART_H
#define _UART_H
#ifndef _UART_H_
#define _UART_H_
#include <stdio.h>
#define BAUD 9600
#define MYUBRR F_CPU/16/BAUD-1
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
void USART_Init(unsigned int ubrr);
void USART_Transmit(unsigned char data );
void uart_puts( char* string);
int putchar(int c);
void search_i2c_devices(void);
void uart_init (void);
void read_sync(char buffer[], uint8_t buffersize, uint8_t * bufferindex);
#endif