From a7e16536abf3a866ec6b06dc6551471aa54ff485 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Fri, 25 Nov 2022 21:16:45 +0100 Subject: [PATCH] Kconfig: add Kconfig for USB MSC Signed-off-by: Dylan Laduranty --- sys/usb/usbus/Kconfig | 1 + sys/usb/usbus/msc/Kconfig | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 sys/usb/usbus/msc/Kconfig diff --git a/sys/usb/usbus/Kconfig b/sys/usb/usbus/Kconfig index 6f33c40f0b..89330ad772 100644 --- a/sys/usb/usbus/Kconfig +++ b/sys/usb/usbus/Kconfig @@ -68,3 +68,4 @@ endif # KCONFIG_USEMODULE_USBUS rsource "cdc/Kconfig" rsource "dfu/Kconfig" rsource "hid/Kconfig" +rsource "msc/Kconfig" diff --git a/sys/usb/usbus/msc/Kconfig b/sys/usb/usbus/msc/Kconfig new file mode 100644 index 0000000000..2a60b09109 --- /dev/null +++ b/sys/usb/usbus/msc/Kconfig @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Mesotic SAS +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# +menuconfig MODULE_USBUS_MSC + bool "USBUS Mass Storage Class" + depends on MODULE_USBUS + select MODULE_MTD + select MODULE_MTD_WRITE_PAGE + select USEMODULE_USBUS_MSC + + help + Configure the USBUS MSC module via Kconfig. + +if MODULE_USBUS_MSC + +config USBUS_MSC_VENDOR_ID + string "MSC Vendor ID" + default "RIOT-OS" + +config USBUS_MSC_PRODUCT_ID + string "MSC Product ID" + default "RIOT_MSC_DISK" + +config USBUS_MSC_PRODUCT_REV + string "MSC Product Revision" + default "1.0" + +endif # MODULE_USBUS_MSC