blob: 9eaf95fbef2479a2422071156e1dbd075251bd1a [file] [log] [blame]
Feder Liang7e15ea92021-12-08 16:37:30 +08001/*
2 * Copyright (c) 2022, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __OS_WRAPPER_DELAY_H__
9#define __OS_WRAPPER_DELAY_H__
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "common.h"
16
17/**
18 * \brief Wait until an absolute time (specified in kernel ticks) is reached.
19 *
20 * \return \ref OS_WRAPPER_SUCCESS if the time delay is executed, or
21 * \ref OS_WRAPPER_ERROR in case of error
22 */
23int32_t os_wrapper_delay_until(uint32_t ticks);
24
25#ifdef __cplusplus
26}
27#endif
28
29#endif /* __OS_WRAPPER_DELAY_H__ */