/branches/dongfang_FC_fixedwing/arduino_atmega328/uart0.c |
---|
121,7 → 121,7 |
/****************************************************************/ |
void usart0_init(void) { |
uint8_t sreg = SREG; |
uint16_t ubrr = (uint16_t) ((uint32_t) SYSCLK / (8 * USART0_BAUD) - 1); |
uint16_t ubrr = (uint16_t) ((uint32_t) F_CPU / (8 * USART0_BAUD) - 1); |
// disable all interrupts before configuration |
cli(); |