restructure
This commit is contained in:
parent
49b3daab08
commit
d4625a1e6a
12 changed files with 23 additions and 16 deletions
7
drivers/drivers.mk
Normal file
7
drivers/drivers.mk
Normal 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
4
glcd.h
|
@ -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
24
lcd.mk
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue