2015-07-19 12:17:42 +01:00
|
|
|
MCU_SERIES = f4
|
2015-08-02 10:42:09 -07:00
|
|
|
CMSIS_MCU = STM32F405xx
|
2015-04-18 21:21:28 +01:00
|
|
|
AF_FILE = boards/stm32f405_af.csv
|
2018-12-04 23:48:18 +11: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 21:17:48 +11:00
|
|
|
LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
|
2018-03-27 21:24:15 +11:00
|
|
|
TEXT0_ADDR = 0x08000000
|
|
|
|
TEXT1_ADDR = 0x08020000
|
2018-12-04 23:48:18 +11:00
|
|
|
endif
|
2019-11-14 16:36:05 +11:00
|
|
|
|
|
|
|
# MicroPython settings
|
|
|
|
MICROPY_VFS_LFS2 = 1
|
2022-08-15 16:20:40 +10:00
|
|
|
|
|
|
|
# Provide different variants for the downloads page.
|
2023-08-15 23:18:47 +10:00
|
|
|
ifeq ($(BOARD_VARIANT),DP)
|
2022-08-15 16:20:40 +10:00
|
|
|
MICROPY_FLOAT_IMPL=double
|
|
|
|
endif
|
|
|
|
|
2023-08-15 23:18:47 +10:00
|
|
|
ifeq ($(BOARD_VARIANT),THREAD)
|
2022-08-15 16:20:40 +10:00
|
|
|
CFLAGS += -DMICROPY_PY_THREAD=1
|
|
|
|
endif
|
|
|
|
|
2023-08-15 23:18:47 +10:00
|
|
|
ifeq ($(BOARD_VARIANT),DP_THREAD)
|
2022-08-15 16:20:40 +10:00
|
|
|
MICROPY_FLOAT_IMPL=double
|
|
|
|
CFLAGS += -DMICROPY_PY_THREAD=1
|
|
|
|
endif
|
|
|
|
|
2023-08-15 23:18:47 +10:00
|
|
|
ifeq ($(BOARD_VARIANT),NETWORK)
|
2022-08-15 16:20:40 +10:00
|
|
|
MICROPY_PY_NETWORK_WIZNET5K=5200
|
|
|
|
endif
|
2022-09-06 11:53:36 +10:00
|
|
|
|
|
|
|
# PYB-specific frozen modules
|
|
|
|
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
|