defined the F_CPU here
This commit is contained in:
parent
437479b0b5
commit
7c0fc29687
|
@ -9,7 +9,7 @@
|
|||
#include <avr/io.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#define F_CPU 3333333UL
|
||||
#define F_PER F_CPU / 6
|
||||
#define USART0_BAUD_RATE(BAUD_RATE) ((float)(F_PER * 64 / (16 * (float)BAUD_RATE)) + 0.5)
|
||||
|
||||
|
|
Loading…
Reference in New Issue