Add support for soft serial to ATmega32U2 (#10204)

* Add support for soft serial to ATmega32U2

* Update drivers/avr/serial.c

* Update drivers/avr/serial.c

* Update drivers/avr/serial.c

* Fix comment

* Update drivers/avr/serial.c
This commit is contained in:
Naoto Takai 2020-09-03 01:18:21 +09:00 committed by James Young
parent 53ad78b4b6
commit 73d20754bb
No known key found for this signature in database
GPG key ID: 8E1085BF6FCFBD74
3 changed files with 12 additions and 7 deletions

View file

@ -318,6 +318,9 @@ ifneq (,$(filter $(MCU),atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 a
ifeq (,$(filter $(NO_INTERRUPT_CONTROL_ENDPOINT),yes))
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
endif
ifneq (,$(filter $(MCU),atmega16u2 atmega32u2))
NO_I2C = yes
endif
endif
ifneq (,$(filter $(MCU),atmega32a))