Apple1-esp/Makefile

53 lines
1.4 KiB
Makefile
Raw Normal View History

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
2024-10-16 10:00:22 +00:00
CPPFLAGS = -Wall -DDEBUGGING -DCPU_DEBUG=false -DTERMINAL_SPEED=$(TERMINAL_SPEED) -DUSE_OWN_KBD
LIBRARIES = PS2KeyAdvanced PS2KeyMap
2021-02-20 09:13:46 +00:00
2018-11-25 12:14:12 +00:00
ifeq ($t, esp8266)
BOARD := d1_mini
2023-07-28 12:08:15 +00:00
BAUD := 921600
2023-07-26 13:07:42 +00:00
EESZ := 4M1M
2019-06-05 16:18:24 +00:00
F_CPU := 80
CPPFLAGS += -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \
2020-07-08 13:34:55 +00:00
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
2024-10-12 13:40:22 +00:00
-DHARDWARE_H=\"hw/esp8bit.h\" -DPS2_SERIAL_KBD=\"UK\"
LIBRARIES += TFT_eSPI SpiRAM LittleFS
2018-11-25 12:14:12 +00:00
endif
2019-06-05 16:18:24 +00:00
ifeq ($t, tivac)
BOARD := EK-LM4F120XL
2024-10-12 13:40:22 +00:00
CPPFLAGS += -DHARDWARE_H=\"hw/stellarpad-example.h\" -DPS2_SERIAL_KBD=\"UK\"
LIBRARIES += UTFT SD SpiRAM
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
ifeq ($t, esp32)
2023-07-28 12:08:15 +00:00
UPLOADSPEED := 921600
LIBRARIES += FS SPIFFS
2023-07-25 15:51:34 +00:00
ifeq ($b, lilygo)
BOARD := ttgo-t7-v14-mini32
SERIAL_PORT := /dev/ttyACM0
2023-07-27 14:11:44 +00:00
CPPFLAGS += -DHARDWARE_H=\"hw/ttgo-t7-v14-mini32.h\"
2023-07-25 15:51:34 +00:00
LIBRARIES += FabGL WiFi
else
2024-09-22 08:19:19 +00:00
BOARD := lolin32
2023-07-25 15:51:34 +00:00
CPPFLAGS += -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 \
2024-10-12 13:40:22 +00:00
-DHARDWARE_H=\"hw/esp32-example.h\" -DUSE_SERIAL
2023-07-25 15:51:34 +00:00
LIBRARIES += TFT_eSPI
endif
2018-11-25 12:14:12 +00:00
endif
2018-11-18 14:56:07 +00:00
2024-10-12 13:40:22 +00:00
ifeq ($t, rp2040)
BOARD := adafruit_feather_dvi
FLASH := 8388608_2097152
2024-10-16 10:00:22 +00:00
CPPFLAGS += -DHARDWARE_H=\"hw/adafruit_feather_dvi.h\" -DUSE_SERIAL
#CPPFLAGS += -DHARDWARE_H=\"hw/adafruit_feather_dvi.h\" -DPS2_SERIAL_KBD=\"UK\"
CPPFLAGS += -DDVI_BIT_DEPTH=1 -DDVI_RESOLUTION=DVI_RES_640x240p60
2024-10-12 13:40:22 +00:00
LIBRARIES += LittleFS PicoDVI Adafruit_GFX Adafruit_BusIO Wire
endif
2019-06-05 16:18:24 +00:00
include $t.mk