mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-22 06:31:37 +00:00
34 lines
830 B
Makefile
34 lines
830 B
Makefile
t ?= esp32
|
|
|
|
ifeq ($t, esp8266)
|
|
BOARD := d1_mini
|
|
UPLOAD_SPEED := 921600
|
|
TERMINAL_SPEED := 115200
|
|
FS_DIR := programs
|
|
FLASH_SIZE := 4M1M
|
|
F_CPU := 80
|
|
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \
|
|
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
|
|
-DHARDWARE_H=\"hw/esp8266-pwm-fs.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED)
|
|
LIBRARIES := TFT_eSPI
|
|
endif
|
|
|
|
ifeq ($t, tivac)
|
|
BOARD := EK-LM4F120XL
|
|
CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\"
|
|
LIBRARIES := UTFT SD SpiRAM
|
|
endif
|
|
|
|
ifeq ($t, esp32)
|
|
BOARD := node32s
|
|
UPLOAD_SPEED := 921600
|
|
FS_DIR := programs
|
|
CPPFLAGS = -DDEBUGGING -DCPU_DEBUG \
|
|
-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
|
|
endif
|
|
|
|
include $t.mk
|