|
| 1 | +# Copyright 2015 weyoui (https://github.com/weyoui) |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# Vendor/device for which the library should be built. |
| 16 | +MBED_DEVICE := NUCLEO_L476RG |
| 17 | +MBED_CLEAN := $(MBED_DEVICE)-MBED-clean |
| 18 | + |
| 19 | + |
| 20 | +# Compiler flags which are specifc to this device. |
| 21 | +TARGETS_FOR_DEVICE := TARGET_NUCLEO_L476RG TARGET_M4 TARGET_RTOS_M4_M7 TARGET_CORTEX_M TARGET_STM TARGET_STM32L4 |
| 22 | +TARGETS_FOR_DEVICE += TARGET_STM32L476RG TARGET_FF_ARDUINO TARGET_FF_MORPHO |
| 23 | +GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE)) |
| 24 | +GCC_DEFINES += -D__CORTEX_M4 -DARM_MATH_CM4 -D__FPU_PRESENT=1 |
| 25 | + |
| 26 | +C_FLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb-interwork |
| 27 | +ASM_FLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp |
| 28 | +LD_FLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp |
| 29 | + |
| 30 | + |
| 31 | +# Extra platform specific object files to link into file binary. |
| 32 | +DEVICE_OBJECTS := |
| 33 | + |
| 34 | + |
| 35 | +# Version of MRI library to use for this device. |
| 36 | +DEVICE_MRI_LIB := |
| 37 | + |
| 38 | + |
| 39 | +# Linker script to be used. Indicates what code should be placed where in memory. |
| 40 | +NUCLEO_L476RG_LSCRIPT ?= $(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld |
| 41 | +LSCRIPT = $(NUCLEO_L476RG_LSCRIPT) |
| 42 | + |
| 43 | +include $(GCC4MBED_DIR)/build/device-common.mk |
0 commit comments