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 493ec400a291b47d5262a61f3066f7f38ca84a8a
Author: raiden00pl <[email protected]>
AuthorDate: Thu Oct 29 20:16:04 2026 +0100

    boards/nucleo-f767zi: Define the LPTIM1 kernel clock.
    
    LPTIM1 runs on PCLK1, selected by STM32_RCC_DCKCFGR2_LPTIM1SRC.
    
    Signed-off-by: raiden00pl <[email protected]>
    Assisted-by: Claude Code
---
 boards/arm/stm32f7/nucleo-f767zi/include/board.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/boards/arm/stm32f7/nucleo-f767zi/include/board.h 
b/boards/arm/stm32f7/nucleo-f767zi/include/board.h
index 3de63bb433e..80351ad9a1b 100644
--- a/boards/arm/stm32f7/nucleo-f767zi/include/board.h
+++ b/boards/arm/stm32f7/nucleo-f767zi/include/board.h
@@ -180,6 +180,10 @@
 #define STM32_TIM13_CLKIN  (2*STM32_PCLK1_FREQUENCY)
 #define STM32_TIM14_CLKIN  (2*STM32_PCLK1_FREQUENCY)
 
+/* LPTIM1 kernel clock is PCLK1 (STM32_RCC_DCKCFGR2_LPTIM1SRC) */
+
+#define STM32_LPTIM1_CLKIN STM32_PCLK1_FREQUENCY
+
 /* APB2 clock (PCLK2) is HCLK/2 (108MHz) */
 
 #define STM32_RCC_CFGR_PPRE2    RCC_CFGR_PPRE2_HCLKd2     /* PCLK2 = HCLK / 2 
*/

Reply via email to