forked from espressif/arduino-esp32
Fix compilation for use as IDF component (#5265)
This commit is contained in:
@ -20,11 +20,15 @@ extern "C" {
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include "esp_littlefs.h"
|
||||
}
|
||||
|
||||
#include "sdkconfig.h"
|
||||
#include "LITTLEFS.h"
|
||||
|
||||
#ifdef CONFIG_LITTLEFS_PAGE_SIZE
|
||||
extern "C" {
|
||||
#include "esp_littlefs.h"
|
||||
}
|
||||
|
||||
using namespace fs;
|
||||
|
||||
class LITTLEFSImpl : public VFSImpl
|
||||
@ -137,4 +141,4 @@ size_t LITTLEFSFS::usedBytes()
|
||||
}
|
||||
|
||||
LITTLEFSFS LITTLEFS;
|
||||
|
||||
#endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "RMaker.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
#include <esp_rmaker_schedule.h>
|
||||
#include <esp_rmaker_utils.h>
|
||||
bool wifiLowLevelInit(bool persistent);
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "RMakerNode.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "RMakerDevice.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
static esp_err_t err;
|
||||
typedef void (*deviceWriteCb)(Device*, Param*, const param_val_t val, void *priv_data, write_ctx_t *ctx);
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include "RMakerParam.h"
|
||||
#include <esp_rmaker_standard_devices.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "RMakerNode.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
static esp_err_t err;
|
||||
|
||||
esp_err_t Node::addDevice(Device device)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include "RMakerDevice.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "RMakerParam.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
static esp_err_t err;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include "RMakerType.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include <qrcode.h>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "RMakerType.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
param_val_t value(int ival)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include <esp_rmaker_core.h>
|
||||
#include <esp_rmaker_ota.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "esp_system.h"
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
|
||||
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include <esp_rmaker_utils.h>
|
||||
|
||||
|
@ -20,8 +20,8 @@
|
||||
#include "WiFi.h"
|
||||
|
||||
#ifndef MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED
|
||||
# error "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher"
|
||||
#endif
|
||||
# warning "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher"
|
||||
#else
|
||||
|
||||
const char *pers = "esp32-tls";
|
||||
|
||||
@ -459,3 +459,5 @@ bool verify_ssl_dn(sslclient_context *ssl_client, const char* domain_name)
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user