Skip to content

Commit 352a6be

Browse files
tmilkovic51mbolivar-nordic
authored andcommitted
include: dt-bindings: display: add defines for STM32 LTDC
Add defines for specifying RGB interface signal polarities for STM32 LTDC peripheral Signed-off-by: Tomislav Milkovic <[email protected]>
1 parent 5280758 commit 352a6be

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2022 Byte-Lab d.o.o. <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_STM32_LTDC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_STM32_LTDC_H_
8+
9+
/* Horizontal synchronization pulse polarity */
10+
#define STM32_LTDC_HSPOL_ACTIVE_LOW 0x00000000
11+
#define STM32_LTDC_HSPOL_ACTIVE_HIGH 0x80000000
12+
13+
/* Vertical synchronization pulse polarity */
14+
#define STM32_LTDC_VSPOL_ACTIVE_LOW 0x00000000
15+
#define STM32_LTDC_VSPOL_ACTIVE_HIGH 0x40000000
16+
17+
/* Data enable pulse polarity */
18+
#define STM32_LTDC_DEPOL_ACTIVE_LOW 0x00000000
19+
#define STM32_LTDC_DEPOL_ACTIVE_HIGH 0x20000000
20+
21+
/* Pixel clock polarity */
22+
#define STM32_LTDC_PCPOL_ACTIVE_LOW 0x00000000
23+
#define STM32_LTDC_PCPOL_ACTIVE_HIGH 0x10000000
24+
25+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_STM32_LTDC_H_ */

0 commit comments

Comments
 (0)