upd constants

This commit is contained in:
Sergey Yarkov 2022-10-24 21:55:36 +03:00
parent c3199a2f36
commit f80eff343f
No known key found for this signature in database
GPG Key ID: A8DF2E580A6FD2C6
5 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#define CONSTANTS_H #define CONSTANTS_H
#define F_CPU 4000000UL #define F_CPU 4000000UL
#define BAUD_RATE 9600
#define BUFFER_SIZE 20 #define BUFFER_SIZE 20
#endif /* CONSTANTS_H */ #endif /* CONSTANTS_H */

View File

@ -2,7 +2,6 @@
#ifndef USART_H #ifndef USART_H
#define USART_H #define USART_H
#define BAUD_RATE (9600)
#define USART1_BAUD_RATE(BAUD_RATE) ((float)(64 * F_CPU / (16 * (float)BAUD_RATE)) + 0.5) #define USART1_BAUD_RATE(BAUD_RATE) ((float)(64 * F_CPU / (16 * (float)BAUD_RATE)) + 0.5)
#include <avr/io.h> #include <avr/io.h>