Skip to content

Commit cc3fe73

Browse files
committed
drivers: display: st: allow-ltdc-callback-override
Allow overriding the LTDC callback for manual handling or extension In some cases, the default handling may not be desired, for example triggering handling of the next frame/block once the transfer has passed a certain line. Signed-off-by: Mathias Markussen <mathias.markussen@st.com>
1 parent 8ab712a commit cc3fe73

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

drivers/display/display_stm32_ltdc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2022 Byte-Lab d.o.o. <dev@byte-lab.com>
33
* Copyright 2023 NXP
4-
* Copyright (c) 2024 STMicroelectronics
4+
* Copyright (c) 2025 STMicroelectronics
55
*
66
* SPDX-License-Identifier: Apache-2.0
77
*/
@@ -21,6 +21,7 @@
2121
#include <zephyr/pm/device.h>
2222
#include <zephyr/sys/barrier.h>
2323
#include <zephyr/cache.h>
24+
#include <zephyr/drivers/display/display_stm32_ltdc.h>
2425
#if defined(CONFIG_STM32_LTDC_FB_USE_SHARED_MULTI_HEAP)
2526
#include <zephyr/multi_heap/shared_multi_heap.h>
2627
#endif
@@ -84,7 +85,7 @@ struct display_stm32_ltdc_config {
8485
const struct device *display_controller;
8586
};
8687

87-
static void stm32_ltdc_global_isr(const struct device *dev)
88+
void __weak stm32_ltdc_global_isr(const struct device *dev)
8889
{
8990
struct display_stm32_ltdc_data *data = dev->data;
9091

drivers/display/display_stm32_ltdc.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright 2025, STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef _ZEPHYR_DRIVERS_DISPLAY_STM32_LTDC_H_
8+
#define _ZEPHYR_DRIVERS_DISPLAY_STM32_LTDC_H_
9+
10+
void stm32_ltdc_global_isr(const struct device *dev);
11+
12+
#endif /* _ZEPHYR_DRIVERS_DISPLAY_STM32_LTDC_H_ */

0 commit comments

Comments
 (0)