Added usage of the parity function in demo/main

This commit is contained in:
Jake Goodwin 2023-01-16 20:54:15 -08:00
parent 5b265a5258
commit 65928780d9
1 changed files with 6 additions and 1 deletions

View File

@ -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:
; ;
}
}
}
/* /*