Renaming driver to STM32LTDC as this will be a generic one
This commit is contained in:
parent
926c8e507b
commit
c58dabc9c9
@ -2,4 +2,4 @@ GFXINC += $(GFXLIB)/boards/base/STM32F746-Discovery
|
|||||||
GFXSRC += $(GFXLIB)/boards/base/STM32F746-Discovery/STM32F746_discovery_sdram.c \
|
GFXSRC += $(GFXLIB)/boards/base/STM32F746-Discovery/STM32F746_discovery_sdram.c \
|
||||||
$(GFXLIB)/boards/base/STM32F746-Discovery/stm32f4xx_fmc.c
|
$(GFXLIB)/boards/base/STM32F746-Discovery/stm32f4xx_fmc.c
|
||||||
|
|
||||||
include $(GFXLIB)/drivers/gdisp/STM32F746Discovery/driver.mk
|
include $(GFXLIB)/drivers/gdisp/STM32LTDC/driver.mk
|
@ -1,2 +0,0 @@
|
|||||||
GFXINC += $(GFXLIB)/drivers/gdisp/STM32F746Discovery
|
|
||||||
GFXSRC += $(GFXLIB)/drivers/gdisp/STM32F746Discovery/gdisp_lld_STM32F746Discovery.c
|
|
2
drivers/gdisp/STM32LTDC/driver.mk
Normal file
2
drivers/gdisp/STM32LTDC/driver.mk
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
GFXINC += $(GFXLIB)/drivers/gdisp/STM32LTDC
|
||||||
|
GFXSRC += $(GFXLIB)/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c
|
@ -18,8 +18,8 @@
|
|||||||
#undef GDISP_SCREEN_WIDTH
|
#undef GDISP_SCREEN_WIDTH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GDISP_DRIVER_VMT GDISPVMT_STM32F746Discovery
|
#define GDISP_DRIVER_VMT GDISPVMT_STM32LTDC
|
||||||
#include "drivers/gdisp/STM32F746Discovery/gdisp_lld_config.h"
|
#include "drivers/gdisp/STM32LTDC/gdisp_lld_config.h"
|
||||||
#include "src/gdisp/gdisp_driver.h"
|
#include "src/gdisp/gdisp_driver.h"
|
||||||
|
|
||||||
#include "stm32_ltdc.h"
|
#include "stm32_ltdc.h"
|
||||||
@ -67,10 +67,10 @@ typedef struct ltdcConfig {
|
|||||||
#define LTDC_PIXELBYTES 3
|
#define LTDC_PIXELBYTES 3
|
||||||
#define LTDC_PIXELBITS 24
|
#define LTDC_PIXELBITS 24
|
||||||
#else
|
#else
|
||||||
#error "GDISP: STM32F746Discovery - unsupported pixel format"
|
#error "GDISP: STM32LTDC - unsupported pixel format"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "board_STM32F746Discovery.h"
|
#include "board_STM32LTDC.h"
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver local definitions. */
|
/* Driver local definitions. */
|
@ -5,7 +5,7 @@ To use this driver:
|
|||||||
|
|
||||||
2. To your makefile add the following lines:
|
2. To your makefile add the following lines:
|
||||||
include $(GFXLIB)/gfx.mk
|
include $(GFXLIB)/gfx.mk
|
||||||
include $(GFXLIB)/drivers/gdisp/STM32F746Discovery/driver.mk
|
include $(GFXLIB)/drivers/gdisp/STM32LTDC/driver.mk
|
||||||
|
|
||||||
3. Add a board_STM32F746Discovery.h to you project directory (or board directory)
|
3. Add a board_STM32LTDC.h to you project directory (or board directory)
|
||||||
based on one of the templates.
|
based on one of the templates.
|
Loading…
Reference in New Issue
Block a user