restructure

ugfx_release_2.6
Tectu 2012-06-17 01:30:12 +02:00
parent 49b3daab08
commit d4625a1e6a
12 changed files with 23 additions and 16 deletions

View File

@ -0,0 +1,7 @@
LCD_DRIVERS_SRC = $(LCDLIB)/drivers/lcd/ssd1289_lld.c \
$(LCDLIB)/drivers/lcd/s6d1121_lld.c \
$(LCDLIB)/drivers/touchpad/ads7843_lld.c \
$(LCDLIB)/drivers/touchpad/xpt2046_lld.c \
LCD_DRIVERS_INC = $(LCDLIB)/drivers/lcd \
$(LCDLIB)/drivers/touchpad \

4
glcd.h
View File

@ -4,8 +4,8 @@
#include "ch.h"
#include "hal.h"
#include "fonts.h"
#include "drivers/ssd1289_lld.h"
#include "drivers/s6d1121_lld.h"
#include "drivers/lcd/ssd1289_lld.h"
#include "drivers/lcd/s6d1121_lld.h"
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 320

24
lcd.mk
View File

@ -1,13 +1,13 @@
# LCD files.
LCDSRC = ${CHIBIOS}/ext/lcd/glcd.c \
${CHIBIOS}/ext/lcd/fonts.c \
${CHIBIOS}/ext/lcd/touchpad.c \
${CHIBIOS}/ext/lcd/graph.c \
${CHIBIOS}/ext/lcd/gui.c \
${CHIBIOS}/ext/lcd/drivers/ssd1289_lld.c \
${CHIBIOS}/ext/lcd/drivers/s6d1121_lld.c \
${CHIBIOS}/ext/lcd/drivers/ads7843_lld.c \
${CHIBIOS}/ext/lcd/drivers/xpt2046_lld.c \
LCDLIB = $(CHIBIOS)/ext/lcd
LCDINC = ${CHIBIOS}/ext/lcd \
${CHIBIOS}/etc/lcd/drivers
include $(LCDLIB)/drivers/drivers.mk
LCDSRC = $(LCDLIB)/glcd.c \
$(LCDLIB)/fonts.c \
$(LCDLIB)/touchpad.c \
$(LCDLIB)/graph.c \
$(LCDLIB)/gui.c \
$(LCD_DRIVERS_SRC)
LCDINC = $(LCDLIB) \
$(LCD_DRIVERS_INC)

View File

@ -4,8 +4,8 @@
#include "ch.h"
#include "hal.h"
#include "glcd.h"
#include "drivers/ads7843_lld.h"
#include "drivers/xpt2046_lld.h"
#include "drivers/touchpad/ads7843_lld.h"
#include "drivers/touchpad/xpt2046_lld.h"
#define CONVERSIONS 3