mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/usb/usbus: model cdc acm stdio in Kconfig
This commit is contained in:
parent
bab0514af7
commit
398df91a99
@ -108,5 +108,6 @@ config USB_SERIAL_BYTE_LENGTH
|
||||
comment "WARNING: The serial string is empty!"
|
||||
depends on USB_SERIAL_STR = "" && USB_CUSTOM_SERIAL_STR
|
||||
|
||||
rsource "usbus/Kconfig"
|
||||
endif # KCONFIG_USB
|
||||
|
||||
rsource "usbus/Kconfig"
|
||||
|
@ -4,9 +4,30 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
menuconfig MODULE_USBUS
|
||||
bool "USB Unified Stack (USBUS)"
|
||||
depends on TEST_KCONFIG
|
||||
depends on HAS_PERIPH_USBDEV || MODULE_USBDEV_MOCK
|
||||
select MODULE_CORE_THREAD_FLAGS
|
||||
select MODULE_EVENT
|
||||
select MODULE_LUID
|
||||
select MODULE_FMT
|
||||
select MODULE_PERIPH_USBDEV if HAS_PERIPH_USBDEV && !MODULE_USBDEV_MOCK
|
||||
|
||||
if MODULE_USBUS
|
||||
|
||||
config MODULE_AUTO_INIT_USBUS
|
||||
bool "Auto initialize USBUS"
|
||||
depends on MODULE_AUTO_INIT
|
||||
default y
|
||||
|
||||
endif # MODULE_USBUS
|
||||
|
||||
menuconfig KCONFIG_USEMODULE_USBUS
|
||||
bool "Configure USB Unified Stack (USBUS)"
|
||||
depends on USEMODULE_USBUS
|
||||
depends on KCONFIG_USB
|
||||
help
|
||||
Configure the USBUS module via Kconfig.
|
||||
|
||||
@ -42,7 +63,8 @@ config USBUS_EP0_SIZE_64
|
||||
|
||||
endchoice
|
||||
|
||||
endif # KCONFIG_USEMODULE_USBUS
|
||||
|
||||
rsource "cdc/Kconfig"
|
||||
rsource "dfu/Kconfig"
|
||||
|
||||
endif # KCONFIG_USEMODULE_USBUS
|
||||
rsource "hid/Kconfig"
|
||||
|
@ -7,6 +7,7 @@
|
||||
menuconfig KCONFIG_USEMODULE_USBUS_CDC_ACM
|
||||
bool "Configure USBUS CDC ACM"
|
||||
depends on USEMODULE_USBUS_CDC_ACM
|
||||
depends on KCONFIG_USEMODULE_USBUS
|
||||
help
|
||||
Configure the USBUS CDC ACM module via Kconfig.
|
||||
|
||||
@ -44,3 +45,18 @@ config USBUS_CDC_ACM_BULK_EP_SIZE_64
|
||||
endchoice
|
||||
|
||||
endif # KCONFIG_USEMODULE_USBUS_CDC_ACM
|
||||
|
||||
config MODULE_USBUS_CDC_ACM
|
||||
bool "USB CDC ACM support"
|
||||
depends on MODULE_USBUS
|
||||
select MODULE_TSRB
|
||||
|
||||
# extend STDIO options
|
||||
choice STDIO_IMPLEMENTATION
|
||||
|
||||
config MODULE_STDIO_CDC_ACM
|
||||
bool "CDC ACM"
|
||||
depends on MODULE_USBUS_CDC_ACM
|
||||
select MODULE_ISRPIPE
|
||||
|
||||
endchoice
|
||||
|
@ -7,6 +7,7 @@
|
||||
menuconfig KCONFIG_USEMODULE_USBUS_CDC_ECM
|
||||
bool "Configure USBUS CDC ECM"
|
||||
depends on USEMODULE_USBUS_CDC_ECM
|
||||
depends on KCONFIG_USEMODULE_USBUS
|
||||
help
|
||||
Configure the USBUS CDC ECM module via Kconfig.
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
menuconfig KCONFIG_USEMODULE_USBUS_DFU
|
||||
bool "Configure USBUS DFU"
|
||||
depends on USEMODULE_USBUS_DFU
|
||||
depends on KCONFIG_USEMODULE_USBUS
|
||||
help
|
||||
Configure the USBUS DFU module via Kconfig.
|
||||
|
||||
|
17
sys/usb/usbus/hid/Kconfig
Normal file
17
sys/usb/usbus/hid/Kconfig
Normal file
@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# 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_HID
|
||||
bool "USB HID support"
|
||||
depends on TEST_KCONFIG
|
||||
depends on MODULE_USBUS
|
||||
select MODULE_ISRPIPE_READ_TIMEOUT
|
||||
|
||||
config USBUS_HID_INTERRUPT_EP_SIZE
|
||||
int "Interrupt endpoint size in bytes"
|
||||
default 64
|
||||
depends on MODULE_USBUS_HID
|
Loading…
Reference in New Issue
Block a user