adjust for non Arduino
This commit is contained in:
@@ -5,6 +5,7 @@ set(COMPONENT_SRCS
|
||||
driver/twi.c
|
||||
driver/xclk.c
|
||||
sensors/ov2640.c
|
||||
sensors/ov3660.c
|
||||
sensors/ov7725.c
|
||||
conversions/yuv.c
|
||||
conversions/to_jpg.cpp
|
||||
|
||||
@@ -1176,7 +1176,7 @@ esp_err_t camera_init(const camera_config_t* config)
|
||||
}
|
||||
|
||||
//ToDo: core affinity?
|
||||
if (!xTaskCreatePinnedToCore(&dma_filter_task, "dma_filter", 4096, NULL, 10, &s_state->dma_filter_task, 1)) {
|
||||
if (!xTaskCreatePinnedToCore(&dma_filter_task, "dma_filter", 4096, NULL, 10, &s_state->dma_filter_task, 0)) {
|
||||
ESP_LOGE(TAG, "Failed to create DMA filter task");
|
||||
err = ESP_ERR_NO_MEM;
|
||||
goto fail;
|
||||
|
||||
@@ -41,7 +41,7 @@ int SCCB_Init(int pin_sda, int pin_scl)
|
||||
{
|
||||
ESP_LOGI(TAG, "pin_sda %d pin_scl %d\n", pin_sda, pin_scl);
|
||||
#ifdef CONFIG_SCCB_HARDWARE_I2C
|
||||
log_i("SCCB_Init start");
|
||||
//log_i("SCCB_Init start");
|
||||
i2c_config_t conf;
|
||||
conf.mode = I2C_MODE_MASTER;
|
||||
conf.sda_io_num = pin_sda;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* OV3660 driver.
|
||||
*
|
||||
*/
|
||||
#include "Arduino.h"
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -18,9 +17,11 @@
|
||||
#include "freertos/task.h"
|
||||
|
||||
#if defined(ARDUINO_ARCH_ESP32) && defined(CONFIG_ARDUHAL_ESP_LOG)
|
||||
#include "Arduino.h"
|
||||
#include "esp32-hal-log.h"
|
||||
#else
|
||||
#include "esp_log.h"
|
||||
#define delay(x)
|
||||
static const char *TAG = "ov3660";
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user