Skip to content

Commit

Permalink
Fix error / warning due to wrong order of structure initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github committed Jan 6, 2024
1 parent 0ecea7a commit e586638
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hardware/ESP32S3_4827S043C/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ const esp_lcd_rgb_panel_config_t disp_panel_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 20 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 2, // GPIO 2
.pwm_control = true,
.output_invert = false,
.gpio_num = 2,
.timer_idx = 0,
.channel_idx = 0
};
Expand Down
4 changes: 2 additions & 2 deletions hardware/ESP32S3_8048S043C/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ const esp_lcd_rgb_panel_config_t disp_panel_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 20 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 2, // GPIO 2
.pwm_control = true,
.output_invert = false,
.output_invert = false,
.gpio_num = 2,
.timer_idx = 0,
.channel_idx = 0
};
Expand Down
2 changes: 1 addition & 1 deletion hardware/ESP32S3_8048S050C/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ const esp_lcd_rgb_panel_config_t disp_panel_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 20 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 2, // GPIO 2
.pwm_control = true,
.output_invert = false,
.gpio_num = 2,
.timer_idx = 0,
.channel_idx = 0
};
Expand Down
2 changes: 1 addition & 1 deletion hardware/ESP32S3_8048S070C/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ const esp_lcd_rgb_panel_config_t disp_panel_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 20 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 2, // GPIO 2
.pwm_control = true,
.output_invert = false,
.gpio_num = 2,
.timer_idx = 0,
.channel_idx = 0
};
Expand Down
3 changes: 2 additions & 1 deletion hardware/ESP32_2432S028R/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ esp_lcd_panel_io_spi_config_t disp_spi_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 100 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 21, // GPIO 21
.pwm_control = false,
.output_invert = false,
.gpio_num = 21,
.timer_idx = 0,
.channel_idx = 0
};


#ifdef __cplusplus
} /* extern "C" */
#endif
2 changes: 1 addition & 1 deletion hardware/ESP32_3248S035C/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ esp_lcd_panel_io_spi_config_t disp_spi_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 100 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 27, // GPIO 27
.pwm_control = false,
.output_invert = false,
.gpio_num = 27,
.timer_idx = 0,
.channel_idx = 0
};
Expand Down
2 changes: 1 addition & 1 deletion hardware/ESP32_3248S035R/components/bsp/disp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ esp_lcd_panel_io_spi_config_t disp_spi_cfg = {
#define DISP_BCKL_DEFAULT_DUTY 100 //%

const disp_backlight_config_t disp_bcklt_cfg = {
.gpio_num = 27, // GPIO 27
.pwm_control = false,
.output_invert = false,
.gpio_num = 27,
.timer_idx = 0,
.channel_idx = 0
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ typedef struct {
bool pwm_control;
bool output_invert;
int gpio_num; // see gpio_num_t

// Relevant only for PWM controlled backlight
// Ignored for switch (ON/OFF) backlight control
int timer_idx; // ledc_timer_t
Expand Down

0 comments on commit e586638

Please sign in to comment.