Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
FInd Out
SUBMITTED BY:
MAXIUM
DATE:
Aug. 30, 2022, 3:32 a.m.
FORMAT:
Text only
SIZE:
505 Bytes
Raw
Download
Tweet
HITS:
444
Go to comments
Report
bootuart = 1;
}
if(bootuart == 1) {
UBRR0L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1);
UBRR0H = (F_CPU/(BAUD_RATE*16L)-1) >> 8;
UCSR0A = 0x00;
UCSR0C = 0x06;
UCSR0B = _BV(TXEN0)|_BV(RXEN0);
}
if(bootuart == 2) {
UBRR1L = (uint8_t)(F_CPU/(BAUD_RATE*16L)-1);
UBRR1H = (F_CPU/(BAUD_RATE*16L)-1) >> 8;
UCSR1A = 0x00;
UCSR1C = 0x06;
UCSR1B = _BV(TXEN1)|_BV(RXEN1);
}
#elif defined __AVR_ATmega163__
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus