Skip to content

Commit

Permalink
final feature toggling to fit everything in flash
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatrom committed Nov 8, 2024
1 parent 7e0c9a2 commit 680489a
Showing 1 changed file with 38 additions and 46 deletions.
84 changes: 38 additions & 46 deletions ports/stm/boards/cygnet/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ MCU_PACKAGE = LQFP48

LD_COMMON = boards/common_default.ld
LD_DEFAULT = boards/STM32L433_default.ld
# UF2 boot option
#LD_BOOT = boards/STM32L433_boot.ld
UF2_OFFSET = 0x8010000
UF2_BOOTLOADER ?= 1
CIRCUITPY_BUILD_EXTENSIONS = bin,uf2
Expand All @@ -21,90 +19,82 @@ CIRCUITPY_FULL_BUILD = 0

USB_NUM_ENDPOINT_PAIRS = 8

CIRCUITPY_ROTARYIO_SOFTENCODER = 1
CIRCUITPY_KEYPAD_DEMUX = 0

CIRCUITPY_AESIO = 0
CIRCUITPY_ALARM = 0
CIRCUITPY_ANALOGIO = 1
CIRCUITPY_ATEXIT = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOBUSIO_I2SOUT = 0
CIRCUITPY_AUDIOBUSIO_PDMIN = 0
CIRCUITPY_AUDIOMIXER = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_AUDIOPWMIO = 0
CIRCUITPY_BITBANGIO = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO = 0
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITMAPFILTER = 0
CIRCUITPY_BITMAPTOOLS = 0
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_BUSDEVICE = 0
CIRCUITPY_BUSIO = 1
CIRCUITPY_CANIO = 0
CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE = 1
CIRCUITPY_COUNTIO = 0
CIRCUITPY_DIGITALIO = 1
CIRCUITPY_DISPLAYIO = 0
CIRCUITPY_ENABLE_MPY_NATIVE = 0
CIRCUITPY_FRAMEBUFFERIO = 0
CIRCUITPY_FREQUENCYIO = 0
CIRCUITPY_FUTURE= 0
CIRCUITPY_GETPASS = 0
CIRCUITPY_GIFIO = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_KEYPAD_DEMUX = 0
CIRCUITPY_LTO = 1
CIRCUITPY_MICROCONTROLLER = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_NEOPIXEL_WRITE = 0
CIRCUITPY_NVM = 0
CIRCUITPY_ONEWIREIO = 0
CIRCUITPY_OS = 1
CIRCUITPY_PIXELBUF = 0
CIRCUITPY_PULSEIO = 0
CIRCUITPY_PWMIO = 0
CIRCUITPY_RANDOM = 0
CIRCUITPY_PIXELMAP = 0
CIRCUITPY_PULSEIO = 1
CIRCUITPY_PWMIO = 1
CIRCUITPY_RANDOM = 1
CIRCUITPY_RAINBOWIO = 0
CIRCUITPY_RE = 0
CIRCUITPY_REQUIRE_I2C_PULLUPS = 0
CIRCUITPY_ROTARYIO_SOFTENCODER = 1
CIRCUITPY_RGBMATRIX = 0
CIRCUITPY_RTC = 0
CIRCUITPY_SAFEMODE_PY = 0
CIRCUITPY_SDCARDIO = 0
CIRCUITPY_STATUS_BAR= 0
CIRCUITPY_STORAGE = 0
CIRCUITPY_SUPERVISOR = 1
CIRCUITPY_SYNTHIO = 0
CIRCUITPY_TERMINALIO = 0
CIRCUITPY_TOUCHIO = 0
CIRCUITPY_TOUCHIO_USE_NATIVE = 1
CIRCUITPY_TRACEBACK = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_UDB_CDC = 1
CIRCUITPY_USB_HID = 0
CIRCUITPY_USB_IDENTIFICATION = 0
CIRCUITPY_USB_MIDI = 0
CIRCUITPY_USB_MIDI_ENABLED_DEFAULT= 0
CIRCUITPY_USB_MSC = 0
CIRCUITPY_USB_VENDOR = 0

CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 0
CIRCUITPY_AUDIOMIXER = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITMAPFILTER = 0
CIRCUITPY_BITMAPTOOLS = 0
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_BUSDEVICE = 0
CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE = 1
CIRCUITPY_COUNTIO = 0
# Not enough RAM for framebuffers
CIRCUITPY_FRAMEBUFFERIO = 0
CIRCUITPY_FREQUENCYIO = 0
CIRCUITPY_GETPASS = 0
CIRCUITPY_GIFIO = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OS_GETENV = 0
CIRCUITPY_PIXELMAP = 0
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 0
CIRCUITPY_SYNTHIO = 0
CIRCUITPY_TOUCHIO_USE_NATIVE = 1
CIRCUITPY_TRACEBACK = 0
CIRCUITPY_WIFI_RADIO_SETTABLE_MAC_ADDRESS= 0
CIRCUITPY_VECTORIO = 0
CIRCUITPY_ZLIB = 0

CIRCUITPY_ONEWIREIO = 0
CIRCUITPY_SAFEMODE_PY = 0
CIRCUITPY_USB_IDENTIFICATION = 0
CIRCUITPY_FUTURE= 0
CIRCUITPY_STATUS_BAR= 0
CIRCUITPY_WIFI_RADIO_SETTABLE_MAC_ADDRESS= 0
CIRCUITPY_USB_MIDI_ENABLED_DEFAULT= 0

MICROPY_PY_ASYNC_AWAIT = 0

CIRCUITPY_TERMINALIO = 0
RELEASE_NEEDS_CLEAN_BUILD = 0

SUPEROPT_GC = 0
Expand All @@ -113,3 +103,5 @@ SUPEROPT_VM = 0
CIRCUITPY_LTO_PARTITION = one

OPTIMIZATION_FLAGS = -Os

CFLAGS_BOARD = -fweb -frename-registers

0 comments on commit 680489a

Please sign in to comment.