-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
58 lines (49 loc) · 1.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
t ?= esp32
s ?= uk101
p ?= programs/$s
FS_DIR := $p
ifeq ($t, esp32)
UPLOADSPEED := 921600
LIBRARIES = FS SPIFFS PS2KeyRaw
ifeq ($b, lilygo)
BOARD := ttgo-t7-v14-mini32
TERMINAL_SPEED := 115200
TERMINAL_EXTRA_FLAGS := -C serialout.txt
SERIAL_PORT := /dev/ttyACM0
CPPFLAGS = -DHARDWARE_H=\"hw/ttgo-t7-v14-mini32.h\"
LIBRARIES += FabGL WiFi
else
BOARD := node32s
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=5 -DTFT_DC=2 \
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
-DHARDWARE_H=\"hw/node32s-example.h\"
LIBRARIES += TFT_eSPI
endif
#CPPFLAGS += -DDEBUGGING -DCPU_DEBUG=false -DTERMINAL_SPEED=$(TERMINAL_SPEED)
endif
ifeq ($t, esp8266)
BOARD := d1_mini
BAUD := 921600
TERMINAL_SPEED := 115200
TERMINAL_EXTRA_FLAGS := -C serialout.txt
EESZ := 4M2M
XTAL := 80
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/esp8bit.h\"
CPPFLAGS += -DDEBUGGING -DCPU_DEBUG=false
LIBRARIES = TFT_eSPI FS LittleFS PS2KeyRaw
endif
ifeq ($t, tivac)
BOARD := EK-LM4F120XL
CPPFLAGS = -DHARDWARE_H=\"hw/stellarpad-example.h\"
LIBRARIES = UTFT SD PS2KeyRaw
endif
ifeq ($s, uk101)
CPPFLAGS += -DUK101
endif
ifeq ($s, ohio)
CPPFLAGS += -DOHIO
endif
include $t.mk