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 f8171b5b80a2ae1634942e80cec332e71f73cc1b Author: raiden00pl <[email protected]> AuthorDate: Tue Nov 3 11:00:24 2026 +0100 boards/nucleo-u083rc: Register the timers with the board common code. TIM6 was registered as /dev/timer0 by the board. jumbo now uses BOARD_STM32_COMMON_TIM6_TIMER, which registers /dev/timer6. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: raiden00pl <[email protected]> --- .../platforms/arm/stm32u0/boards/nucleo-u083rc/index.rst | 2 +- boards/arm/stm32u0/nucleo-u083rc/configs/jumbo/defconfig | 2 ++ boards/arm/stm32u0/nucleo-u083rc/src/stm32_bringup.c | 14 -------------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Documentation/platforms/arm/stm32u0/boards/nucleo-u083rc/index.rst b/Documentation/platforms/arm/stm32u0/boards/nucleo-u083rc/index.rst index acaff4e47f0..339f09b8735 100644 --- a/Documentation/platforms/arm/stm32u0/boards/nucleo-u083rc/index.rst +++ b/Documentation/platforms/arm/stm32u0/boards/nucleo-u083rc/index.rst @@ -49,7 +49,7 @@ Enabled features: - Quadrature encoder on TIM3 (PA6/PA7, D12/D11) -- Timer driver on TIM6 (/dev/timer0) +- Timer driver on TIM6 (/dev/timer6) - IWDG and WWDG watchdogs diff --git a/boards/arm/stm32u0/nucleo-u083rc/configs/jumbo/defconfig b/boards/arm/stm32u0/nucleo-u083rc/configs/jumbo/defconfig index 84ec84ee4d6..58b35bb981a 100644 --- a/boards/arm/stm32u0/nucleo-u083rc/configs/jumbo/defconfig +++ b/boards/arm/stm32u0/nucleo-u083rc/configs/jumbo/defconfig @@ -20,6 +20,7 @@ CONFIG_ARCH_IRQBUTTONS=y CONFIG_ARCH_STACKDUMP=y CONFIG_BOARDCTL=y CONFIG_BOARD_LOOPSPERMSEC=4663 +CONFIG_BOARD_STM32_COMMON_TIM6_TIMER=y CONFIG_BUILTIN=y CONFIG_DEBUG_FEATURES=y CONFIG_DEBUG_FULLOPT=y @@ -37,6 +38,7 @@ CONFIG_EXAMPLES_HELLO=y CONFIG_EXAMPLES_PWM=y CONFIG_EXAMPLES_QENCODER=y CONFIG_EXAMPLES_TIMER=y +CONFIG_EXAMPLES_TIMER_DEVNAME="/dev/timer6" CONFIG_EXAMPLES_WATCHDOG=y CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INIT_STACKSIZE=1536 diff --git a/boards/arm/stm32u0/nucleo-u083rc/src/stm32_bringup.c b/boards/arm/stm32u0/nucleo-u083rc/src/stm32_bringup.c index da493da82db..a7bbb7a9c02 100644 --- a/boards/arm/stm32u0/nucleo-u083rc/src/stm32_bringup.c +++ b/boards/arm/stm32u0/nucleo-u083rc/src/stm32_bringup.c @@ -38,10 +38,6 @@ # include <nuttx/leds/userled.h> #endif -#ifdef CONFIG_TIMER -# include <stm32_tim.h> -#endif - #ifdef CONFIG_SENSORS_QENCODER # include "board_qencoder.h" #endif @@ -87,16 +83,6 @@ int stm32_bringup(void) ret); } -#if defined(CONFIG_TIMER) && defined(CONFIG_STM32_TIM6) - /* Initialize and register the timer driver - TIM6 */ - - ret = stm32_timer_initialize("/dev/timer0", 6); - if (ret < 0) - { - syslog(LOG_ERR, "ERROR: stm32_timer_initialize failed: %d\n", ret); - } -#endif - #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) /* Register the LED driver */
