733094aead
The RP2040 is new microcontroller from Raspberry Pi that features two Cortex M0s and eight PIO state machines that are good for crunching lots of data. It has 264k RAM and a built in UF2 bootloader too. Datasheet: https://pico.raspberrypi.org/files/rp2040_datasheet.pdf
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# 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
|
|
|
|
ifndef CIRCUITPY_RP2PIO
|
|
CIRCUITPY_RP2PIO = 1
|
|
else
|
|
CIRCUITPY_NEOPIXEL_WRITE = 0
|
|
endif
|
|
|
|
CIRCUITPY_FULL_BUILD = 1
|
|
CIRCUITPY_PWMIO = 1
|
|
|
|
# Things that need to be implemented.
|
|
CIRCUITPY_AUDIOBUSIO = 0 # Use PIO interally for I2S
|
|
CIRCUITPY_AUDIOMP3 = 0
|
|
CIRCUITPY_COUNTIO = 0 # Use PWM interally
|
|
CIRCUITPY_FREQUENCYIO = 0 # Use PWM interally
|
|
CIRCUITPY_I2CPERIPHERAL = 0
|
|
CIRCUITPY_NVM = 0
|
|
CIRCUITPY_PULSEIO = 0 # Use PIO interally
|
|
CIRCUITPY_ROTARYIO = 0 # Use PIO interally
|
|
CIRCUITPY_RTC = 0
|
|
|
|
# Things that are unsupported by the hardware.
|
|
CIRCUITPY_AUDIOIO = 0
|
|
|
|
INTERNAL_LIBM = 1
|
|
|
|
USB_SERIAL_NUMBER_LENGTH = 32
|
|
|
|
USB_NUM_EP = 8
|