ugfx/drivers/gdisp/STM32LTDC
2021-08-17 13:29:49 +02:00
..
board_STM32LTDC_template.h STM32LTDC: Rename ALLOW_2ND_LAYER to LTDC_USE_2ND_LAYER 2021-08-17 13:26:54 +02:00
driver.mk Renaming driver to STM32LTDC as this will be a generic one 2015-07-09 00:43:04 +02:00
gdisp_lld_config.h Update license header 2018-10-01 17:34:15 +02:00
gdisp_lld_STM32LTDC.c STM32LTDC: Remove obsolete LTDC_NO_CLOCK_INIT define 2021-08-17 13:29:49 +02:00
readme.md STM32LTDC: Rename ALLOW_2ND_LAYER to LTDC_USE_2ND_LAYER 2021-08-17 13:26:54 +02:00
stm32_dma2d.h For all source files update integer types to the new gI8 etc type names 2018-11-03 10:51:23 +10:00
stm32_ltdc.h Update license header 2018-10-01 17:34:15 +02:00

Usage

To use this driver:

  1. Add in your gfxconf.h: a) #define GFX_USE_GDISP GFXON

  2. To your makefile add the following lines:

	include $(GFXLIB)/gfx.mk
	include $(GFXLIB)/drivers/gdisp/STM32LTDC/driver.mk
  1. Add a board_STM32LTDC.h to you project directory (or board directory) based on one of the templates.

2nd layer

Two things need to happen in order to use the 2nd LTDC layer:

  • Set LTDC_USE_2ND_LAYER to GFXON in the board file.
  • Set GDISP_TOTAL_DISPLAYS to 2 in gfxconf.h.

The 2nd layer is exposed as a separate display. Use gdispGetDisplay() to retrieve the individual layers.

For more information, see: