defined the F_CPU here

This commit is contained in:
jakeg00dwin 2024-07-24 17:54:41 -07:00
parent 437479b0b5
commit 7c0fc29687
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
#include <avr/io.h> #include <avr/io.h>
#include <string.h> #include <string.h>
#define F_CPU 3333333UL
#define F_PER F_CPU / 6 #define F_PER F_CPU / 6
#define USART0_BAUD_RATE(BAUD_RATE) ((float)(F_PER * 64 / (16 * (float)BAUD_RATE)) + 0.5) #define USART0_BAUD_RATE(BAUD_RATE) ((float)(F_PER * 64 / (16 * (float)BAUD_RATE)) + 0.5)