File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -205,25 +205,8 @@ static void cam_set_pin(const cam_config_t *config) {
205
205
gpio_matrix_in (config -> pin_data [i ], I2S0I_DATA_IN0_IDX + (16 - config -> bit_width ) + i , false);
206
206
}
207
207
208
- ledc_timer_config_t ledc_timer = {
209
- .duty_resolution = LEDC_TIMER_1_BIT ,
210
- .freq_hz = config -> xclk_fre ,
211
- .speed_mode = LEDC_LOW_SPEED_MODE ,
212
- .timer_num = LEDC_TIMER_1
213
- };
214
- ledc_timer_config (& ledc_timer );
215
- ledc_channel_config_t ledc_channel = {
216
- .channel = LEDC_CHANNEL_2 ,
217
- .duty = 1 ,
218
- .gpio_num = config -> pin .xclk ,
219
- .speed_mode = LEDC_LOW_SPEED_MODE ,
220
- .timer_sel = LEDC_TIMER_1 ,
221
- .hpoint = 0
222
- };
223
- ledc_channel_config (& ledc_channel );
224
-
225
208
gpio_matrix_in (0x38 , I2S0I_H_ENABLE_IDX , false);
226
- ESP_LOGI (TAG , "cam_xclk_pin setup \n" );
209
+ ESP_LOGI (TAG , "cam_set_pin \n" );
227
210
}
228
211
229
212
static void cam_vsync_intr_enable (uint8_t en ) {
Original file line number Diff line number Diff line change 14
14
15
15
#pragma once
16
16
17
+ #include "esp_err.h"
18
+
17
19
#ifdef __cplusplus
18
20
extern "C" {
19
21
#endif
20
22
21
23
typedef struct {
22
24
uint8_t bit_width ;
23
- uint32_t xclk_fre ;
24
25
union {
25
26
struct {
26
- uint32_t xclk : 8 ;
27
27
uint32_t pclk : 8 ;
28
28
uint32_t vsync : 8 ;
29
29
uint32_t hsync : 8 ;
You can’t perform that action at this time.
0 commit comments