Skip to content

IDF release/v4.4 #6585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions platform.txt

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion tools/platformio-build-esp32.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"-u", "pthread_include_pthread_cond_impl",
"-u", "pthread_include_pthread_local_storage_impl",
"-u", "pthread_include_pthread_rwlock_impl",
"-u", "include_esp_phy_override",
"-u", "ld_include_highint_hdl",
"-u", "start_app",
"-u", "start_app_other_cores",
Expand Down Expand Up @@ -309,7 +310,7 @@
"UNITY_INCLUDE_CONFIG_H",
"WITH_POSIX",
"_GNU_SOURCE",
("IDF_VER", '\\"v4.4-367-gc29343eb94\\"'),
("IDF_VER", '\\"v4.4.1-1-gb8050b365e\\"'),
"ESP_PLATFORM",
"_POSIX_READER_WRITER_LOCKS",
"ARDUINO_ARCH_ESP32",
Expand Down
3 changes: 2 additions & 1 deletion tools/platformio-build-esp32c3.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"-u", "pthread_include_pthread_cond_impl",
"-u", "pthread_include_pthread_local_storage_impl",
"-u", "pthread_include_pthread_rwlock_impl",
"-u", "include_esp_phy_override",
"-u", "start_app",
"-u", "__ubsan_include",
"-u", "__assert_func",
Expand Down Expand Up @@ -302,7 +303,7 @@
"UNITY_INCLUDE_CONFIG_H",
"WITH_POSIX",
"_GNU_SOURCE",
("IDF_VER", '\\"v4.4-367-gc29343eb94\\"'),
("IDF_VER", '\\"v4.4.1-1-gb8050b365e\\"'),
"ESP_PLATFORM",
"_POSIX_READER_WRITER_LOCKS",
"ARDUINO_ARCH_ESP32",
Expand Down
3 changes: 2 additions & 1 deletion tools/platformio-build-esp32s2.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"-u", "pthread_include_pthread_cond_impl",
"-u", "pthread_include_pthread_local_storage_impl",
"-u", "pthread_include_pthread_rwlock_impl",
"-u", "include_esp_phy_override",
"-u", "ld_include_highint_hdl",
"-u", "start_app",
"-u", "__ubsan_include",
Expand Down Expand Up @@ -304,7 +305,7 @@
"UNITY_INCLUDE_CONFIG_H",
"WITH_POSIX",
"_GNU_SOURCE",
("IDF_VER", '\\"v4.4-367-gc29343eb94\\"'),
("IDF_VER", '\\"v4.4.1-1-gb8050b365e\\"'),
"ESP_PLATFORM",
"_POSIX_READER_WRITER_LOCKS",
"ARDUINO_ARCH_ESP32",
Expand Down
3 changes: 2 additions & 1 deletion tools/platformio-build-esp32s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"-u", "pthread_include_pthread_cond_impl",
"-u", "pthread_include_pthread_local_storage_impl",
"-u", "pthread_include_pthread_rwlock_impl",
"-u", "include_esp_phy_override",
"-u", "ld_include_highint_hdl",
"-u", "start_app",
"-u", "start_app_other_cores",
Expand Down Expand Up @@ -321,7 +322,7 @@
"UNITY_INCLUDE_CONFIG_H",
"WITH_POSIX",
"_GNU_SOURCE",
("IDF_VER", '\\"v4.4-367-gc29343eb94\\"'),
("IDF_VER", '\\"v4.4.1-1-gb8050b365e\\"'),
"ESP_PLATFORM",
"_POSIX_READER_WRITER_LOCKS",
"ARDUINO_ARCH_ESP32",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C" {
/** Minor version number (x.X.x) */
#define ESP_IDF_VERSION_MINOR 4
/** Patch version number (x.x.X) */
#define ESP_IDF_VERSION_PATCH 0
#define ESP_IDF_VERSION_PATCH 1

/**
* Macro to convert IDF version number into an integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_ad
void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);

/* enter the critical section that protects internal registers. Don't use it in SDK. Use the functions above. */
void regi2c_enter_critical(void);
void regi2c_exit_critical(void);

#endif // BOOTLOADER_BUILD

/* Convenience macros for the above functions, these use register definitions
Expand Down
17 changes: 1 addition & 16 deletions tools/sdk/esp32/include/esp_littlefs/include/esp_littlefs.h
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
#ifndef ESP_LITTLEFS_H__
#define ESP_LITTLEFS_H__

#include <stdint.h>
#include <stddef.h>
#include <stdarg.h>
#include <unistd.h>
#include <utime.h>
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "esp_err.h"
#include <sys/types.h>
#include <sys/reent.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/poll.h>
#include <sys/dirent.h>
#include <string.h>
#include "sdkconfig.h"

#include "littlefs/lfs.h"
#include "sdkconfig.h"

#ifdef __cplusplus
extern "C" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ typedef enum {
ESP_RMAKER_REQ_SRC_CLOUD,
/** Request received when a schedule has triggered */
ESP_RMAKER_REQ_SRC_SCHEDULE,
/** Request received when a scene has been activated */
ESP_RMAKER_REQ_SRC_SCENE_ACTIVATE,
/** Request received when a scene has been deactivated */
ESP_RMAKER_REQ_SRC_SCENE_DEACTIVATE,
/** Request received from a local controller */
ESP_RMAKER_REQ_SRC_LOCAL,
/** This will always be the last value. Any value equal to or
Expand Down
38 changes: 38 additions & 0 deletions tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_scenes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Copyright 2022 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

#ifdef __cplusplus
extern "C"
{
#endif

#include <esp_err.h>

/** Enable Scenes
*
* This API enables the scenes service for the node. For more information,
* check [here](https://rainmaker.espressif.com/docs/scenes.html)
*
* @note This API should be called after esp_rmaker_node_init() but before esp_rmaker_start().
*
* @return ESP_OK on success.
* @return error in case of failure.
*/
esp_err_t esp_rmaker_scenes_enable(void);

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extern "C"
#define ESP_RMAKER_DEF_TIMEZONE_NAME "TZ"
#define ESP_RMAKER_DEF_TIMEZONE_POSIX_NAME "TZ-POSIX"
#define ESP_RMAKER_DEF_SCHEDULE_NAME "Schedules"
#define ESP_RMAKER_DEF_SCENES_NAME "Scenes"
#define ESP_RMAKER_DEF_REBOOT_NAME "Reboot"
#define ESP_RMAKER_DEF_FACTORY_RESET_NAME "Factory-Reset"
#define ESP_RMAKER_DEF_WIFI_RESET_NAME "Wi-Fi-Reset"
Expand Down Expand Up @@ -265,6 +266,20 @@ esp_rmaker_param_t *esp_rmaker_timezone_posix_param_create(const char *param_nam
*/
esp_rmaker_param_t *esp_rmaker_schedules_param_create(const char *param_name, int max_schedules);

/**
* Create standard Scenes param
*
* This will create the standard scenes parameter. Default value
* is set internally.
*
* @param[in] param_name Name of the parameter
* @param[in] max_scenes Maximum number of scenes allowed
*
* @return Parameter handle on success.
* @return NULL in case of failures.
*/
esp_rmaker_param_t *esp_rmaker_scenes_param_create(const char *param_name, int max_scenes);

/**
* Create standard Reboot param
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,24 @@ esp_rmaker_device_t *esp_rmaker_time_service_create(const char *serv_name, const
*/
esp_rmaker_device_t *esp_rmaker_create_schedule_service(const char *serv_name, esp_rmaker_device_write_cb_t write_cb, esp_rmaker_device_read_cb_t read_cb, int max_schedules, void *priv_data);

/** Create a standard Scenes service
*
* This creates a Scenes service with the mandatory parameters. The default parameter names will be used.
* Refer \ref esp_rmaker_standard_params.h for default names.
*
* @param[in] serv_name The unique service name
* @param[in] write_cb Write callback.
* @param[in] read_cb Read callback.
* @param[in] max_scenes Maximum number of scenes supported.
* @param[in] deactivation_support Deactivation callback support.
* @param[in] priv_data (Optional) Private data associated with the service. This should stay
* allocated throughout the lifetime of the service.
*
* @return service_handle on success.
* @return NULL in case of any error.
*/
esp_rmaker_device_t *esp_rmaker_create_scenes_service(const char *serv_name, esp_rmaker_device_write_cb_t write_cb, esp_rmaker_device_read_cb_t read_cb, int max_scenes, bool deactivation_support, void *priv_data);

/** Create a standard System service
*
* This creates an empty System service. Appropriate parameters should be added by the caller.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ extern "C"
#define ESP_RMAKER_PARAM_TIMEZONE "esp.param.tz"
#define ESP_RMAKER_PARAM_TIMEZONE_POSIX "esp.param.tz_posix"
#define ESP_RMAKER_PARAM_SCHEDULES "esp.param.schedules"
#define ESP_RMAKER_PARAM_SCENES "esp.param.scenes"
#define ESP_RMAKER_PARAM_REBOOT "esp.param.reboot"
#define ESP_RMAKER_PARAM_FACTORY_RESET "esp.param.factory-reset"
#define ESP_RMAKER_PARAM_WIFI_RESET "esp.param.wifi-reset"
Expand All @@ -63,6 +64,7 @@ extern "C"
#define ESP_RMAKER_SERVICE_OTA "esp.service.ota"
#define ESP_RMAKER_SERVICE_TIME "esp.service.time"
#define ESP_RMAKER_SERVICE_SCHEDULE "esp.service.schedule"
#define ESP_RMAKER_SERVICE_SCENES "esp.service.scenes"
#define ESP_RMAKER_SERVICE_SYSTEM "esp.service.system"
#define ESP_RMAKER_SERVICE_LOCAL_CONTROL "esp.service.local_control"

Expand Down
Binary file modified tools/sdk/esp32/lib/libapp_update.a
Binary file not shown.
Binary file modified tools/sdk/esp32/lib/libesp_eth.a
Binary file not shown.
Binary file modified tools/sdk/esp32/lib/libesp_littlefs.a
Binary file not shown.
Binary file modified tools/sdk/esp32/lib/libesp_phy.a
Binary file not shown.
Binary file modified tools/sdk/esp32/lib/libesp_rainmaker.a
Binary file not shown.
Binary file modified tools/sdk/esp32/lib/libesp_wifi.a
Binary file not shown.
Binary file modified tools/sdk/esp32/lib/liblwip.a
Binary file not shown.
3 changes: 2 additions & 1 deletion tools/sdk/esp32/qspi_qspi/include/sdkconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#define CONFIG_ESP_RMAKER_OTA_AUTOFETCH_PERIOD 0
#define CONFIG_ESP_RMAKER_OTA_HTTP_RX_BUFFER_SIZE 1024
#define CONFIG_ESP_RMAKER_SCHEDULING_MAX_SCHEDULES 10
#define CONFIG_ESP_RMAKER_SCENES_MAX_SCENES 10
#define CONFIG_ENABLE_ARDUINO_DEPENDS 1
#define CONFIG_AUTOSTART_ARDUINO 1
#define CONFIG_ARDUINO_RUN_CORE1 1
Expand Down Expand Up @@ -691,5 +692,5 @@
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
#define CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP
#define CONFIG_ARDUINO_IDF_COMMIT "c29343eb94"
#define CONFIG_ARDUINO_IDF_COMMIT "b8050b365e"
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
Binary file modified tools/sdk/esp32/qspi_qspi/libesp_hw_support.a
Binary file not shown.
Binary file modified tools/sdk/esp32/qspi_qspi/libesp_system.a
Binary file not shown.
7 changes: 7 additions & 0 deletions tools/sdk/esp32/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ CONFIG_ESP_RMAKER_OTA_HTTP_RX_BUFFER_SIZE=1024
#
CONFIG_ESP_RMAKER_SCHEDULING_MAX_SCHEDULES=10
# end of ESP RainMaker Scheduling

#
# ESP RainMaker Scenes
#
CONFIG_ESP_RMAKER_SCENES_MAX_SCENES=10
# CONFIG_ESP_RMAKER_SCENES_DEACTIVATE_SUPPORT is not set
# end of ESP RainMaker Scenes
# end of ESP RainMaker Config

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C" {
/** Minor version number (x.X.x) */
#define ESP_IDF_VERSION_MINOR 4
/** Patch version number (x.x.X) */
#define ESP_IDF_VERSION_PATCH 0
#define ESP_IDF_VERSION_PATCH 1

/**
* Macro to convert IDF version number into an integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_ad
void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t lsb, uint8_t data);

/* enter the critical section that protects internal registers. Don't use it in SDK. Use the functions above. */
void regi2c_enter_critical(void);
void regi2c_exit_critical(void);

#endif // BOOTLOADER_BUILD

/* Convenience macros for the above functions, these use register definitions
Expand Down
17 changes: 1 addition & 16 deletions tools/sdk/esp32c3/include/esp_littlefs/include/esp_littlefs.h
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
#ifndef ESP_LITTLEFS_H__
#define ESP_LITTLEFS_H__

#include <stdint.h>
#include <stddef.h>
#include <stdarg.h>
#include <unistd.h>
#include <utime.h>
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "esp_err.h"
#include <sys/types.h>
#include <sys/reent.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/poll.h>
#include <sys/dirent.h>
#include <string.h>
#include "sdkconfig.h"

#include "littlefs/lfs.h"
#include "sdkconfig.h"

#ifdef __cplusplus
extern "C" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ typedef enum {
ESP_RMAKER_REQ_SRC_CLOUD,
/** Request received when a schedule has triggered */
ESP_RMAKER_REQ_SRC_SCHEDULE,
/** Request received when a scene has been activated */
ESP_RMAKER_REQ_SRC_SCENE_ACTIVATE,
/** Request received when a scene has been deactivated */
ESP_RMAKER_REQ_SRC_SCENE_DEACTIVATE,
/** Request received from a local controller */
ESP_RMAKER_REQ_SRC_LOCAL,
/** This will always be the last value. Any value equal to or
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Copyright 2022 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

#ifdef __cplusplus
extern "C"
{
#endif

#include <esp_err.h>

/** Enable Scenes
*
* This API enables the scenes service for the node. For more information,
* check [here](https://rainmaker.espressif.com/docs/scenes.html)
*
* @note This API should be called after esp_rmaker_node_init() but before esp_rmaker_start().
*
* @return ESP_OK on success.
* @return error in case of failure.
*/
esp_err_t esp_rmaker_scenes_enable(void);

#ifdef __cplusplus
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extern "C"
#define ESP_RMAKER_DEF_TIMEZONE_NAME "TZ"
#define ESP_RMAKER_DEF_TIMEZONE_POSIX_NAME "TZ-POSIX"
#define ESP_RMAKER_DEF_SCHEDULE_NAME "Schedules"
#define ESP_RMAKER_DEF_SCENES_NAME "Scenes"
#define ESP_RMAKER_DEF_REBOOT_NAME "Reboot"
#define ESP_RMAKER_DEF_FACTORY_RESET_NAME "Factory-Reset"
#define ESP_RMAKER_DEF_WIFI_RESET_NAME "Wi-Fi-Reset"
Expand Down Expand Up @@ -265,6 +266,20 @@ esp_rmaker_param_t *esp_rmaker_timezone_posix_param_create(const char *param_nam
*/
esp_rmaker_param_t *esp_rmaker_schedules_param_create(const char *param_name, int max_schedules);

/**
* Create standard Scenes param
*
* This will create the standard scenes parameter. Default value
* is set internally.
*
* @param[in] param_name Name of the parameter
* @param[in] max_scenes Maximum number of scenes allowed
*
* @return Parameter handle on success.
* @return NULL in case of failures.
*/
esp_rmaker_param_t *esp_rmaker_scenes_param_create(const char *param_name, int max_scenes);

/**
* Create standard Reboot param
*
Expand Down
Loading