mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-17 07:09:37 +00:00
lcd: add pm lock
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "soc/rtc.h" // for querying XTAL clock
|
||||
#include "soc/soc_caps.h"
|
||||
#include "esp_lcd_common.h"
|
||||
#if SOC_LCDCAM_SUPPORTED
|
||||
@@ -78,25 +77,6 @@ void lcd_com_remove_device(lcd_com_device_type_t device_type, int member_id)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned long lcd_com_select_periph_clock(lcd_hal_context_t *hal)
|
||||
{
|
||||
unsigned long resolution_hz;
|
||||
int clock_source;
|
||||
#if CONFIG_LCD_PERIPH_CLK_SRC_PLL160M
|
||||
resolution_hz = 160000000 / LCD_PERIPH_CLOCK_PRE_SCALE;
|
||||
clock_source = LCD_LL_CLOCK_SRC_PLL160M;
|
||||
#elif CONFIG_LCD_PERIPH_CLK_SRC_XTAL
|
||||
resolution_hz = rtc_clk_xtal_freq_get() * 1000000 / LCD_PERIPH_CLOCK_PRE_SCALE;
|
||||
clock_source = LCD_LL_CLOCK_SRC_XTAL;
|
||||
#else
|
||||
#error "invalid LCD peripheral clock source"
|
||||
#endif
|
||||
|
||||
lcd_ll_set_group_clock_src(hal->dev, clock_source, LCD_PERIPH_CLOCK_PRE_SCALE, 1, 0);
|
||||
return resolution_hz;
|
||||
}
|
||||
|
||||
#endif // SOC_LCDCAM_SUPPORTED
|
||||
|
||||
void lcd_com_mount_dma_data(dma_descriptor_t *desc_head, const void *buffer, size_t len)
|
||||
|
Reference in New Issue
Block a user