Added usage of the parity function in demo/main
This commit is contained in:
parent
5b265a5258
commit
65928780d9
|
@ -25,6 +25,10 @@ int main() {
|
||||||
|
|
||||||
init_usart0();
|
init_usart0();
|
||||||
|
|
||||||
|
//enable parity, because the internal
|
||||||
|
//crystal is garbage
|
||||||
|
serial0_enable_parity_bit(2);
|
||||||
|
|
||||||
//enable interrupts
|
//enable interrupts
|
||||||
sei();
|
sei();
|
||||||
unsigned char data[8] = "AT+BAUD3";
|
unsigned char data[8] = "AT+BAUD3";
|
||||||
|
@ -210,8 +214,9 @@ void serial0_set_stop_bits(uint8_t number) {
|
||||||
UCSR0C |= (1<<USBS0);
|
UCSR0C |= (1<<USBS0);
|
||||||
default:
|
default:
|
||||||
;
|
;
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue