Skip to content

Commit 98e7849

Browse files
authored
Merge branch 'master' into fix/idf6_requires
2 parents 6143a83 + dfeaa71 commit 98e7849

File tree

12 files changed

+220
-37
lines changed

12 files changed

+220
-37
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET ST
7575
)
7676
endif()
7777

78-
set(priv_requires freertos nvs_flash)
78+
set(priv_requires freertos nvs_flash esp_mm)
7979

8080
set(min_version_for_esp_timer "4.2")
8181
if (idf_version VERSION_GREATER_EQUAL min_version_for_esp_timer)

Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ menu "Camera configuration"
187187

188188
config CAMERA_TASK_STACK_SIZE
189189
int "CAM task stack size"
190-
default 2048
190+
default 4096
191191
help
192192
Camera task stack size
193193

conversions/jpge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace jpge {
3030
return b;
3131
}
3232
// check if SPIRAM is enabled and allocate on SPIRAM if allocatable
33-
#if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
33+
#if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
3434
return heap_caps_malloc(nSize, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
3535
#else
3636
return NULL;

conversions/to_bmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ typedef struct {
5454
static void *_malloc(size_t size)
5555
{
5656
// check if SPIRAM is enabled and allocate on SPIRAM if allocatable
57-
#if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
57+
#if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
5858
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
5959
#endif
6060
// try allocating in internal memory

conversions/to_jpg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void *_malloc(size_t size)
3737
}
3838

3939
// check if SPIRAM is enabled and is allocatable
40-
#if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
40+
#if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
4141
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
4242
#endif
4343
return NULL;

driver/cam_hal.c

Lines changed: 206 additions & 30 deletions
Large diffs are not rendered by default.

examples/camera_example/sdkconfig.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ CONFIG_FREERTOS_HZ=1000
99
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
1010
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
1111

12+
CONFIG_SPIRAM=y
1213
CONFIG_SPIRAM_SUPPORT=y
1314
CONFIG_ESP32_SPIRAM_SUPPORT=y
1415
CONFIG_ESP32S2_SPIRAM_SUPPORT=y
1516
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
1617
CONFIG_SPIRAM_SPEED_80M=y
17-

idf_component.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ issues: https://github.com/espressif/esp32-camera/issues
44
documentation: https://github.com/espressif/esp32-camera/tree/main/README.md
55
repository: https://github.com/espressif/esp32-camera.git
66
dependencies:
7+
idf: ">=5.1"
78
esp_jpeg:
89
version: "^1.3.1"
910
public: true

target/esp32/ll_cam.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static inline int gpio_ll_get_level(gpio_dev_t *hw, int gpio_num)
3939
#endif
4040

4141
#if (ESP_IDF_VERSION_MAJOR >= 5)
42+
#include "driver/gpio.h"
4243
#define GPIO_PIN_INTR_POSEDGE GPIO_INTR_POSEDGE
4344
#define GPIO_PIN_INTR_NEGEDGE GPIO_INTR_NEGEDGE
4445
#define gpio_matrix_in(a,b,c) esp_rom_gpio_connect_in_signal(a,b,c)

target/esp32s2/ll_cam.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#endif
2727

2828
#if (ESP_IDF_VERSION_MAJOR >= 5)
29+
#include "driver/gpio.h"
2930
#define GPIO_PIN_INTR_POSEDGE GPIO_INTR_POSEDGE
3031
#define GPIO_PIN_INTR_NEGEDGE GPIO_INTR_NEGEDGE
3132
#define gpio_matrix_in(a,b,c) esp_rom_gpio_connect_in_signal(a,b,c)

0 commit comments

Comments
 (0)