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 a86af7abcdbbcbfef76730b8ab1bdbab4f73d53f Author: wangchengdong <[email protected]> AuthorDate: Mon Dec 15 09:25:04 2025 +0800 drivers/timers: Implement up_alarm_start() in arch_alarm.c Add the implementation of up_alarm_start() in arch_alarm.c. Signed-off-by: Chengdong Wang [email protected] --- drivers/timers/arch_alarm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/timers/arch_alarm.c b/drivers/timers/arch_alarm.c index de1019ab871..4377d37fbcc 100644 --- a/drivers/timers/arch_alarm.c +++ b/drivers/timers/arch_alarm.c @@ -367,6 +367,18 @@ int weak_function up_alarm_tick_cancel(FAR clock_t *ticks) * ****************************************************************************/ +int weak_function up_alarm_start(const struct timespec *ts) +{ + int ret = -EAGAIN; + + if (g_oneshot_lower != NULL) + { + ret = ONESHOT_ABSOLUTE(g_oneshot_lower, ts); + } + + return ret; +} + #ifdef CONFIG_SCHED_TICKLESS int weak_function up_alarm_tick_start(clock_t ticks) {
