blob: 7e734595253f857593562e6417b596fbf45f8f0c [file] [log] [blame]
Feder Liang7e15ea92021-12-08 16:37:30 +08001/*
2 * Copyright (c) 2022, Arm Limited. All rights reserved.
BohdanHunko75ee82b2023-02-03 14:47:01 +02003 * Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company)
4 * or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
Feder Liang7e15ea92021-12-08 16:37:30 +08005 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 *
8 */
9
10#ifndef __OS_WRAPPER_DELAY_H__
11#define __OS_WRAPPER_DELAY_H__
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
BohdanHunko75ee82b2023-02-03 14:47:01 +020017#include "os_wrapper/common.h"
Feder Liang7e15ea92021-12-08 16:37:30 +080018
19/**
Feder Liangf9fbd582022-02-15 17:59:11 +080020 * \brief Waits for a time period specified in kernel ticks.
Feder Liang7e15ea92021-12-08 16:37:30 +080021 *
22 * \return \ref OS_WRAPPER_SUCCESS if the time delay is executed, or
23 * \ref OS_WRAPPER_ERROR in case of error
24 */
Feder Liangf9fbd582022-02-15 17:59:11 +080025int32_t os_wrapper_delay(uint32_t ticks);
Feder Liang7e15ea92021-12-08 16:37:30 +080026
27#ifdef __cplusplus
28}
29#endif
30
31#endif /* __OS_WRAPPER_DELAY_H__ */