1 /* 2 * Copyright (c) 2018 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <cmsis_os.h> 9 10 /** 11 * @brief Wait for Timeout (Time Delay in ms). 12 */ osDelay(uint32_t delay_ms)13osStatus osDelay(uint32_t delay_ms) 14 { 15 if (k_is_in_isr()) { 16 return osErrorISR; 17 } 18 19 k_msleep(delay_ms); 20 return osEventTimeout; 21 } 22