Skip to content

Commit 5d50981

Browse files
committed
cam: Remove support for xclk
we do this our own way in CP
1 parent 20098df commit 5d50981

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

ports/esp32s2/cam.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -205,25 +205,8 @@ static void cam_set_pin(const cam_config_t *config) {
205205
gpio_matrix_in(config->pin_data[i], I2S0I_DATA_IN0_IDX + (16 - config->bit_width) + i, false);
206206
}
207207

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-
225208
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");
227210
}
228211

229212
static void cam_vsync_intr_enable(uint8_t en) {

ports/esp32s2/cam.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414

1515
#pragma once
1616

17+
#include "esp_err.h"
18+
1719
#ifdef __cplusplus
1820
extern "C" {
1921
#endif
2022

2123
typedef struct {
2224
uint8_t bit_width;
23-
uint32_t xclk_fre;
2425
union {
2526
struct {
26-
uint32_t xclk : 8;
2727
uint32_t pclk : 8;
2828
uint32_t vsync : 8;
2929
uint32_t hsync : 8;

0 commit comments

Comments
 (0)