-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples stuff: fix examples/rules, extend rules and add f7 examples #193
Open
h2obrain
wants to merge
11
commits into
libopencm3:master
Choose a base branch
from
h2obrain:examples-stuff
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
877749f
lpc43xx: Fixed lpc43xx examples (untested) and reenabled compilation
h2obrain 2a7e4fa
stm32l4: added missing l4 target to Makefile and added stm32/l4/Makef…
h2obrain 72027c9
rules.mk: define missing LIBDEPS for old style compilation
h2obrain 6aec4eb
rules.mk: fix build dependencies
h2obrain 6c02f9d
rules.mk: removed unnecessary recipe switch
h2obrain 16d6b24
rules.mk: build only for the required libopencm3 target
h2obrain e20be5f
rules.mk: pass CFLAGS variable to libopencm3
h2obrain 15a0ebf
rules.mk: avoid double slashes in paths
h2obrain e54f872
stm32f7: added demo Makefiles
h2obrain 4e6cb4f
stm32f769i-disco: added blinkled demo
h2obrain 7c432aa
stm32f769i-disco: added sdram demo
h2obrain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## | ||
## This file is part of the libopencm3 project. | ||
## | ||
## This library is free software: you can redistribute it and/or modify | ||
## it under the terms of the GNU Lesser General Public License as published by | ||
## the Free Software Foundation, either version 3 of the License, or | ||
## (at your option) any later version. | ||
## | ||
## This library is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU Lesser General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU Lesser General Public License | ||
## along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
|
||
# You should use linker script generation! Specify device! | ||
ifeq ($(DEVICE),) | ||
LIBNAME = opencm3_stm32l4 | ||
DEFS += -DSTM32L4 | ||
|
||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where di you get that it's v5? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right though, I have this as an unchecked in file locally, never committed when the "basics" example was added. |
||
ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) | ||
endif | ||
|
||
################################################################################ | ||
# OpenOCD specific variables | ||
|
||
OOCD ?= openocd | ||
OOCD_INTERFACE ?= stlink-v2-1 | ||
OOCD_TARGET ?= stm32l4x | ||
|
||
################################################################################ | ||
# Black Magic Probe specific variables | ||
# Set the BMP_PORT to a serial port and then BMP is used for flashing | ||
BMP_PORT ?= | ||
|
||
################################################################################ | ||
# texane/stlink specific variables | ||
#STLINK_PORT ?= :4242 | ||
|
||
|
||
include ../../../../rules.mk |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely not interested in this one. I've had enough rpoblems with people trying to pick and choose things, and reportings bugs when all they really needed to do was just run "make" once in the top and everythign would have been fine. This relies far too much on knowledge of the build system and file structure within the library, which should be treated as a simple .a dependency. It's a submodule for exactly that reason, just build it once, move on.