]> cvs.zerfleddert.de Git - rsbs2/blame_incremental - bmc/usart.c
remove DEBUG printouts from non-debug build
[rsbs2] / bmc / usart.c
... / ...
CommitLineData
1#include <avr/io.h>
2#include <stdio.h>
3
4#include "usart.h"
5
6#define UBRR_VAL ((F_CPU+BAUD*8)/(BAUD*16)-1)
7#define BAUD_REAL (F_CPU/(16*(UBRR_VAL+1)))
8#define BAUD_ERROR ((BAUD_REAL*1000)/BAUD)
9
10#if ((BAUD_ERROR<990) || (BAUD_ERROR>1010))
11