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-04-26 17:52:49 -04:00
|
|
|
CIRCUITPY_ALARM ?= 1
|
|
|
|
|
raspberypi: Allow mpconfigboard to override additional items
This allows more options to be overridden to 0 in an mpconfigboard.mk.
Improved:
* FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG
Still problematic (pull requests welcome):
* RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined
* BITBANGIO, possibly only if BUSIO is enabled
* RTC
Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get
```
323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB).
12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB).
```
Closes #4515
2021-03-31 10:40:26 -04:00
|
|
|
CIRCUITPY_RP2PIO ?= 1
|
|
|
|
CIRCUITPY_NEOPIXEL_WRITE ?= $(CIRCUITPY_RP2PIO)
|
|
|
|
CIRCUITPY_FRAMEBUFFERIO ?= 1
|
|
|
|
CIRCUITPY_FULL_BUILD ?= 1
|
2021-03-10 18:37:04 -05:00
|
|
|
CIRCUITPY_AUDIOMP3 ?= 1
|
raspberypi: Allow mpconfigboard to override additional items
This allows more options to be overridden to 0 in an mpconfigboard.mk.
Improved:
* FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG
Still problematic (pull requests welcome):
* RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined
* BITBANGIO, possibly only if BUSIO is enabled
* RTC
Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get
```
323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB).
12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB).
```
Closes #4515
2021-03-31 10:40:26 -04:00
|
|
|
CIRCUITPY_BITOPS ?= 1
|
2021-04-22 12:47:05 -04:00
|
|
|
CIRCUITPY_IMAGECAPTURE ?= 1
|
raspberypi: Allow mpconfigboard to override additional items
This allows more options to be overridden to 0 in an mpconfigboard.mk.
Improved:
* FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG
Still problematic (pull requests welcome):
* RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined
* BITBANGIO, possibly only if BUSIO is enabled
* RTC
Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get
```
323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB).
12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB).
```
Closes #4515
2021-03-31 10:40:26 -04:00
|
|
|
CIRCUITPY_PWMIO ?= 1
|
|
|
|
CIRCUITPY_RGBMATRIX ?= 1
|
|
|
|
CIRCUITPY_ROTARYIO ?= 1
|
2021-04-08 17:25:47 -04:00
|
|
|
CIRCUITPY_ROTARYIO_SOFTENCODER = 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
|
raspberypi: Allow mpconfigboard to override additional items
This allows more options to be overridden to 0 in an mpconfigboard.mk.
Improved:
* FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG
Still problematic (pull requests welcome):
* RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined
* BITBANGIO, possibly only if BUSIO is enabled
* RTC
Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get
```
323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB).
12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB).
```
Closes #4515
2021-03-31 10:40:26 -04:00
|
|
|
CIRCUITPY_PULSEIO ?= 1
|
|
|
|
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
|
|
|
|
|
2021-03-25 18:30:40 -04:00
|
|
|
CIRCUITPY_AUDIOMIXER = 1
|
2021-01-20 19:47:18 -05:00
|
|
|
|
|
|
|
INTERNAL_LIBM = 1
|
|
|
|
|
2021-02-04 19:23:40 -05:00
|
|
|
# Number of USB endpoint pairs.
|
2021-05-13 21:49:04 -04:00
|
|
|
USB_NUM_ENDPOINT_PAIRS = 8
|
2021-03-04 16:12:24 -05:00
|
|
|
|
|
|
|
INTERNAL_FLASH_FILESYSTEM = 1
|