Skip to content

Commit 70be509

Browse files
committed
fix(esp_lvgl_port): Put RGB vsync callback in IRAM when LCD_RGB_ISR_IRAM_SAFE=y
1 parent 5d22b41 commit 70be509

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/esp_lvgl_port/src/lvgl9/esp_lvgl_port_disp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
#define CONFIG_LV_DRAW_BUF_ALIGN 1
4444
#endif
4545

46+
#if CONFIG_LCD_RGB_ISR_IRAM_SAFE
47+
#define LVGL_PORT_RGB_IRAM IRAM_ATTR
48+
#else
49+
#define LVGL_PORT_RBG_IRAM
50+
#endif
51+
4652
static const char *TAG = "LVGL";
4753

4854
/*******************************************************************************
@@ -509,7 +515,7 @@ static bool lvgl_port_flush_dpi_vsync_ready_callback(esp_lcd_panel_handle_t pane
509515
#endif
510516

511517
#if CONFIG_IDF_TARGET_ESP32S3 && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
512-
static bool lvgl_port_flush_rgb_vsync_ready_callback(esp_lcd_panel_handle_t panel_io,
518+
static LVGL_PORT_RGB_IRAM bool lvgl_port_flush_rgb_vsync_ready_callback(esp_lcd_panel_handle_t panel_io,
513519
const esp_lcd_rgb_panel_event_data_t *edata, void *user_ctx)
514520
{
515521
BaseType_t need_yield = pdFALSE;

0 commit comments

Comments
 (0)