avrinput/usart.h

18 lines
231 B
C
Raw Normal View History

2019-01-01 15:48:54 +00:00
#ifndef _USART_H_
#define _USART_H_
#include "conf.h"
2019-04-07 18:35:05 +00:00
#ifndef USART_U2X_EN
2019-01-01 15:48:54 +00:00
#define UBRR_VALUE (F_CPU/16/USART_BAUD-1)
2019-04-07 18:35:05 +00:00
#else
#define UBRR_VALUE (F_CPU/8/USART_BAUD-1)
#endif
2019-01-01 15:48:54 +00:00
void
usart_init(void);
int
usart_putc(char c);
#endif