blob: 4242b81626cba9b44ee34357fe98202dae23228d [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/**
Feder Liangf9fbd582022-02-15 17:59:11 +080018 * \brief Waits for a time period specified in kernel ticks.
Feder Liang7e15ea92021-12-08 16:37:30 +080019 *
20 * \return \ref OS_WRAPPER_SUCCESS if the time delay is executed, or
21 * \ref OS_WRAPPER_ERROR in case of error
22 */
Feder Liangf9fbd582022-02-15 17:59:11 +080023int32_t os_wrapper_delay(uint32_t ticks);
Feder Liang7e15ea92021-12-08 16:37:30 +080024
25#ifdef __cplusplus
26}
27#endif
28
29#endif /* __OS_WRAPPER_DELAY_H__ */