Makefile LCD replaced with GFX

ugfx_release_2.6
Joel Bodenmann 2012-10-04 09:09:03 +02:00
parent b47ad0b71a
commit 27276101ee
23 changed files with 38 additions and 49 deletions

0
demos/console/main.c 100755 → 100644
View File

0
demos/notepad/main.c 100755 → 100644
View File

View File

@ -1,15 +1,15 @@
To include any of these functions/drivers in your project...
1/ Specify the path to the LCDLIB. If none defined, default is $(CHIBIOS)/ext/lcd
1/ Specify the path to the GFXLIB. If none defined, default is $(CHIBIOS)/ext/lcd
2/ In your project Makefile (amongst similiar lines but after the hal line) add the line...
include $(LCDLIB)/lcd.mk
include $(GFXLIB)/lcd.mk
3/ Add $(LCDSRC) and $(LCDINC) to your SRCS and INCDIR of your projects Makefile
3/ Add $(GFXSRC) and $(GFXINC) to your SRCS and INCDIR of your projects Makefile
4/ In your project Makefile add the makefiles for any specific drivers you want e.g
include $(LCDLIB)/halext/drivers/touchpad/XPT2046/touchpad_lld.mk
include $(LCDLIB)/halext/drivers/gdisp/Nokia6610/gdisp_lld.mk
include $(GFXLIB)/halext/drivers/touchpad/XPT2046/touchpad_lld.mk
include $(GFXLIB)/halext/drivers/gdisp/Nokia6610/gdisp_lld.mk
5/ In your project halconf.h turn on the support you want eg.
/**

View File

@ -1,5 +1,5 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/Nokia6610/gdisp_lld.c
GFXSRC += $(GFXLIB)/drivers/gdisp/Nokia6610/gdisp_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/Nokia6610
GFXINC += $(GFXLIB)/drivers/gdisp/Nokia6610

View File

@ -13,4 +13,4 @@ To use this driver:
Olimex SAM7-EX256
2. To your makefile add the following lines:
include $(LCDLIB)/drivers/gdisp/Nokia6610/gdisp_lld.mk
include $(GFXLIB)/drivers/gdisp/Nokia6610/gdisp_lld.mk

View File

@ -1,5 +1,5 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/S6D1121/gdisp_lld.c
GFXSRC += $(GFXLIB)/drivers/gdisp/S6D1121/gdisp_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/S6D1121
GFXINC += $(GFXLIB)/drivers/gdisp/S6D1121

View File

@ -12,4 +12,4 @@ To use this driver:
#define SCREEN_HEIGHT 240
2. To your makefile add the following lines:
include $(LCDLIB)/drivers/gdisp/S6D1121/gdisp_lld.mk
include $(GFXLIB)/drivers/gdisp/S6D1121/gdisp_lld.mk

View File

@ -1,5 +1,5 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/SSD1289/gdisp_lld.c
GFXSRC += $(GFXLIB)/drivers/gdisp/SSD1289/gdisp_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/SSD1289
GFXINC += $(GFXLIB)/drivers/gdisp/SSD1289

View File

@ -12,4 +12,4 @@ To use this driver:
#define SCREEN_HEIGHT 240
2. To your makefile add the following lines:
include $(LCDLIB)/drivers/gdisp/SSD1289/gdisp_lld.mk
include $(GFXLIB)/drivers/gdisp/SSD1289/gdisp_lld.mk

View File

@ -1,5 +1,5 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/SSD1963/gdisp_lld.c
GFXSRC += $(GFXLIB)/drivers/gdisp/SSD1963/gdisp_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/SSD1963
GFXINC += $(GFXLIB)/drivers/gdisp/SSD1963

View File

@ -13,7 +13,7 @@ To use this driver:
2. Edit gdisp_lld_panel.h with your panel properties
3. To your makefile add the following lines:
include $(LCDLIB)/drivers/gdisp/SSD1963/gdisp_lld.mk
include $(GFXLIB)/drivers/gdisp/SSD1963/gdisp_lld.mk
Example FSMC config with DMA:

View File

@ -1,5 +1,5 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/TestStub/gdisp_lld.c
GFXSRC += $(GFXLIB)/drivers/gdisp/TestStub/gdisp_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/TestStub
GFXINC += $(GFXLIB)/drivers/gdisp/TestStub

View File

@ -13,4 +13,4 @@ To use this driver:
you want to compile test eg: GDISP_NEED_MULTITHREAD
2. To your makefile add the following lines:
include $(LCDLIB)/drivers/gdisp/TestStub/gdisp_lld.mk
include $(GFXLIB)/drivers/gdisp/TestStub/gdisp_lld.mk

View File

@ -1,7 +1,7 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/VMT/gdisp_lld.c \
$(LCDLIB)/drivers/gdisp/VMT/gdisp_lld_driver1.c \
$(LCDLIB)//drivers/gdisp/VMT/gdisp_lld_driver2.c
GFXSRC += $(GFXLIB)/drivers/gdisp/VMT/gdisp_lld.c \
$(GFXLIB)/drivers/gdisp/VMT/gdisp_lld_driver1.c \
$(GFXLIB)//drivers/gdisp/VMT/gdisp_lld_driver2.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/VMT
GFXINC += $(GFXLIB)/drivers/gdisp/VMT

View File

@ -4,5 +4,5 @@ To use this driver:
a) #define HAL_USE_TOUCHPAD TRUE
2. To your makefile add the following lines:
include $(LCDLIB)/drivers/touchpadADS7843/touchpad_lld.mk
include $(GFXLIB)/drivers/touchpadADS7843/touchpad_lld.mk

View File

@ -1,6 +1,6 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/touchpad/ADS7843/touchpad_lld.c
GFXSRC += $(GFXLIB)/drivers/touchpad/ADS7843/touchpad_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/touchpad/ADS7843
GFXINC += $(GFXLIB)/drivers/touchpad/ADS7843

View File

@ -4,5 +4,5 @@ To use this driver:
a) #define HAL_USE_TOUCHPAD TRUE
2. To your makefile add the following lines:
include $(LCDLIB)/drivers/touchpad/XPT2046/touchpad_lld.mk
include $(GFXLIB)/drivers/touchpad/XPT2046/touchpad_lld.mk

View File

@ -1,6 +1,6 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/touchpad/XPT2046/touchpad_lld.c
GFXSRC += $(GFXLIB)/drivers/touchpad/XPT2046/touchpad_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/touchpad/XPT2046
GFXINC += $(GFXLIB)/drivers/touchpad/XPT2046

11
lcd.mk
View File

@ -1,11 +0,0 @@
# don't re-define LCDLIB if it has been set elsewhere, e.g in Makefile
ifeq ($(LCDLIB),)
LCDLIB = $(CHIBIOS)/ext/lcd
endif
LCDSRC += $(LCDLIB)/src/gdisp.c \
$(LCDLIB)/src/gdisp_fonts.c \
$(LCDLIB)/src/touchpad.c \
$(LCDLIB)/src/console.c \
LCDINC += $(LCDLIB)/include

View File

@ -1,3 +1,3 @@
GDISP_GRAPH_SRC = $(LCDLIB)/graph/graph.c
GDISP_GRAPH_SRC = $(GFXLIB)/graph/graph.c
GDISP_GRAPH_INC = $(LCDLIB)/graph
GDISP_GRAPH_INC = $(GFXLIB)/graph

View File

@ -1,3 +1,3 @@
GDISP_GUI_SRC = $(LCDLIB)/gui/gui.c
GDISP_GUI_SRC = $(GFXLIB)/gui/gui.c
GDISP_GUI_INC = $(LCDLIB)/gui
GDISP_GUI_INC = $(GFXLIB)/gui

View File

@ -1,5 +1,5 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/gdisp/gdispYOURDEVICE/gdisp_lld.c
GFXSRC += $(GFXLIB)/drivers/gdisp/gdispYOURDEVICE/gdisp_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/gdisp/gdispYOURDEVICE
GFXINC += $(GFXLIB)/drivers/gdisp/gdispYOURDEVICE

View File

@ -1,6 +1,6 @@
# List the required driver.
LCDSRC += $(LCDLIB)/drivers/touchpad/touchpadYOURDEVICE/touchpad_lld.c
GFXSRC += $(GFXLIB)/drivers/touchpad/touchpadYOURDEVICE/touchpad_lld.c
# Required include directories
LCDINC += $(LCDLIB)/drivers/touchpad/touchpadYOURDEVICE
GFXINC += $(GFXLIB)/drivers/touchpad/touchpadYOURDEVICE