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 1bb1edbdf4f16e366c6d4b74d767836bf5f33a63 Author: raiden00pl <[email protected]> AuthorDate: Tue Nov 3 11:00:24 2026 +0100 boards/nucleo-f303re: Remove the unused timer driver setup. stm32_timer_driver_setup() had no caller. Timers are registered by the STM32 board common BOARD_STM32_COMMON_TIMn_TIMER options. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: raiden00pl <[email protected]> --- .../arm/stm32f3/nucleo-f303re/src/CMakeLists.txt | 4 -- boards/arm/stm32f3/nucleo-f303re/src/Make.defs | 4 -- .../arm/stm32f3/nucleo-f303re/src/nucleo-f303re.h | 21 ------- boards/arm/stm32f3/nucleo-f303re/src/stm32_timer.c | 67 ---------------------- 4 files changed, 96 deletions(-) diff --git a/boards/arm/stm32f3/nucleo-f303re/src/CMakeLists.txt b/boards/arm/stm32f3/nucleo-f303re/src/CMakeLists.txt index 1171aa3ae21..2e50bff7e64 100644 --- a/boards/arm/stm32f3/nucleo-f303re/src/CMakeLists.txt +++ b/boards/arm/stm32f3/nucleo-f303re/src/CMakeLists.txt @@ -48,10 +48,6 @@ if(CONFIG_LCD_SSD1351) list(APPEND SRCS stm32_ssd1351.c) endif() -if(CONFIG_TIMER) - list(APPEND SRCS stm32_timer.c) -endif() - if(CONFIG_BOARDCTL_UNIQUEID) list(APPEND SRCS stm32_uid.c) endif() diff --git a/boards/arm/stm32f3/nucleo-f303re/src/Make.defs b/boards/arm/stm32f3/nucleo-f303re/src/Make.defs index 4518007ceda..12ec9b25b73 100644 --- a/boards/arm/stm32f3/nucleo-f303re/src/Make.defs +++ b/boards/arm/stm32f3/nucleo-f303re/src/Make.defs @@ -48,10 +48,6 @@ ifeq ($(CONFIG_LCD_SSD1351),y) CSRCS += stm32_ssd1351.c endif -ifeq ($(CONFIG_TIMER),y) -CSRCS += stm32_timer.c -endif - ifeq ($(CONFIG_BOARDCTL_UNIQUEID),y) CSRCS += stm32_uid.c endif diff --git a/boards/arm/stm32f3/nucleo-f303re/src/nucleo-f303re.h b/boards/arm/stm32f3/nucleo-f303re/src/nucleo-f303re.h index ad3e20ede8c..c8ee8f55c7a 100644 --- a/boards/arm/stm32f3/nucleo-f303re/src/nucleo-f303re.h +++ b/boards/arm/stm32f3/nucleo-f303re/src/nucleo-f303re.h @@ -125,27 +125,6 @@ void weak_function stm32_spidev_initialize(void); #endif -/**************************************************************************** - * Name: stm32_timer_driver_setup - * - * Description: - * Configure the timer driver. - * - * Input Parameters: - * devpath - The full path to the timer device. - * This should be of the form /dev/timer0 - * timer - The timer's number. - * - * Returned Value: - * Zero (OK) is returned on success; A negated errno value is returned - * to indicate the nature of any failure. - * - ****************************************************************************/ - -#ifdef CONFIG_TIMER -int stm32_timer_driver_setup(const char *devpath, int timer); -#endif - /**************************************************************************** * Name: stm32_pwm_setup * diff --git a/boards/arm/stm32f3/nucleo-f303re/src/stm32_timer.c b/boards/arm/stm32f3/nucleo-f303re/src/stm32_timer.c deleted file mode 100644 index 61e2ff9d063..00000000000 --- a/boards/arm/stm32f3/nucleo-f303re/src/stm32_timer.c +++ /dev/null @@ -1,67 +0,0 @@ -/**************************************************************************** - * boards/arm/stm32f3/nucleo-f303re/src/stm32_timer.c - * - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include <nuttx/config.h> -#include <nuttx/timers/timer.h> - -#include <nuttx/debug.h> - -#include "stm32_tim.h" -#include "nucleo-f303re.h" - -#ifdef CONFIG_TIMER - -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: stm32_timer_driver_setup - * - * Description: - * Configure the timer driver. - * - * Input Parameters: - * devpath - The full path to the timer device. This should be of the - * form /dev/timer0 - * timer - The timer's number. - * - * Returned Value: - * Zero (OK) is returned on success; A negated errno value is returned - * to indicate the nature of any failure. - * - ****************************************************************************/ - -int stm32_timer_driver_setup(const char *devpath, int timer) -{ - return stm32_timer_initialize(devpath, timer); -} - -#endif
