fix(cam): fixed cam iram safe build error

This commit is contained in:
armando
2025-03-07 11:31:19 +08:00
parent 3f69abdb7e
commit 20014ea97c
3 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#include "esp_heap_caps.h" #include "esp_heap_caps.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/idf_additions.h" #include "freertos/idf_additions.h"
#include "esp_memory_utils.h"
#include "esp_clk_tree.h" #include "esp_clk_tree.h"
#include "esp_cam_ctlr.h" #include "esp_cam_ctlr.h"
#include "esp_cam_ctlr_csi.h" #include "esp_cam_ctlr_csi.h"

View File

@ -5,6 +5,7 @@
*/ */
#include <sys/param.h> #include <sys/param.h>
#include "esp_memory_utils.h"
#include "hal/gpio_ll.h" #include "hal/gpio_ll.h"
#include "hal/cam_ll.h" #include "hal/cam_ll.h"
#include "hal/color_hal.h" #include "hal/color_hal.h"

View File

@ -11,6 +11,7 @@
#include "esp_heap_caps.h" #include "esp_heap_caps.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/idf_additions.h" #include "freertos/idf_additions.h"
#include "esp_memory_utils.h"
#include "driver/isp_types.h" #include "driver/isp_types.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "hal/isp_hal.h" #include "hal/isp_hal.h"
@ -261,7 +262,7 @@ static esp_err_t s_isp_dvp_register_event_callbacks(esp_cam_ctlr_handle_t handle
isp_dvp_controller_t *dvp_ctlr = __containerof(handle, isp_dvp_controller_t, base); isp_dvp_controller_t *dvp_ctlr = __containerof(handle, isp_dvp_controller_t, base);
ESP_RETURN_ON_FALSE(dvp_ctlr->fsm == ISP_FSM_INIT, ESP_ERR_INVALID_STATE, TAG, "controller isn't in init state"); ESP_RETURN_ON_FALSE(dvp_ctlr->fsm == ISP_FSM_INIT, ESP_ERR_INVALID_STATE, TAG, "controller isn't in init state");
#if CONFIG_CAM_CTLR_MIPI_CSI_ISR_IRAM_SAFE #if CONFIG_CAM_CTLR_ISP_DVP_ISR_IRAM_SAFE
if (cbs->on_get_new_trans) { if (cbs->on_get_new_trans) {
ESP_RETURN_ON_FALSE(esp_ptr_in_iram(cbs->on_get_new_trans), ESP_ERR_INVALID_ARG, TAG, "on_get_new_trans callback not in IRAM"); ESP_RETURN_ON_FALSE(esp_ptr_in_iram(cbs->on_get_new_trans), ESP_ERR_INVALID_ARG, TAG, "on_get_new_trans callback not in IRAM");
} }