interrupt driven sending

This commit is contained in:
hg
2013-01-28 11:18:06 +01:00
parent da140addba
commit 8e078d5ae9

View File

@ -21,9 +21,10 @@ void uartdrvInit() {
UCSRB = (1 << TXEN);
// 8 data bit, no parity, 1 stop bit
UCSRC = (1 << UCSZ1) | (1 << UCSZ0);
// 115200 Baud @ 16MHz
// 2400 Baud @ 16MHz
UBRRL = 0xa0;
UBRRH = 0x01;;
FILE *mystdout = fdevopen(uartdrvPutchar, NULL);
stdout = mystdout;
}