mirror of
https://github.com/sergeyyarkov/avr128da48_web-serial-example.git
synced 2026-10-11 18:28:58 +03:00
upd constants
This commit is contained in:
parent
c3199a2f36
commit
f80eff343f
Binary file not shown.
Binary file not shown.
@ -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 */
|
||||||
|
|||||||
Binary file not shown.
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user