-Os for SAMD51; fix CSUPEROPT typo
This commit is contained in:
parent
845cf03a45
commit
6abe3cd0ef
@ -94,21 +94,21 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CHIP_FAMILY), samd51)
|
ifeq ($(CHIP_FAMILY), samd51)
|
||||||
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
|
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
|
||||||
OPTIMIZATION_FLAGS ?= -O2
|
OPTIMIZATION_FLAGS ?= -Os
|
||||||
# TinyUSB defines
|
# TinyUSB defines
|
||||||
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAMD51 -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAMD51 -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CHIP_FAMILY), same51)
|
ifeq ($(CHIP_FAMILY), same51)
|
||||||
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
|
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
|
||||||
OPTIMIZATION_FLAGS ?= -O2
|
OPTIMIZATION_FLAGS ?= -Os
|
||||||
# TinyUSB defines
|
# TinyUSB defines
|
||||||
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAME5X -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAME5X -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CHIP_FAMILY), same54)
|
ifeq ($(CHIP_FAMILY), same54)
|
||||||
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
|
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
|
||||||
OPTIMIZATION_FLAGS ?= -O2
|
OPTIMIZATION_FLAGS ?= -Os
|
||||||
# TinyUSB defines
|
# TinyUSB defines
|
||||||
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAME5X -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAME5X -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
||||||
endif
|
endif
|
||||||
|
2
py/py.mk
2
py/py.mk
@ -19,7 +19,7 @@ endif
|
|||||||
QSTR_GLOBAL_DEPENDENCIES += $(PY_SRC)/mpconfig.h mpconfigport.h
|
QSTR_GLOBAL_DEPENDENCIES += $(PY_SRC)/mpconfig.h mpconfigport.h
|
||||||
|
|
||||||
# some code is performance bottleneck and compiled with other optimization options
|
# some code is performance bottleneck and compiled with other optimization options
|
||||||
_CSUPEROPT = -O3
|
CSUPEROPT = -O3
|
||||||
|
|
||||||
# this sets the config file for FatFs
|
# this sets the config file for FatFs
|
||||||
CFLAGS_MOD += -DFFCONF_H=\"lib/oofatfs/ffconf.h\"
|
CFLAGS_MOD += -DFFCONF_H=\"lib/oofatfs/ffconf.h\"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user