zephyr/drivers/usb/udc/Kconfig.stm32
Pisit Sawangvonganan 0ef38013b7 drivers: udc: stm32: update STM32_CLOCK_CHECK definition
Introduce `UDC_STM32_CLOCK_CHECK` Kconfig option since
`USB_DC_STM32_CLOCK_CHECK` was intended for use with `usb_dc_stm32.c`,
which is mutually exclusive with `udc_stm32.c`.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-01-31 11:50:01 +01:00

46 lines
1.2 KiB
Text

# Copyright (c) 2023 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
config UDC_STM32
bool "STM32 USB device controller driver"
depends on DT_HAS_ST_STM32_OTGFS_ENABLED \
|| DT_HAS_ST_STM32_OTGHS_ENABLED \
|| DT_HAS_ST_STM32_USB_ENABLED
select USE_STM32_LL_USB
select USE_STM32_HAL_PCD
select USE_STM32_HAL_PCD_EX
select PINCTRL
default y
help
STM32 USB device controller driver.
if UDC_STM32
config UDC_STM32_STACK_SIZE
int "UDC controller driver internal thread stack size"
default 512
help
STM32 USB device controller driver internal thread stack size.
config UDC_STM32_THREAD_PRIORITY
int "STM32 USB controller driver thread priority"
default 8
help
STM32 USB device controller driver thread priority.
config UDC_STM32_MAX_QMESSAGES
int "STM32 UDC driver maximum number of ISR event messages"
range 4 64
default 8
help
Maximum number of messages for handling of STM32 USBD ISR events.
config UDC_STM32_CLOCK_CHECK
bool "Runtime USB 48MHz clock check"
default y if !(SOC_SERIES_STM32F1X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32U5X)
help
Enable USB clock 48MHz configuration runtime check.
In specific cases, this check might provide wrong verdict and should
be disabled.
endif