2021-01-20 19:47:18 -05:00
|
|
|
# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
|
|
|
|
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
|
|
|
|
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
|
|
|
|
|
|
|
|
ifeq ($(LONGINT_IMPL),NONE)
|
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LONGINT_IMPL),MPZ)
|
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LONGINT_IMPL),LONGLONG)
|
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=longlong
|
|
|
|
endif
|
|
|
|
|
2021-01-21 22:50:15 -05:00
|
|
|
# All raspberrypi ports have longints.
|
|
|
|
LONGINT_IMPL = MPZ
|
|
|
|
|
2021-01-20 19:47:18 -05:00
|
|
|
ifndef CIRCUITPY_RP2PIO
|
|
|
|
CIRCUITPY_RP2PIO = 1
|
|
|
|
else
|
|
|
|
CIRCUITPY_NEOPIXEL_WRITE = 0
|
|
|
|
endif
|
|
|
|
|
2021-02-11 17:37:34 -05:00
|
|
|
CIRCUITPY_FRAMEBUFFERIO = 1
|
2021-01-20 19:47:18 -05:00
|
|
|
CIRCUITPY_FULL_BUILD = 1
|
2021-02-18 16:41:23 -05:00
|
|
|
CIRCUITPY_BITOPS = 1
|
2021-01-20 19:47:18 -05:00
|
|
|
CIRCUITPY_PWMIO = 1
|
2021-02-11 17:37:34 -05:00
|
|
|
CIRCUITPY_RGBMATRIX = 1
|
2021-03-05 10:00:03 -05:00
|
|
|
CIRCUITPY_ROTARYIO = 1
|
2021-01-20 19:47:18 -05:00
|
|
|
|
|
|
|
# Things that need to be implemented.
|
2021-03-05 13:59:55 -05:00
|
|
|
# Use PWM interally
|
|
|
|
CIRCUITPY_FREQUENCYIO = 0
|
2021-01-20 19:47:18 -05:00
|
|
|
CIRCUITPY_I2CPERIPHERAL = 0
|
2021-02-11 02:18:36 -05:00
|
|
|
CIRCUITPY_NVM = 1
|
2021-03-05 13:59:55 -05:00
|
|
|
# Use PIO interally
|
|
|
|
CIRCUITPY_PULSEIO = 0
|
2021-01-28 04:45:15 -05:00
|
|
|
CIRCUITPY_WATCHDOG = 1
|
2021-01-20 19:47:18 -05:00
|
|
|
|
2021-02-02 20:14:39 -05:00
|
|
|
# Audio via PWM
|
2021-01-20 19:47:18 -05:00
|
|
|
CIRCUITPY_AUDIOIO = 0
|
2021-02-23 18:50:00 -05:00
|
|
|
CIRCUITPY_AUDIOBUSIO ?= 1
|
2021-02-02 20:14:39 -05:00
|
|
|
CIRCUITPY_AUDIOCORE ?= 1
|
|
|
|
CIRCUITPY_AUDIOPWMIO ?= 1
|
|
|
|
|
|
|
|
# These libraries require Cortex M4+ for fancy math instructions.
|
|
|
|
CIRCUITPY_AUDIOMIXER ?= 0
|
|
|
|
CIRCUITPY_AUDIOMP3 ?= 0
|
2021-01-20 19:47:18 -05:00
|
|
|
|
|
|
|
INTERNAL_LIBM = 1
|
|
|
|
|
2021-02-05 21:39:15 -05:00
|
|
|
USB_SERIAL_NUMBER_LENGTH = 16
|
2021-01-20 19:47:18 -05:00
|
|
|
|
2021-02-04 19:23:40 -05:00
|
|
|
# Number of USB endpoint pairs.
|
2021-01-20 19:47:18 -05:00
|
|
|
USB_NUM_EP = 8
|