#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

if ARCH_CHIP_STM32WL5

comment "STM32WL5 Configuration Options"

config STM32_WL5_PERIPHERALS
	bool
	default ARCH_CHIP_STM32WL5
	select STM32_HAVE_SYSCFG
	select STM32_HAVE_IPCC

choice
	prompt "STM32 WL5 Chip Selection"
	default ARCH_CHIP_STM32WL55JC_CPU1
	depends on ARCH_CHIP_STM32WL5

config ARCH_CHIP_STM32WL55JC_CPU1
	bool "STM32WL55JC (cpu1)"
	select STM32_STM32WL5XXX_CPU1
	select STM32_STM32WL5XXX
	select STM32_FLASH_CONFIG_C
	---help---
		STM32 WL5 Cortex M4 (cpu1), 256kiB FLASH, 64kiB SRAM

config ARCH_CHIP_STM32WL55JC_CPU2
	bool "STM32WL55JC (cpu2)"
	select STM32_STM32WL5XXX_CPU2
	select STM32_STM32WL5XXX
	select STM32_FLASH_CONFIG_C
	---help---
		STM32 WL5 Cortex M0 (cpu2), 256kiB FLASH, 64kiB SRAM

endchoice # STM32 WL5 Chip Selection

# Chip product lines

config STM32_STM32WL5XXX
	bool

config STM32_STM32WL5XXX_CPU1
	bool
	default y
	select STM32_HAVE_USART1
	select STM32_HAVE_USART2
	select STM32_HAVE_LPUART1
	select STM32_HAVE_SPI1
	select STM32_HAVE_SPI2S2

endif # ARCH_CHIP_STM32WL5
