This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 55b0ea4c55664894ccf17eab2e2c847953a5c137 Author: wangchengdong <[email protected]> AuthorDate: Fri Dec 12 14:52:46 2025 +0800 nuttx/arch.h: Enable up_alarm_start / up_timer_start by default Enable up_alarm_start and up_timer_start by default so they can be used by both the tickless scheduler and the high-resolution timer subsystem. Signed-off-by: Chengdong Wang <[email protected]> --- include/nuttx/arch.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index 0a6ae780402..8657eb7a457 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -1999,10 +1999,10 @@ int up_alarm_tick_cancel(FAR clock_t *ticks); * ****************************************************************************/ -#if defined(CONFIG_SCHED_TICKLESS) && defined(CONFIG_SCHED_TICKLESS_ALARM) -# ifndef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT int up_alarm_start(FAR const struct timespec *ts); -# else + +#if defined(CONFIG_SCHED_TICKLESS) && defined(CONFIG_SCHED_TICKLESS_ALARM) +# ifdef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT int up_alarm_tick_start(clock_t ticks); # endif #endif @@ -2076,10 +2076,10 @@ int up_timer_tick_cancel(FAR clock_t *ticks); * ****************************************************************************/ -#if defined(CONFIG_SCHED_TICKLESS) && !defined(CONFIG_SCHED_TICKLESS_ALARM) -# ifndef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT int up_timer_start(FAR const struct timespec *ts); -# else + +#if defined(CONFIG_SCHED_TICKLESS) && !defined(CONFIG_SCHED_TICKLESS_ALARM) +# ifdef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT int up_timer_tick_start(clock_t ticks); # endif #endif
