mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/periph_usbdev: move Kconfig to a separate file
This commit is contained in:
parent
abf0883e44
commit
78e24541e6
@ -156,39 +156,7 @@ config MODULE_PERIPH_INIT_TEMPERATURE
|
||||
depends on MODULE_PERIPH_TEMPERATURE
|
||||
|
||||
rsource "Kconfig.uart"
|
||||
|
||||
config MODULE_PERIPH_USBDEV
|
||||
bool "USBDEV peripheral driver"
|
||||
depends on HAS_PERIPH_USBDEV
|
||||
select MODULE_PERIPH_COMMON
|
||||
select MODULE_PERIPH_USBDEV_CLK
|
||||
|
||||
config MODULE_PERIPH_INIT_USBDEV
|
||||
bool "Auto initialize USBDEV peripheral"
|
||||
default y if MODULE_PERIPH_INIT
|
||||
depends on MODULE_PERIPH_USBDEV
|
||||
|
||||
config MODULE_PERIPH_USBDEV_HS_ULPI
|
||||
bool "Use USB HS pripheral with UPLI HS PHY"
|
||||
depends on HAS_PERIPH_USBDEV_HS_ULPI
|
||||
depends on MODULE_PERIPH_USBDEV
|
||||
|
||||
config MODULE_PERIPH_INIT_USBDEV_HS_ULPI
|
||||
bool
|
||||
default y if MODULE_PERIPH_INIT && MODULE_PERIPH_USBDEV_HS_ULPI
|
||||
depends on HAS_PERIPH_USBDEV_HS_ULPI
|
||||
depends on MODULE_PERIPH_USBDEV
|
||||
|
||||
config MODULE_PERIPH_USBDEV_CLK
|
||||
bool
|
||||
depends on HAS_PERIPH_USBDEV
|
||||
help
|
||||
Enable the USB device specific clock settings, if there are any
|
||||
|
||||
config MODULE_PERIPH_INIT_USBDEV_CLK
|
||||
bool
|
||||
default y if MODULE_PERIPH_INIT && MODULE_PERIPH_USBDEV_CLK
|
||||
depends on HAS_PERIPH_USBDEV
|
||||
rsource "Kconfig.usbdev"
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
|
||||
|
45
drivers/periph_common/Kconfig.usbdev
Normal file
45
drivers/periph_common/Kconfig.usbdev
Normal file
@ -0,0 +1,45 @@
|
||||
# Copyright (c) 2020 HAW Hamburg
|
||||
# 2022 Gunar Schorcht
|
||||
#
|
||||
# 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_PERIPH_USBDEV
|
||||
bool "USBDEV peripheral driver"
|
||||
depends on HAS_PERIPH_USBDEV
|
||||
select MODULE_PERIPH_COMMON
|
||||
select MODULE_PERIPH_USBDEV_CLK
|
||||
|
||||
if MODULE_PERIPH_USBDEV
|
||||
|
||||
# TODO: the 'init' modules are actually just artifacts from the way
|
||||
# periph_init_% modules are handled in Makefile. We need to define them to keep
|
||||
# the list the same for now. We should be able to remove them later on.
|
||||
|
||||
config MODULE_PERIPH_INIT_USBDEV
|
||||
bool "Auto initialize USBDEV peripheral"
|
||||
default y if MODULE_PERIPH_INIT
|
||||
|
||||
config MODULE_PERIPH_USBDEV_HS_ULPI
|
||||
bool "Use USB HS peripheral with ULPI HS PHY"
|
||||
depends on HAS_PERIPH_USBDEV_HS_ULPI
|
||||
|
||||
config MODULE_PERIPH_INIT_USBDEV_HS_ULPI
|
||||
bool
|
||||
depends on MODULE_PERIPH_USBDEV_HS_ULPI
|
||||
default y if MODULE_PERIPH_INIT
|
||||
|
||||
endif
|
||||
|
||||
config MODULE_PERIPH_USBDEV_CLK
|
||||
bool
|
||||
depends on HAS_PERIPH_USBDEV
|
||||
help
|
||||
Enable the USB device specific clock settings, if there are any
|
||||
|
||||
config MODULE_PERIPH_INIT_USBDEV_CLK
|
||||
bool
|
||||
depends on MODULE_PERIPH_USBDEV_CLK
|
||||
default y if MODULE_PERIPH_INIT
|
Loading…
Reference in New Issue
Block a user