Skip to content

Commit c9fe1da

Browse files
committed
stm32l4: include missing makefile
Fixes: b8b9720 stm32l4: basic uart/exti/led/clock demo which introduced the l4 example, but left out the makefile.include file and didn't add it to the root build. Reported at: 2a7e4fa
1 parent 591d715 commit c9fe1da

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
PREFIX ?= arm-none-eabi
2121
#PREFIX ?= arm-elf
2222

23-
TARGETS := stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4 stm32/l0 stm32/l1
23+
TARGETS := stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4
24+
TARGETS += stm32/l0 stm32/l1 stm32/l4
2425
TARGETS += lpc/lpc13xx lpc/lpc17xx #lpc/lpc43xx
2526
TARGETS += tiva/lm3s tiva/lm4f
2627
TARGETS += efm32/efm32tg efm32/efm32g efm32/efm32lg efm32/efm32gg

examples/stm32/l4/Makefile.include

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
##
2+
## This file is part of the libopencm3 project.
3+
##
4+
## This library is free software: you can redistribute it and/or modify
5+
## it under the terms of the GNU Lesser General Public License as published by
6+
## the Free Software Foundation, either version 3 of the License, or
7+
## (at your option) any later version.
8+
##
9+
## This library is distributed in the hope that it will be useful,
10+
## but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
## GNU Lesser General Public License for more details.
13+
##
14+
## You should have received a copy of the GNU Lesser General Public License
15+
## along with this library. If not, see <http://www.gnu.org/licenses/>.
16+
##
17+
18+
# You should use linker script generation! Specify device!
19+
ifeq ($(DEVICE),)
20+
LIBNAME = opencm3_stm32l4
21+
DEFS += -DSTM32L4
22+
23+
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
24+
ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS)
25+
endif
26+
27+
################################################################################
28+
# OpenOCD specific variables
29+
30+
OOCD ?= openocd
31+
OOCD_INTERFACE ?= stlink-v2-1
32+
OOCD_TARGET ?= stm32l4x
33+
34+
################################################################################
35+
# Black Magic Probe specific variables
36+
# Set the BMP_PORT to a serial port and then BMP is used for flashing
37+
BMP_PORT ?=
38+
39+
################################################################################
40+
# texane/stlink specific variables
41+
#STLINK_PORT ?= :4242
42+
43+
44+
include ../../../../rules.mk

0 commit comments

Comments
 (0)