510890b207
.. and enable it on atmel-samd and raspberrypi. On trinket_m0 this saves 96 net bytes of flash. There are 216 bytes actually saved by reducing the flash storage size of the property descriptors, but added code in several paths takes back over half of the 'raw savings'. By organizing the "get-only" and "get-set" (but no delete) properties each in a different section, we can represent then more efficiently. Testing performed: that a get-only property can still be gotten but can't be set or deleted; that a get-set property can sill be gotten or set but can't be deleted. Tested on pygamer. Because this requires linker file support, I only enabled it on two of the ports.
43 lines
945 B
Makefile
43 lines
945 B
Makefile
# All raspberrypi ports have longints.
|
|
LONGINT_IMPL = MPZ
|
|
|
|
CIRCUITPY_OPTIMIZE_PROPERTY_FLASH_SIZE ?= 1
|
|
CIRCUITPY_ALARM ?= 1
|
|
|
|
CIRCUITPY_RP2PIO ?= 1
|
|
CIRCUITPY_NEOPIXEL_WRITE ?= $(CIRCUITPY_RP2PIO)
|
|
CIRCUITPY_FLOPPYIO ?= 1
|
|
CIRCUITPY_FRAMEBUFFERIO ?= $(CIRCUITPY_DISPLAYIO)
|
|
CIRCUITPY_FULL_BUILD ?= 1
|
|
CIRCUITPY_AUDIOMP3 ?= 1
|
|
CIRCUITPY_BITOPS ?= 1
|
|
CIRCUITPY_IMAGECAPTURE ?= 1
|
|
CIRCUITPY_PWMIO ?= 1
|
|
CIRCUITPY_RGBMATRIX ?= $(CIRCUITPY_DISPLAYIO)
|
|
CIRCUITPY_ROTARYIO ?= 1
|
|
CIRCUITPY_ROTARYIO_SOFTENCODER = 1
|
|
|
|
# Things that need to be implemented.
|
|
# Use PWM interally
|
|
CIRCUITPY_FREQUENCYIO = 0
|
|
CIRCUITPY_I2CPERIPHERAL = 0
|
|
CIRCUITPY_NVM = 1
|
|
# Use PIO interally
|
|
CIRCUITPY_PULSEIO ?= 1
|
|
CIRCUITPY_WATCHDOG ?= 1
|
|
|
|
# Audio via PWM
|
|
CIRCUITPY_AUDIOIO = 0
|
|
CIRCUITPY_AUDIOBUSIO ?= 1
|
|
CIRCUITPY_AUDIOCORE ?= 1
|
|
CIRCUITPY_AUDIOPWMIO ?= 1
|
|
|
|
CIRCUITPY_AUDIOMIXER = 1
|
|
|
|
INTERNAL_LIBM = 1
|
|
|
|
# Number of USB endpoint pairs.
|
|
USB_NUM_ENDPOINT_PAIRS = 8
|
|
|
|
INTERNAL_FLASH_FILESYSTEM = 1
|