This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c471393fa3c043cd6756893e5411b03c2442c5f4
Author: raiden00pl <[email protected]>
AuthorDate: Wed Nov 4 12:20:07 2026 +0100

    arch/arm/stm32: Fix the DMA2D AMTCR dead time field shift.
    
    The DT field is bits 8-15 but its shift was 0, which overlaps the EN
    bit.
    
    Assisted-by: Claude:claude-fable-5-1
    Signed-off-by: raiden00pl <[email protected]>
---
 arch/arm/src/common/stm32/hardware/stm32_dma2d.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/common/stm32/hardware/stm32_dma2d.h 
b/arch/arm/src/common/stm32/hardware/stm32_dma2d.h
index 35abefb0915..5990228e183 100644
--- a/arch/arm/src/common/stm32/hardware/stm32_dma2d.h
+++ b/arch/arm/src/common/stm32/hardware/stm32_dma2d.h
@@ -226,7 +226,7 @@
 /* DMA2D AHB Master Timer Configuration Register */
 
 #define DMA2D_AMTCR_EN              (1 << 0) /* Enable */
-#define DMA2D_AMTCR_DT_SHIFT        (0)      /* Bits 8-15 Dead Time */
+#define DMA2D_AMTCR_DT_SHIFT        (8)      /* Bits 8-15 Dead Time */
 #define DMA2D_AMTCR_DT_MASK         (0xff << DMA2D_AMTCR_DT_SHIFT)
 #define DMA2D_AMTCR_DT(n)           ((uint32_t)(n) << DMA2D_AMTCR_DT_SHIFT)
 

Reply via email to