From 6a4f1ece8909a891c97a2e12adaf005ede0ac3c9 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 18 Mar 2021 14:22:57 -0400 Subject: [PATCH] atsam: Use "communication interface" menu option in Kconfig Signed-off-by: Kevin O'Connor --- src/atsam/Kconfig | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/atsam/Kconfig b/src/atsam/Kconfig index 85ba12ae..a3d8566d 100644 --- a/src/atsam/Kconfig +++ b/src/atsam/Kconfig @@ -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