stmhal/Makefile: Rename FLOAT_IMPL to MICROPY_FLOAT_IMPL to match C name
The name used in py/mpconfig.h is MICROPY_FLOAT_IMPL so rename this Makefile variable to mirror that.
This commit is contained in:
parent
4d47e6c0db
commit
703370ebc5
|
@ -70,7 +70,7 @@ CFLAGS += $(COPT)
|
||||||
CFLAGS += -Iboards/$(BOARD)
|
CFLAGS += -Iboards/$(BOARD)
|
||||||
CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>'
|
CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>'
|
||||||
|
|
||||||
ifeq ($(FLOAT_IMPL),double)
|
ifeq ($(MICROPY_FLOAT_IMPL),double)
|
||||||
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_DOUBLE
|
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_DOUBLE
|
||||||
else
|
else
|
||||||
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT
|
CFLAGS += -DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT
|
||||||
|
@ -104,7 +104,7 @@ SRC_LIB = $(addprefix lib/,\
|
||||||
utils/sys_stdio_mphal.c \
|
utils/sys_stdio_mphal.c \
|
||||||
)
|
)
|
||||||
|
|
||||||
ifeq ($(FLOAT_IMPL),double)
|
ifeq ($(MICROPY_FLOAT_IMPL),double)
|
||||||
SRC_LIBM = $(addprefix lib/libm_dbl/,\
|
SRC_LIBM = $(addprefix lib/libm_dbl/,\
|
||||||
__cos.c \
|
__cos.c \
|
||||||
__expo2.c \
|
__expo2.c \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
MCU_SERIES = f7
|
MCU_SERIES = f7
|
||||||
CMSIS_MCU = STM32F767xx
|
CMSIS_MCU = STM32F767xx
|
||||||
FLOAT_IMPL = double
|
MICROPY_FLOAT_IMPL = double
|
||||||
AF_FILE = boards/stm32f767_af.csv
|
AF_FILE = boards/stm32f767_af.csv
|
||||||
LD_FILE = boards/stm32f767.ld
|
LD_FILE = boards/stm32f767.ld
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
MCU_SERIES = f7
|
MCU_SERIES = f7
|
||||||
CMSIS_MCU = STM32F769xx
|
CMSIS_MCU = STM32F769xx
|
||||||
FLOAT_IMPL = double
|
MICROPY_FLOAT_IMPL = double
|
||||||
AF_FILE = boards/stm32f767_af.csv
|
AF_FILE = boards/stm32f767_af.csv
|
||||||
LD_FILE = boards/stm32f769.ld
|
LD_FILE = boards/stm32f769.ld
|
||||||
|
|
Loading…
Reference in New Issue