esp_modem_wrapper.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef __ESP_MODEM_WRAPPER_INTERNAL_H__
  7. #define __ESP_MODEM_WRAPPER_INTERNAL_H__
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #include <string.h>
  12. #include <stdint.h>
  13. #include <stdbool.h>
  14. bool esp_coex_common_env_is_chip_wrapper(void);
  15. void * esp_coex_common_spin_lock_create_wrapper(void);
  16. uint32_t esp_coex_common_int_disable_wrapper(void *wifi_int_mux);
  17. void esp_coex_common_int_restore_wrapper(void *wifi_int_mux, uint32_t tmp);
  18. void esp_coex_common_task_yield_from_isr_wrapper(void);
  19. void * esp_coex_common_semphr_create_wrapper(uint32_t max, uint32_t init);
  20. void esp_coex_common_semphr_delete_wrapper(void *semphr);
  21. int32_t esp_coex_common_semphr_take_wrapper(void *semphr, uint32_t block_time_tick);
  22. int32_t esp_coex_common_semphr_give_wrapper(void *semphr);
  23. void esp_coex_common_timer_disarm_wrapper(void *timer);
  24. void esp_coex_common_timer_done_wrapper(void *ptimer);
  25. void esp_coex_common_timer_setfn_wrapper(void *ptimer, void *pfunction, void *parg);
  26. void esp_coex_common_timer_arm_us_wrapper(void *ptimer, uint32_t us, bool repeat);
  27. void * esp_coex_common_malloc_internal_wrapper(size_t size);
  28. #ifndef CONFIG_IDF_TARGET_ESP32
  29. uint32_t esp_coex_common_clk_slowclk_cal_get_wrapper(void);
  30. #endif
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif