Renaming driver to STM32LTDC as this will be a generic one

This commit is contained in:
Joel Bodenmann 2015-07-09 00:43:04 +02:00
parent 926c8e507b
commit c58dabc9c9
8 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -1,2 +0,0 @@
GFXINC += $(GFXLIB)/drivers/gdisp/STM32F746Discovery
GFXSRC += $(GFXLIB)/drivers/gdisp/STM32F746Discovery/gdisp_lld_STM32F746Discovery.c

View File

@ -0,0 +1,2 @@
GFXINC += $(GFXLIB)/drivers/gdisp/STM32LTDC
GFXSRC += $(GFXLIB)/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c

View File

@ -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. */

View File

@ -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.