atsam: Use "communication interface" menu option in Kconfig

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-03-18 14:22:57 -04:00
parent c5f21aa16c
commit 6a4f1ece89
1 changed files with 11 additions and 5 deletions

View File

@ -80,11 +80,17 @@ config STACK_SIZE
default 512
config USBSERIAL
bool "Use USB for communication (instead of serial)"
default y
config SERIAL
depends on !USBSERIAL
bool
default y
config SERIAL
bool
choice
prompt "Communication interface"
config ATSAM_USB
bool "USB"
select USBSERIAL
config ATSAM_SERIAL
bool "Serial"
select SERIAL
endchoice
endif