mirror of
https://github.com/apache/nuttx.git
synced 2026-09-03 23:52:58 +00:00
arch/arm/stm32: Introduce STM32_COMMON_M33 family group
Replace the enumerated STM32U3/U5 chip conditions in the common M33 source lists and the RCC dispatch header with a single STM32_COMMON_M33 symbol, following the existing STM32_COMMON_* convention. Signed-off-by: raiden00pl <raiden00@railab.me> Assisted-by: Claude Code
This commit is contained in:
parent
7d0ad175ac
commit
8de9306342
4 changed files with 9 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ if(CONFIG_STM32_HAVE_IP_EXTI_M33_V1)
|
|||
list(APPEND SRCS stm32_exti_gpio_m33_v1.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ARCH_CHIP_STM32U3 OR CONFIG_ARCH_CHIP_STM32U5)
|
||||
if(CONFIG_STM32_COMMON_M33)
|
||||
list(APPEND SRCS stm32_allocateheap_m33_v1.c stm32_irq_m33_v1.c
|
||||
stm32_start_m33_v1.c stm32_timerisr_m33_v1.c)
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@ config STM32_COMMON_L4_H5_L5_U5
|
|||
default y if STM32_COMMON_L4_L5_U5
|
||||
default y if ARCH_CHIP_STM32H5
|
||||
|
||||
config STM32_COMMON_M33
|
||||
bool
|
||||
default y if ARCH_CHIP_STM32U3
|
||||
default y if ARCH_CHIP_STM32U5
|
||||
|
||||
config STM32_COMMON_FULL_FEATURED
|
||||
bool
|
||||
default y if STM32_COMMON_LEGACY
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ ifeq ($(CONFIG_STM32_HAVE_IP_EXTI_M33_V1),y)
|
|||
CHIP_CSRCS += stm32_exti_gpio_m33_v1.c
|
||||
endif
|
||||
|
||||
ifneq ($(filter y,$(CONFIG_ARCH_CHIP_STM32U3) \
|
||||
$(CONFIG_ARCH_CHIP_STM32U5)),)
|
||||
ifeq ($(CONFIG_STM32_COMMON_M33),y)
|
||||
CHIP_CSRCS += stm32_allocateheap_m33_v1.c
|
||||
CHIP_CSRCS += stm32_irq_m33_v1.c
|
||||
CHIP_CSRCS += stm32_start_m33_v1.c
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@
|
|||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_ARCH_CHIP_STM32U3) || \
|
||||
defined(CONFIG_ARCH_CHIP_STM32U5)
|
||||
#ifdef CONFIG_STM32_COMMON_M33
|
||||
|
||||
# include "stm32_rcc_m33.h"
|
||||
|
||||
|
|
@ -231,5 +230,5 @@ void stm32_rcc_disablelsi(void);
|
|||
#endif
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* STM32U3 || STM32U5 */
|
||||
#endif /* CONFIG_STM32_COMMON_M33 */
|
||||
#endif /* __ARCH_ARM_SRC_COMMON_STM32_STM32_RCC_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue