This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a7daf0a04d23c56fa4fab42d797406f27e029dd8 Author: wangchengdong <[email protected]> AuthorDate: Mon Jan 19 09:27:23 2026 +0800 drivers/alt1250: remove altmdm_timer for no signals When all signals are disabled, remove the altmdm_timer-related implementation and API definitions. Signed-off-by: Chengdong Wang <[email protected]> --- drivers/modem/alt1250/CMakeLists.txt | 7 +++++-- drivers/modem/alt1250/Make.defs | 4 +++- drivers/modem/alt1250/altmdm_timer.h | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/modem/alt1250/CMakeLists.txt b/drivers/modem/alt1250/CMakeLists.txt index 443f02aa3fc..6c01209a13b 100644 --- a/drivers/modem/alt1250/CMakeLists.txt +++ b/drivers/modem/alt1250/CMakeLists.txt @@ -40,8 +40,11 @@ if(CONFIG_MODEM_ALT1250) altcom_errno.c altmdm.c altmdm_event.c - altmdm_spi.c - altmdm_timer.c) + altmdm_spi.c) + + if(NOT CONFIG_DISABLE_ALL_SIGNALS) + list(APPEND SRCS altmdm_timer.c) + endif() target_sources(drivers PRIVATE ${SRCS}) endif() diff --git a/drivers/modem/alt1250/Make.defs b/drivers/modem/alt1250/Make.defs index 26ce27f06f7..9c9cff8d912 100644 --- a/drivers/modem/alt1250/Make.defs +++ b/drivers/modem/alt1250/Make.defs @@ -42,7 +42,9 @@ CSRCS += altcom_errno.c CSRCS += altmdm.c CSRCS += altmdm_event.c CSRCS += altmdm_spi.c -CSRCS += altmdm_timer.c + ifneq ($(CONFIG_DISABLE_ALL_SIGNALS),y) + CSRCS += altmdm_timer.c + endif endif DEPPATH += --dep-path modem$(DELIM)alt1250 diff --git a/drivers/modem/alt1250/altmdm_timer.h b/drivers/modem/alt1250/altmdm_timer.h index 58f67d916bb..f7cc4412093 100644 --- a/drivers/modem/alt1250/altmdm_timer.h +++ b/drivers/modem/alt1250/altmdm_timer.h @@ -32,6 +32,7 @@ #include <signal.h> #include <time.h> +#ifndef CONFIG_DISABLE_ALL_SIGNALS /**************************************************************************** * Public Function Prototypes ****************************************************************************/ @@ -109,5 +110,5 @@ int altmdm_timer_is_running(timer_t timerid); ****************************************************************************/ void altmdm_timer_stop(timer_t timerid); - +#endif /* !CONFIG_DISABLE_ALL_SIGNALS */ #endif /* __DEVICES_MODEM_ALT1250_ALTMDM_TIMER_H */
