mirror of
https://github.com/jscrane/Apple1.git
synced 2024-10-31 12:05:16 +00:00
conditional
This commit is contained in:
parent
473f3b2bc2
commit
4f4955b2fb
44
Makefile
44
Makefile
@ -1,24 +1,27 @@
|
|||||||
#BOARD := d1_mini
|
t ?= esp32
|
||||||
#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
|
|
||||||
#
|
|
||||||
#include arduino-esp.mk
|
|
||||||
|
|
||||||
#PROCESSOR_FAMILY := lm4f
|
ifeq ($t, esp8266)
|
||||||
#BOARD := lplm4f120h5qr
|
BOARD := d1_mini
|
||||||
#CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\"
|
UPLOAD_SPEED := 921600
|
||||||
#LIBRARIES := UTFT SD SpiRAM
|
SPIFFS_DIR := programs
|
||||||
#
|
FLASH_SIZE := 4M1M
|
||||||
#include energia10.mk
|
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
|
||||||
|
|
||||||
|
ifeq ($t, esp32)
|
||||||
BOARD := node32s
|
BOARD := node32s
|
||||||
UPLOAD_SPEED := 921600
|
UPLOAD_SPEED := 921600
|
||||||
TERM_SPEED := 115200
|
TERM_SPEED := 115200
|
||||||
@ -29,5 +32,6 @@ CPPFLAGS = -DDEBUG -DCPU_DEBUG \
|
|||||||
-DTFT_RST=-1 -DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
|
-DTFT_RST=-1 -DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
|
||||||
-DSPI_FREQUENCY=40000000 -DLOAD_GLCD
|
-DSPI_FREQUENCY=40000000 -DLOAD_GLCD
|
||||||
LIBRARIES = TFT_eSPI FS SPIFFS
|
LIBRARIES = TFT_eSPI FS SPIFFS
|
||||||
|
endif
|
||||||
|
|
||||||
include arduino-esp32.mk
|
include arduino-$t.mk
|
||||||
|
Loading…
Reference in New Issue
Block a user