Great library, good work! I tried the NO_USART0 option and generated a couple of errors, reckon the below changes might be the fix...
Line 1622 of usart.h;
shouldn't this be UCSR3A_REGISTER |= (1<<U2X3_BIT);
instead of
UCSR3A_REGISTER |= (1<<U2X0_BIT);
?
Also, shouldn't line 5439 of usart.c be
[UDR_reg_IO] "M" (_SFR_IO_ADDR(UDR1_REGISTER)),
instead of of
[UDR_reg_IO] "M" (_SFR_IO_ADDR(UDR0_REGISTER)),
?
Hope this is constructive, haven't githubbed before :)
Great library, good work! I tried the NO_USART0 option and generated a couple of errors, reckon the below changes might be the fix... Line 1622 of usart.h; shouldn't this be
UCSR3A_REGISTER |= (1<<U2X3_BIT);
instead ofUCSR3A_REGISTER |= (1<<U2X0_BIT);
?Also, shouldn't line 5439 of usart.c be
[UDR_reg_IO] "M" (_SFR_IO_ADDR(UDR1_REGISTER)),
instead of of[UDR_reg_IO] "M" (_SFR_IO_ADDR(UDR0_REGISTER)),
? Hope this is constructive, haven't githubbed before :)