2022-12-14 04:10:54 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ESP_MODEM_WRAPPER_INTERNAL_H__
|
|
|
|
#define __ESP_MODEM_WRAPPER_INTERNAL_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
bool esp_coex_common_env_is_chip_wrapper(void);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void * esp_coex_common_spin_lock_create_wrapper(void);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
uint32_t esp_coex_common_int_disable_wrapper(void *wifi_int_mux);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_int_restore_wrapper(void *wifi_int_mux, uint32_t tmp);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_task_yield_from_isr_wrapper(void);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void * esp_coex_common_semphr_create_wrapper(uint32_t max, uint32_t init);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_semphr_delete_wrapper(void *semphr);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
int32_t esp_coex_common_semphr_take_wrapper(void *semphr, uint32_t block_time_tick);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
int32_t esp_coex_common_semphr_give_wrapper(void *semphr);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_timer_disarm_wrapper(void *timer);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_timer_done_wrapper(void *ptimer);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_timer_setfn_wrapper(void *ptimer, void *pfunction, void *parg);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void esp_coex_common_timer_arm_us_wrapper(void *ptimer, uint32_t us, bool repeat);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
void * esp_coex_common_malloc_internal_wrapper(size_t size);
|
2022-12-14 04:10:54 -05:00
|
|
|
|
2023-02-21 03:18:15 -05:00
|
|
|
#ifndef CONFIG_IDF_TARGET_ESP32
|
|
|
|
uint32_t esp_coex_common_clk_slowclk_cal_get_wrapper(void);
|
2022-12-14 04:10:54 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|