fixes to build with esp idf v5.0.1

This commit is contained in:
Valeriy Chudnikov 2023-03-13 11:41:04 +03:00
parent 1759b774a9
commit 1cbb99edac
4 changed files with 8 additions and 8 deletions

View file

@ -15,7 +15,7 @@ extern "C" {
*********************/
#include <stdint.h>
#include <stdbool.h>
#include <driver/spi_master.h>
#include "driver/spi_master.h"
/*********************
* DEFINES

View file

@ -54,7 +54,7 @@ disp_backlight_h disp_backlight_new(const disp_backlight_config_t *config)
};
const ledc_timer_config_t LCD_backlight_timer = {
.speed_mode = LEDC_LOW_SPEED_MODE,
.bit_num = LEDC_TIMER_10_BIT,
.duty_resolution = LEDC_TIMER_10_BIT,
.timer_num = config->timer_idx,
.freq_hz = 5000,
.clk_cfg = LEDC_AUTO_CLK};