jnk0le / AVR-UART-lib

extremly light uart library for AVR 8 bit microcontrollers
MIT License
103 stars 36 forks source link

some tiny patches #9

Closed Leopardus4 closed 5 years ago

Leopardus4 commented 5 years ago

Added BUFF_SIZE macro in examples - for safety.

Question: Is that a mistake (?) in: https://github.com/Leopardus4/AVR-UART-lib/blob/1578db4a5592356f0572a9761f000fb848982efb/usart.h#L18

define BAUD_CALC_FAST(x) ((F_CPU)/(BAUD*16UL)-1)

"BAUD" probably should be "x"

Best regards Leopardus

jnk0le commented 5 years ago

Thanks for your contribution. The "BAUD" is definitely a mistake and will be fixed soon.