Apple1-esp/Makefile

38 lines
845 B
Makefile
Raw Normal View History

2018-11-25 12:14:12 +00:00
t ?= esp32
2018-11-16 10:49:14 +00:00
2018-11-25 12:14:12 +00:00
ifeq ($t, esp8266)
BOARD := d1_mini
UPLOAD_SPEED := 921600
SPIFFS_DIR := programs
FLASH_SIZE := 4M1M
BUILD_FCPU := 80000000L
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER \
-DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
-DTFT_CS=PIN_D6 -DTFT_DC=PIN_D8 \
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD
LIBRARIES := TFT_eSPI
endif
ifeq ($t, lm4f)
PROCESSOR_FAMILY := lm4f
BOARD := lplm4f120h5qr
CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\"
LIBRARIES := UTFT SD SpiRAM
endif
2018-11-18 14:56:07 +00:00
2018-11-25 12:14:12 +00:00
ifeq ($t, esp32)
2018-11-18 14:56:07 +00:00
BOARD := node32s
UPLOAD_SPEED := 921600
TERM_SPEED := 115200
SPIFFS_DIR := programs
2018-11-26 14:20:23 +00:00
CPPFLAGS = -DDEBUGGING -DCPU_DEBUG \
2018-11-18 14:56:07 +00:00
-DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=5 -DTFT_DC=2 \
-DTFT_RST=-1 -DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
-DSPI_FREQUENCY=40000000 -DLOAD_GLCD
LIBRARIES = TFT_eSPI FS SPIFFS
2018-11-25 12:14:12 +00:00
endif
2018-11-18 14:56:07 +00:00
2018-11-25 12:14:12 +00:00
include arduino-$t.mk