D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp: In function 'bool ClockEnable(int, int)':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp:7:26: error: 'PERIPH_LEDC_MODULE' was not declared in this scope
7 | periph_module_enable(PERIPH_LEDC_MODULE);
| ^~~~~~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp:7:5: error: 'periph_module_enable' was not declared in this scope
7 | periph_module_enable(PERIPH_LEDC_MODULE);
| ^~~~~~~~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp:10:16: error: 'struct ledc_timer_config_t' has no member named 'bit_num'
10 | timer_conf.bit_num = (ledc_timer_bit_t)1;
| ^~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp:12:29: error: 'LEDC_HIGH_SPEED_MODE' was not declared in this scope; did you mean 'LEDC_LOW_SPEED_MODE'?
12 | timer_conf.speed_mode = LEDC_HIGH_SPEED_MODE;
| ^~~~~~~~~~~~~~~~~~~~
| LEDC_LOW_SPEED_MODE
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp: In function 'void ClockDisable()':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp:36:27: error: 'PERIPH_LEDC_MODULE' was not declared in this scope
36 | periph_module_disable(PERIPH_LEDC_MODULE);
| ^~~~~~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\XClk.cpp:36:5: error: 'periph_module_disable' was not declared in this scope
36 | periph_module_disable(PERIPH_LEDC_MODULE);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\OV7670.h:2,
from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\OV7670.cpp:1:
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:15: error: variable or field 'IRAM_ATTR' declared void
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:15: error: expected ';' at end of member declaration
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~
| ;
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:25: error: ISO C++ forbids declaration of 'i2sInterrupt' with no type [-fpermissive]
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:15: error: variable or field 'IRAM_ATTR' declared void
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:15: error: expected ';' at end of member declaration
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~
| ;
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:25: error: ISO C++ forbids declaration of 'vSyncInterrupt' with no type [-fpermissive]
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h: In static member function 'static void I2SCamera::i2sConfReset()':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:42: error: 'I2S_IN_RST_M' was not declared in this scope; did you mean 'I2S_RX_RESET_M'?
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~
| I2S_RX_RESET_M
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:57: error: 'I2S_AHBM_RST_M' was not declared in this scope
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:74: error: 'I2S_AHBM_FIFO_RST_M' was not declared in this scope; did you mean 'I2S_RX_FIFO_RESET_M'?
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~~~~~~~~
| I2S_RX_FIFO_RESET_M
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:52:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'lc_conf'; did you mean 'rx_conf'?
52 | I2S0.lc_conf.val |= lc_conf_reset_flags;
| ^~~~~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:53:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'lc_conf'; did you mean 'rx_conf'?
53 | I2S0.lc_conf.val &= ~lc_conf_reset_flags;
| ^~~~~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:56:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
56 | I2S0.conf.val |= conf_reset_flags;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:57:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
57 | I2S0.conf.val &= ~conf_reset_flags;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:58:23: error: 'volatile union i2s_dev_s::<unnamed>' has no member named 'rx_fifo_reset_back'
58 | while (I2S0.state.rx_fifo_reset_back);
| ^~~~~~~~~~~~~~~~~~
In file included from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:2:
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:15: error: variable or field 'IRAM_ATTR' declared void
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:15: error: expected ';' at end of member declaration
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~
| ;
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:25: error: ISO C++ forbids declaration of 'i2sInterrupt' with no type [-fpermissive]
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:15: error: variable or field 'IRAM_ATTR' declared void
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:15: error: expected ';' at end of member declaration
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~
| ;
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:25: error: ISO C++ forbids declaration of 'vSyncInterrupt' with no type [-fpermissive]
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h: In static member function 'static void I2SCamera::i2sConfReset()':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:42: error: 'I2S_IN_RST_M' was not declared in this scope; did you mean 'I2S_RX_RESET_M'?
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~
| I2S_RX_RESET_M
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:57: error: 'I2S_AHBM_RST_M' was not declared in this scope
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:74: error: 'I2S_AHBM_FIFO_RST_M' was not declared in this scope; did you mean 'I2S_RX_FIFO_RESET_M'?
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~~~~~~~~
| I2S_RX_FIFO_RESET_M
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:52:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'lc_conf'; did you mean 'rx_conf'?
52 | I2S0.lc_conf.val |= lc_conf_reset_flags;
| ^~~~~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:53:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'lc_conf'; did you mean 'rx_conf'?
53 | I2S0.lc_conf.val &= ~lc_conf_reset_flags;
| ^~~~~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:56:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
56 | I2S0.conf.val |= conf_reset_flags;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:57:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
57 | I2S0.conf.val &= ~conf_reset_flags;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:58:23: error: 'volatile union i2s_dev_s::<unnamed>' has no member named 'rx_fifo_reset_back'
58 | while (I2S0.state.rx_fifo_reset_back);
| ^~~~~~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp: At global scope:
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:20:16: error: no declaration matches 'void I2SCamera::i2sInterrupt(void*)'
20 | void IRAM_ATTR I2SCamera::i2sInterrupt(void* arg)
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:87:25: note: candidate is: 'int I2SCamera::i2sInterrupt(void*)'
87 | static void IRAM_ATTR i2sInterrupt(void* arg);
| ^~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:15:7: note: 'class I2SCamera' defined here
15 | class I2SCamera
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:46:16: error: no declaration matches 'void I2SCamera::vSyncInterrupt(void*)'
46 | void IRAM_ATTR I2SCamera::vSyncInterrupt(void* arg)
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:88:25: note: candidate is: 'int I2SCamera::vSyncInterrupt(void*)'
88 | static void IRAM_ATTR vSyncInterrupt(void* arg);
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:15:7: note: 'class I2SCamera' defined here
15 | class I2SCamera
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp: In static member function 'static void I2SCamera::i2sStop()':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:61:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
61 | I2S0.conf.rx_start = 0;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp: In static member function 'static void I2SCamera::i2sRun()':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:77:49: error: no match for 'operator=' (operand types are 'volatile i2s_dev_s::<unnamed union>' and 'int')
77 | I2S0.rx_eof_num = dmaBuffer[0]->sampleCount();
| ^
In file included from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:7:
C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/soc/esp32s3/register/soc/i2s_struct.h:306:11: note: candidate: 'constexpr i2s_dev_s::<unnamed union>& i2s_dev_s::<unnamed union>::operator=(const i2s_dev_s::<unnamed union>&)'
306 | union {
| ^
C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/soc/esp32s3/register/soc/i2s_struct.h:306:11: note: no known conversion for argument 1 from 'int' to 'const i2s_dev_s::<unnamed union>&'
C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/soc/esp32s3/register/soc/i2s_struct.h:306:11: note: candidate: 'constexpr i2s_dev_s::<unnamed union>& i2s_dev_s::<unnamed union>::operator=(i2s_dev_s::<unnamed union>&&)'
C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/soc/esp32s3/register/soc/i2s_struct.h:306:11: note: no known conversion for argument 1 from 'int' to 'i2s_dev_s::<unnamed union>&&'
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:78:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'in_link'
78 | I2S0.in_link.addr = (uint32_t)&(dmaBuffer[0]->descriptor);
| ^~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:79:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'in_link'
79 | I2S0.in_link.start = 1;
| ^~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:82:18: error: 'volatile union i2s_dev_s::<unnamed>' has no member named 'in_done'
82 | I2S0.int_ena.in_done = 1;
| ^~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:85:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
85 | I2S0.conf.rx_start = 1;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp: In static member function 'static bool I2SCamera::initVSync(int)':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:94:25: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say '&I2SCamera::vSyncInterrupt' [-fpermissive]
94 | if(gpio_isr_register(&vSyncInterrupt, (void*)"vSyncInterrupt", ESP_INTR_FLAG_INTRDISABLED | ESP_INTR_FLAG_IRAM, &vSyncInterruptHandle) != ESP_OK)
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:94:24: error: cannot convert 'int (I2SCamera::*)(void*)' to 'void (*)(void*)'
94 | if(gpio_isr_register(&vSyncInterrupt, (void*)"vSyncInterrupt", ESP_INTR_FLAG_INTRDISABLED | ESP_INTR_FLAG_IRAM, &vSyncInterruptHandle) != ESP_OK)
| ^~~~~~~~~~~~~~~
| |
| int (I2SCamera::*)(void*)
In file included from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:9:
C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/esp_driver_gpio/include/driver/gpio.h:251:36: note: initializing argument 1 of 'esp_err_t gpio_isr_register(void (*)(void*), void*, int, intr_handle_data_t**)'
251 | esp_err_t gpio_isr_register(void (*fn)(void *), void *arg, int intr_alloc_flags, gpio_isr_handle_t *handle);
| ~~~~~~~^~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp: In static member function 'static bool I2SCamera::i2sInit(int, int, int, int, int, int, int, int, int, int, int)':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:141:27: error: 'I2S0I_DATA_IN0_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
141 | gpio_matrix_in(D0, I2S0I_DATA_IN0_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:141:5: error: 'gpio_matrix_in' was not declared in this scope
141 | gpio_matrix_in(D0, I2S0I_DATA_IN0_IDX, false);
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:142:27: error: 'I2S0I_DATA_IN1_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
142 | gpio_matrix_in(D1, I2S0I_DATA_IN1_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:143:27: error: 'I2S0I_DATA_IN2_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
143 | gpio_matrix_in(D2, I2S0I_DATA_IN2_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:144:27: error: 'I2S0I_DATA_IN3_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
144 | gpio_matrix_in(D3, I2S0I_DATA_IN3_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:145:27: error: 'I2S0I_DATA_IN4_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
145 | gpio_matrix_in(D4, I2S0I_DATA_IN4_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:146:27: error: 'I2S0I_DATA_IN5_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
146 | gpio_matrix_in(D5, I2S0I_DATA_IN5_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:147:27: error: 'I2S0I_DATA_IN6_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
147 | gpio_matrix_in(D6, I2S0I_DATA_IN6_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:148:27: error: 'I2S0I_DATA_IN7_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
148 | gpio_matrix_in(D7, I2S0I_DATA_IN7_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:149:27: error: 'I2S0I_DATA_IN8_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
149 | gpio_matrix_in(0x30, I2S0I_DATA_IN8_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:150:27: error: 'I2S0I_DATA_IN9_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
150 | gpio_matrix_in(0x30, I2S0I_DATA_IN9_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:151:27: error: 'I2S0I_DATA_IN10_IDX' was not declared in this scope; did you mean 'CAM_DATA_IN10_IDX'?
151 | gpio_matrix_in(0x30, I2S0I_DATA_IN10_IDX, false);
| ^~~~~~~~~~~~~~~~~~~
| CAM_DATA_IN10_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:152:27: error: 'I2S0I_DATA_IN11_IDX' was not declared in this scope; did you mean 'CAM_DATA_IN11_IDX'?
152 | gpio_matrix_in(0x30, I2S0I_DATA_IN11_IDX, false);
| ^~~~~~~~~~~~~~~~~~~
| CAM_DATA_IN11_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:153:27: error: 'I2S0I_DATA_IN12_IDX' was not declared in this scope; did you mean 'CAM_DATA_IN12_IDX'?
153 | gpio_matrix_in(0x30, I2S0I_DATA_IN12_IDX, false);
| ^~~~~~~~~~~~~~~~~~~
| CAM_DATA_IN12_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:154:27: error: 'I2S0I_DATA_IN13_IDX' was not declared in this scope; did you mean 'CAM_DATA_IN13_IDX'?
154 | gpio_matrix_in(0x30, I2S0I_DATA_IN13_IDX, false);
| ^~~~~~~~~~~~~~~~~~~
| CAM_DATA_IN13_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:155:27: error: 'I2S0I_DATA_IN14_IDX' was not declared in this scope; did you mean 'CAM_DATA_IN14_IDX'?
155 | gpio_matrix_in(0x30, I2S0I_DATA_IN14_IDX, false);
| ^~~~~~~~~~~~~~~~~~~
| CAM_DATA_IN14_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:156:27: error: 'I2S0I_DATA_IN15_IDX' was not declared in this scope; did you mean 'CAM_DATA_IN15_IDX'?
156 | gpio_matrix_in(0x30, I2S0I_DATA_IN15_IDX, false);
| ^~~~~~~~~~~~~~~~~~~
| CAM_DATA_IN15_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:158:27: error: 'I2S0I_V_SYNC_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
158 | gpio_matrix_in(VSYNC, I2S0I_V_SYNC_IDX, true);
| ^~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:159:27: error: 'I2S0I_H_SYNC_IDX' was not declared in this scope; did you mean 'I2S0I_WS_IN_IDX'?
159 | gpio_matrix_in(0x38, I2S0I_H_SYNC_IDX, false); //0x30 sends 0, 0x38 sends 1
| ^~~~~~~~~~~~~~~~
| I2S0I_WS_IN_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:160:27: error: 'I2S0I_H_ENABLE_IDX' was not declared in this scope; did you mean 'LCD_H_ENABLE_IDX'?
160 | gpio_matrix_in(HREF, I2S0I_H_ENABLE_IDX, false);
| ^~~~~~~~~~~~~~~~~~
| LCD_H_ENABLE_IDX
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:170:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
170 | I2S0.conf.rx_slave_mod = 1;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:172:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf2'
172 | I2S0.conf2.lcd_en = 1;
| ^~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:174:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf2'
174 | I2S0.conf2.camera_en = 1;
| ^~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:176:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'clkm_conf'; did you mean 'rx_clkm_conf'?
176 | I2S0.clkm_conf.clkm_div_a = 1;
| ^~~~~~~~~
| rx_clkm_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:177:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'clkm_conf'; did you mean 'rx_clkm_conf'?
177 | I2S0.clkm_conf.clkm_div_b = 0;
| ^~~~~~~~~
| rx_clkm_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:178:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'clkm_conf'; did you mean 'rx_clkm_conf'?
178 | I2S0.clkm_conf.clkm_div_num = 2;
| ^~~~~~~~~
| rx_clkm_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:180:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'fifo_conf'
180 | I2S0.fifo_conf.dscr_en = 1;
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:183:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'fifo_conf'
183 | I2S0.fifo_conf.rx_fifo_mod = SM_0A0B_0C0D; //pack two bytes in one dword see :https://github.com/igrr/esp32-cam-demo/issues/29
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:184:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'fifo_conf'
184 | I2S0.fifo_conf.rx_fifo_mod_force_en = 1;
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:185:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf_chan'
185 | I2S0.conf_chan.rx_chan_mod = 1;
| ^~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:187:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'sample_rate_conf'
187 | I2S0.sample_rate_conf.rx_bits_mod = 0;
| ^~~~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:188:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
188 | I2S0.conf.rx_right_first = 0;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:189:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
189 | I2S0.conf.rx_msb_right = 0;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:190:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
190 | I2S0.conf.rx_msb_shift = 0;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:191:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
191 | I2S0.conf.rx_mono = 0;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:192:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
192 | I2S0.conf.rx_short_sync = 0;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:193:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'timing'; did you mean 'rx_timing'?
193 | I2S0.timing.val = 0;
| ^~~~~~
| rx_timing
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:196:115: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say '&I2SCamera::i2sInterrupt' [-fpermissive]
196 | esp_intr_alloc(ETS_I2S0_INTR_SOURCE, ESP_INTR_FLAG_INTRDISABLED | ESP_INTR_FLAG_LEVEL1 | ESP_INTR_FLAG_IRAM, &i2sInterrupt, NULL, &i2sInterruptHandle);
| ^~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.cpp:196:114: error: cannot convert 'int (I2SCamera::*)(void*)' to 'intr_handler_t' {aka 'void (*)(void*)'}
196 | esp_intr_alloc(ETS_I2S0_INTR_SOURCE, ESP_INTR_FLAG_INTRDISABLED | ESP_INTR_FLAG_LEVEL1 | ESP_INTR_FLAG_IRAM, &i2sInterrupt, NULL, &i2sInterruptHandle);
| ^~~~~~~~~~~~~
| |
| int (I2SCamera::*)(void*)
In file included from C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/esp_driver_gpio/include/driver/gpio.h:13:
C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-858a988d-v1\esp32s3/include/esp_hw_support/include/esp_intr_alloc.h:148:64: note: initializing argument 3 of 'esp_err_t esp_intr_alloc(int, int, intr_handler_t, void*, intr_handle_data_t**)'
148 | esp_err_t esp_intr_alloc(int source, int flags, intr_handler_t handler, void *arg, intr_handle_t *ret_handle);
| ~~~~~~~~~~~~~~~^~~~~~~
In file included from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\OV7670.h:2,
from D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\OV7670_ESP32S.ino:1:
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h: In static member function 'static void I2SCamera::i2sConfReset()':
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:42: error: 'I2S_IN_RST_M' was not declared in this scope; did you mean 'I2S_RX_RESET_M'?
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~
| I2S_RX_RESET_M
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:57: error: 'I2S_AHBM_RST_M' was not declared in this scope
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~~~
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:51:74: error: 'I2S_AHBM_FIFO_RST_M' was not declared in this scope; did you mean 'I2S_TX_FIFO_RESET_M'?
51 | const uint32_t lc_conf_reset_flags = I2S_IN_RST_M | I2S_AHBM_RST_M | I2S_AHBM_FIFO_RST_M;
| ^~~~~~~~~~~~~~~~~~~
| I2S_TX_FIFO_RESET_M
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:52:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'lc_conf'; did you mean 'rx_conf'?
52 | I2S0.lc_conf.val |= lc_conf_reset_flags;
| ^~~~~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:53:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'lc_conf'; did you mean 'rx_conf'?
53 | I2S0.lc_conf.val &= ~lc_conf_reset_flags;
| ^~~~~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:56:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
56 | I2S0.conf.val |= conf_reset_flags;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:57:10: error: 'i2s_dev_t' {aka 'volatile struct i2s_dev_s'} has no member named 'conf'; did you mean 'rx_conf'?
57 | I2S0.conf.val &= ~conf_reset_flags;
| ^~~~
| rx_conf
D:\LIULANQI\OV7670_ESP32S-main\OV7670_ESP32S-main\OV7670_ESP32S\I2SCamera.h:58:23: error: 'volatile union i2s_dev_s::<unnamed>' has no member named 'rx_fifo_reset_back'
58 | while (I2S0.state.rx_fifo_reset_back);
| ^~~~~~~~~~~~~~~~~~
Using library WiFi at version 3.2.1 in folder: C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.2.1\libraries\WiFi
Using library Networking at version 3.2.1 in folder: C:\Users\h9978\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.2.1\libraries\Network
exit status 1
Compilation error: 'PERIPH_LEDC_MODULE' was not declared in this scope分析错误
最新发布