circuitpython/ports/espressif/mpconfigport.mk

151 lines
3.8 KiB
Makefile
Raw Normal View History

# Use internal flash for CIRCUITPY drive
INTERNAL_FLASH_FILESYSTEM = 1
# Internal math library is substantially smaller than toolchain one
2023-09-19 19:27:00 -04:00
INTERNAL_LIBM = 0
# Longints can be implemented as mpz, as longlong, or not
LONGINT_IMPL = MPZ
# Default to no-psram
CIRCUITPY_ESP_PSRAM_SIZE ?= 0
2022-10-21 07:43:19 -04:00
# Enable more features
CIRCUITPY_FULL_BUILD ?= 1
2022-10-21 07:43:19 -04:00
# These modules are implemented in ports/<port>/common-hal:
CIRCUITPY_ALARM ?= 1
2023-02-17 08:49:15 -05:00
CIRCUITPY_ANALOGBUFIO ?= 1
CIRCUITPY_AUDIOBUSIO ?= 1
2022-10-21 07:43:19 -04:00
CIRCUITPY_AUDIOBUSIO_PDMIN ?= 0
CIRCUITPY_AUDIOIO ?= 0
2022-10-21 07:43:19 -04:00
CIRCUITPY_AUDIOMP3 ?= 0
CIRCUITPY_BLEIO ?= 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_CANIO ?= 1
2022-10-21 07:43:19 -04:00
CIRCUITPY_COUNTIO ?= 1
2023-08-09 10:33:20 -04:00
CIRCUITPY_DOTCLOCKFRAMEBUFFER_USES_SUPERVISOR_ALLOCATION = 0
CIRCUITPY_DUALBANK ?= 1
2023-01-27 11:28:37 -05:00
CIRCUITPY_ESPCAMERA ?= 1
2022-10-21 07:43:19 -04:00
CIRCUITPY_ESPIDF ?= 1
2023-01-21 05:32:59 -05:00
CIRCUITPY_ESPULP ?= 1
CIRCUITPY_FRAMEBUFFERIO ?= 1
CIRCUITPY_FREQUENCYIO ?= 1
2022-06-29 19:31:55 -04:00
CIRCUITPY_HASHLIB ?= 1
CIRCUITPY_I2CTARGET ?= 1
2022-10-21 07:43:19 -04:00
CIRCUITPY_IMAGECAPTURE = 0
2023-01-21 05:32:59 -05:00
CIRCUITPY_MEMORYMAP ?= 1
CIRCUITPY_NVM ?= 1
2023-09-27 12:16:38 -04:00
# Turn off because it uses the old I2S driver which conflicts with the new ADC driver.
CIRCUITPY_PARALLELDISPLAY ?= 0
CIRCUITPY_PS2IO ?= 1
2023-09-29 17:52:35 -04:00
CIRCUITPY_RGBMATRIX ?= 1
2022-10-21 07:43:19 -04:00
CIRCUITPY_ROTARYIO ?= 1
2023-07-21 13:06:17 -04:00
CIRCUITPY_SYNTHIO_MAX_CHANNELS ?= 12
CIRCUITPY_TOUCHIO_USE_NATIVE ?= 1
2020-11-10 06:02:46 -05:00
CIRCUITPY_WATCHDOG ?= 1
2022-10-21 07:43:19 -04:00
CIRCUITPY_WIFI ?= 1
2020-11-18 02:04:56 -05:00
2022-10-21 07:43:19 -04:00
# Conditionally turn off modules/features
2022-06-23 15:59:06 -04:00
ifeq ($(IDF_TARGET),esp32)
2022-10-21 07:43:19 -04:00
# Modules
2022-06-26 17:45:35 -04:00
CIRCUITPY_RGBMATRIX = 0
2023-09-12 15:18:21 -04:00
CIRCUITPY_BLEIO = 0
2022-10-21 07:43:19 -04:00
# Features
2022-06-23 15:59:06 -04:00
CIRCUITPY_USB = 0
else ifeq ($(IDF_TARGET),esp32c3)
2022-10-21 07:43:19 -04:00
# Modules
2021-09-25 14:30:00 -04:00
CIRCUITPY_ALARM = 0
2022-03-18 15:05:54 -04:00
CIRCUITPY_AUDIOBUSIO = 0
2022-10-21 07:43:19 -04:00
CIRCUITPY_COUNTIO = 0
2023-01-27 11:28:37 -05:00
CIRCUITPY_ESPCAMERA = 0
2023-01-21 05:32:59 -05:00
CIRCUITPY_ESPULP = 0
2021-09-25 14:30:00 -04:00
CIRCUITPY_FREQUENCYIO = 0
2023-01-21 05:32:59 -05:00
CIRCUITPY_MEMORYMAP = 0
2021-09-25 14:30:00 -04:00
CIRCUITPY_PARALLELDISPLAY = 0
2022-03-18 15:05:54 -04:00
CIRCUITPY_ROTARYIO = 0
2021-09-25 14:30:00 -04:00
CIRCUITPY_TOUCHIO ?= 1
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
2022-10-21 07:43:19 -04:00
# Features
2022-03-18 15:05:54 -04:00
CIRCUITPY_USB = 0
2023-09-19 19:27:00 -04:00
CIRCUITPY_ESP_USB_SERIAL_JTAG ?= 1
else ifeq ($(IDF_TARGET),esp32c6)
# Modules
CIRCUITPY_ALARM = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_ESPULP = 0
CIRCUITPY_MEMORYMAP = 0
CIRCUITPY_PARALLELDISPLAY = 0
CIRCUITPY_TOUCHIO ?= 1
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
# Features
CIRCUITPY_USB = 0
CIRCUITPY_ESP_USB_SERIAL_JTAG ?= 1
2022-10-21 07:43:19 -04:00
2023-09-21 13:58:53 -04:00
else ifeq ($(IDF_TARGET),esp32h2)
# Modules
CIRCUITPY_ALARM = 0
# Turn off analogio because calibration is currently supported.
# https://github.com/espressif/esp-idf/issues/11038
CIRCUITPY_ANALOGIO = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_ESPULP = 0
CIRCUITPY_MEMORYMAP = 0
CIRCUITPY_PARALLELDISPLAY = 0
CIRCUITPY_RGBMATRIX = 0
CIRCUITPY_TOUCHIO ?= 1
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
# Features
CIRCUITPY_USB = 0
CIRCUITPY_ESP_USB_SERIAL_JTAG ?= 1
CIRCUITPY_WIFI = 0
2022-10-21 07:43:19 -04:00
else ifeq ($(IDF_TARGET),esp32s2)
# Modules
CIRCUITPY_BLEIO = 0
CIRCUITPY_RGBMATRIX_USES_SUPERVISOR_ALLOCATION = 0
2022-06-23 15:59:06 -04:00
2023-09-19 19:27:00 -04:00
CIRCUITPY_ESP_USB_SERIAL_JTAG ?= 0
else ifeq ($(IDF_TARGET),esp32s3)
2022-10-21 07:43:19 -04:00
# Modules
CIRCUITPY_PARALLELDISPLAY = 0
CIRCUITPY_RGBMATRIX_USES_SUPERVISOR_ALLOCATION = 0
2023-09-19 19:27:00 -04:00
CIRCUITPY_ESP_USB_SERIAL_JTAG ?= 0
2022-10-21 07:43:19 -04:00
endif
2022-06-23 15:59:06 -04:00
2022-10-21 07:43:19 -04:00
# No room for dualbank on boards with 2MB flash
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE),2MB)
CIRCUITPY_DUALBANK = 0
endif
# Modules dependent on other modules
2023-01-20 02:57:00 -05:00
CIRCUITPY_ESPNOW ?= $(CIRCUITPY_WIFI)
2023-01-27 11:28:37 -05:00
CIRCUITPY_GIFIO ?= $(CIRCUITPY_ESPCAMERA)
CIRCUITPY_QRIO ?= $(CIRCUITPY_ESPCAMERA)
2022-10-21 07:43:19 -04:00
# Features dependent on other features
ifneq ($(CIRCUITPY_USB),0)
CIRCUITPY_BUILD_EXTENSIONS ?= bin,uf2
2022-10-21 07:43:19 -04:00
else
CIRCUITPY_BUILD_EXTENSIONS ?= bin
endif
# From ESP32-S2/S3 Technical Reference Manual:
#
# Endpoint number 0 always present (bi-directional, consisting of EP0 IN and EP0 OUT)
# Six additional endpoints (endpoint numbers 1 to 6), configurable as IN or OUT
# Maximum of five IN endpoints concurrently active at any time (including EP0 IN)
#
# Due to the limited number of endpoints, some USB devices will be off by default.
# For instance MIDI is available, but the device is turned off. It can be turned on
# only if something else is turned off, such as HID.
USB_NUM_ENDPOINT_PAIRS = 7
USB_NUM_IN_ENDPOINTS = 5