copy uart from atmega16 project
wont compile right now!
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user