2018-11-25 12:14:12 +00:00
|
|
|
t ?= esp32
|
2018-11-16 10:49:14 +00:00
|
|
|
|
2021-02-20 09:13:46 +00:00
|
|
|
TERMINAL_SPEED := 115200
|
|
|
|
|
2018-11-25 12:14:12 +00:00
|
|
|
ifeq ($t, esp8266)
|
|
|
|
BOARD := d1_mini
|
|
|
|
UPLOAD_SPEED := 921600
|
2021-02-16 13:43:02 +00:00
|
|
|
FS_DIR := programs
|
2018-11-25 12:14:12 +00:00
|
|
|
FLASH_SIZE := 4M1M
|
2019-06-05 16:18:24 +00:00
|
|
|
F_CPU := 80
|
2020-07-08 13:34:55 +00:00
|
|
|
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \
|
|
|
|
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
|
2021-02-20 09:13:46 +00:00
|
|
|
-DHARDWARE_H=\"hw/esp8266-pwm-fs-23k256.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) -DDEBUGGING=1
|
|
|
|
LIBRARIES := TFT_eSPI SpiRAM
|
2018-11-25 12:14:12 +00:00
|
|
|
endif
|
|
|
|
|
2019-06-05 16:18:24 +00:00
|
|
|
ifeq ($t, tivac)
|
|
|
|
BOARD := EK-LM4F120XL
|
2021-02-20 09:13:46 +00:00
|
|
|
CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED)
|
2018-11-25 12:14:12 +00:00
|
|
|
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
|
2021-02-16 13:43:02 +00:00
|
|
|
FS_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 \
|
2021-02-20 09:13:46 +00:00
|
|
|
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
|
|
|
|
-DHARDWARE_H=\"hw/esp32-espi.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED)
|
2018-11-18 14:56:07 +00:00
|
|
|
LIBRARIES = TFT_eSPI FS SPIFFS
|
2018-11-25 12:14:12 +00:00
|
|
|
endif
|
2018-11-18 14:56:07 +00:00
|
|
|
|
2019-06-05 16:18:24 +00:00
|
|
|
include $t.mk
|