1 /*
2  * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system.
7  * The header file used normally for ESP-IDF has the same name but is located elsewhere.
8  */
9 #pragma once
10 
11 #if defined(__cplusplus)
12 extern "C" {
13 #endif
14 
15 #define vSemaphoreDelete( xSemaphore )
16 #define xSemaphoreCreateMutex()                     ((void*)(1))
17 #define xSemaphoreGive( xSemaphore )
18 #define xSemaphoreTake( xSemaphore, xBlockTime )    pdTRUE
19 
20 typedef void* SemaphoreHandle_t;
21 
22 #if defined(__cplusplus)
23 }
24 #endif
25