Feder Liang | 7e15ea9 | 2021-12-08 16:37:30 +0800 | [diff] [blame^] | 1 | /* |
| 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 |
| 12 | extern "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 | */ |
| 23 | int32_t os_wrapper_delay_until(uint32_t ticks); |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | |
| 29 | #endif /* __OS_WRAPPER_DELAY_H__ */ |