optiboot v8, test baud changed

This commit is contained in:
Ilya Elenskiy
2021-04-18 15:07:21 +02:00
parent 1ce9b1bc59
commit a79a8b1ea0
5 changed files with 72 additions and 116 deletions

View File

@@ -7,12 +7,12 @@
void unittest_uart_begin()
{
// Set Baudrate according to datasheet (16MHz -> 9600 Baud -> 103)
UBRR0 = 103;
// Set Baudrate according to datasheet (16MHz -> 115200 Baud, U2X=1)
UBRR0 = 0x10;
UCSR0B |= (1<<TXEN0);
// Reset Complete-Flags
UCSR0A = (1 << RXC0) | (1 << TXC0);
UCSR0A = (1 << RXC0) | (1 << TXC0) | (1 << U2X0);
}
void unittest_uart_putchar(char c)