2012-05-23 11:29:39 +00:00
|
|
|
Chibios LCD Driver
|
|
|
|
|
|
|
|
### checkout Driver code into ext/
|
|
|
|
cd chibios/ext
|
|
|
|
git clone https://github.com/tectu/Chibios-LCD-Driver lcd
|
|
|
|
|
|
|
|
### Edit Makefile:
|
|
|
|
include lcd.mk:
|
|
|
|
include $(CHIBIOS)/ext/lcd/lcd.mk
|
|
|
|
|
|
|
|
Add $(LCDSRC) to CSRC:
|
2012-05-23 11:32:11 +00:00
|
|
|
CSRC = $(PORTSRC) \
|
|
|
|
$(KERNSRC) \
|
|
|
|
$(TESTSRC) \
|
|
|
|
$(HALSRC) \
|
|
|
|
$(PLATFORMSRC) \
|
|
|
|
$(BOARDSRC) \
|
|
|
|
$(FATFSSRC) \
|
|
|
|
$(LCDSRC) \
|
|
|
|
$(CHIBIOS)/os/various/evtimer.c \
|
|
|
|
$(CHIBIOS)/os/various/syscalls.c
|
2012-05-23 11:29:39 +00:00
|
|
|
|
|
|
|
Add $(LCDINC) to INCDIR:
|
2012-05-23 11:32:11 +00:00
|
|
|
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
|
|
|
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) \
|
|
|
|
$(FATFSINC) \
|
|
|
|
$(LCDINC) \
|
|
|
|
$(CHIBIOS)/os/various ../common
|
2012-05-23 11:29:39 +00:00
|
|
|
|
2012-05-23 11:32:11 +00:00
|
|
|
### Use
|
|
|
|
include glcd.h header file wherever you need it.
|
2012-05-23 11:29:39 +00:00
|
|
|
|