2015-07-19 07:17:42 -04:00
|
|
|
MCU_SERIES = f4
|
2015-08-02 13:42:09 -04:00
|
|
|
CMSIS_MCU = STM32F405xx
|
2015-04-18 16:21:28 -04:00
|
|
|
AF_FILE = boards/stm32f405_af.csv
|
2018-12-04 07:48:18 -05:00
|
|
|
ifeq ($(USE_MBOOT),1)
|
|
|
|
# When using Mboot all the text goes together after the filesystem
|
|
|
|
LD_FILES = boards/stm32f405.ld boards/common_blifs.ld
|
|
|
|
TEXT0_ADDR = 0x08020000
|
|
|
|
else
|
|
|
|
# When not using Mboot the ISR text goes first, then the rest after the filesystem
|
2018-03-27 06:17:48 -04:00
|
|
|
LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
|
2018-03-27 06:24:15 -04:00
|
|
|
TEXT0_ADDR = 0x08000000
|
|
|
|
TEXT1_ADDR = 0x08020000
|
2018-12-04 07:48:18 -05:00
|
|
|
endif
|
2019-11-14 00:36:05 -05:00
|
|
|
|
|
|
|
# MicroPython settings
|
|
|
|
MICROPY_VFS_LFS2 = 1
|
2022-08-15 02:20:40 -04:00
|
|
|
|
|
|
|
# Provide different variants for the downloads page.
|
|
|
|
BOARD_VARIANTS += "dp thread dp-thread network"
|
|
|
|
|
|
|
|
ifeq ($(BOARD_VARIANT),"dp")
|
|
|
|
MICROPY_FLOAT_IMPL=double
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BOARD_VARIANT),"thread")
|
|
|
|
CFLAGS += -DMICROPY_PY_THREAD=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BOARD_VARIANT),"dp-thread")
|
|
|
|
MICROPY_FLOAT_IMPL=double
|
|
|
|
CFLAGS += -DMICROPY_PY_THREAD=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BOARD_VARIANT),"network")
|
|
|
|
MICROPY_PY_NETWORK_WIZNET5K=5200
|
|
|
|
endif
|
2022-09-05 21:53:36 -04:00
|
|
|
|
|
|
|
# PYB-specific frozen modules
|
|
|
|
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
|