mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-17 04:22:14 +02:00
Make the component compatible with IDFv4.1, v4.2, v4.3
This commit is contained in:
@ -14,6 +14,8 @@
|
||||
|
||||
#ifndef _ESP_MODEM_PRIMITIVES_HPP_
|
||||
#define _ESP_MODEM_PRIMITIVES_HPP_
|
||||
|
||||
#include "esp_event.h"
|
||||
#include "esp_modem_exception.hpp"
|
||||
|
||||
#if defined(CONFIG_IDF_TARGET_LINUX)
|
||||
@ -34,7 +36,7 @@ namespace esp_modem {
|
||||
using TaskFunction_t = void (*)(void*);
|
||||
#if !defined(CONFIG_IDF_TARGET_LINUX)
|
||||
struct Lock {
|
||||
using MutexT = QueueDefinition*;
|
||||
using MutexT = QueueHandle_t;
|
||||
explicit Lock();
|
||||
~Lock();
|
||||
void lock();
|
||||
|
Reference in New Issue
Block a user