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

@ -443,8 +443,10 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
# Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called.
# Unused functions are pruned away, which is why we can add multiple drivers here without bloat.
ifeq ($(PLATFORM),AVR)
QUANTUM_LIB_SRC += i2c_master.c \
i2c_slave.c
ifneq ($(NO_I2C),yes)
QUANTUM_LIB_SRC += i2c_master.c \
i2c_slave.c
endif
endif
SERIAL_DRIVER ?= bitbang