This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit bcab45858530644b510b3310c105fba41853f374 Author: Jakob Jungreuthmayer <[email protected]> AuthorDate: Mon Nov 2 14:59:37 2026 +0100 arch/arm/stm32: Define DMACHAN_SETTING() without CSELR The STM32F0 DMA channel table uses DMACHAN_SETTING(), which was only defined for DMA controllers with a CSELR register. On parts without one, such as the STM32F07x, every DMACHAN_* definition expanded to a call of an undeclared function. Without CSELR, stm32_dmachannel() takes its argument as the channel index, so DMACHAN_SETTING() now yields the channel. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jakob Jungreuthmayer <[email protected]> --- arch/arm/src/common/stm32/hardware/stm32_dma_v1_7ch.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/common/stm32/hardware/stm32_dma_v1_7ch.h b/arch/arm/src/common/stm32/hardware/stm32_dma_v1_7ch.h index 9cd4fc23e78..d9818d1ed3f 100644 --- a/arch/arm/src/common/stm32/hardware/stm32_dma_v1_7ch.h +++ b/arch/arm/src/common/stm32/hardware/stm32_dma_v1_7ch.h @@ -317,6 +317,8 @@ # define DMACHAN_SETTING_CHANNEL_SHIFT (0) # define DMACHAN_SETTING_FUNCTION_MASK 0xff00 # define DMACHAN_SETTING_FUNCTION_SHIFT (8) +#else +# define DMACHAN_SETTING(chan, sel) (chan) #endif #if defined(CONFIG_ARCH_CHIP_STM32F0)
