2012-05-29 00:20:03 +00:00
|
|
|
Chibios LCD Driver
|
2012-05-23 11:29:39 +00:00
|
|
|
|
2012-05-29 00:20:03 +00:00
|
|
|
### checkout Driver code into ext/
|
2012-05-23 11:29:39 +00:00
|
|
|
cd chibios/ext
|
|
|
|
git clone https://github.com/tectu/Chibios-LCD-Driver lcd
|
|
|
|
|
2012-05-29 00:20:03 +00:00
|
|
|
### Edit Makefile:
|
2012-05-23 11:29:39 +00:00
|
|
|
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-29 00:20:03 +00:00
|
|
|
### Use
|
2012-05-23 11:32:11 +00:00
|
|
|
include glcd.h header file wherever you need it.
|
2012-05-23 11:29:39 +00:00
|
|
|
|