Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AVR-USB-MCU-families ATmegaXYu2/4/6 and AT90USBXYZ6/7 eg. Arduino Uno USB-MCU / Micro #327

Merged
merged 10 commits into from
Oct 4, 2021
Prev Previous commit
Next Next commit
Remove duplicate UART port check
  • Loading branch information
Virtual-Java committed Oct 3, 2021
commit dbecfae710a4590865b7cb7d3e8ff4b95fcb9bd4
24 changes: 0 additions & 24 deletions optiboot/bootloaders/optiboot/pin_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -489,30 +489,6 @@
#define LED D5
#endif

/*
* Handle devices with up to 4 uarts (eg m1280.) Rather inelegantly.
* Note that mega8/m32 still needs special handling, because ubrr is handled
* differently.
*/
#if (SOFT_UART == 0)
#if UART == 0
#error UART == 0, but no UART0 on device
#elif UART == 1
#if !defined(UDR1)
#error UART == 1, but no UART1 on device
#endif
# define UART_SRA UCSR1A
# define UART_SRB UCSR1B
# define UART_SRC UCSR1C
# define UART_SRL UBRR1L
# define UART_UDR UDR1
#elif UART == 2
#error UART == 2, but no UART2 on device
#elif UART == 3
#error UART == 3, but no UART3 on device
#endif
#endif //end #if SOFT_UART==0

/* Fix different register names */
#define MPCM0 MPCM1
#define U2X0 U2X1
Expand Down