Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
0367ad62
Commit
0367ad62
authored
Jan 14, 2014
by
Damien George
Browse files
stm: Include libgcc for __aeabi_d2f and __aeabi_f2d functions.
Thanks to Dave Hylands for this.
parent
36b35c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
stm/Makefile
View file @
0367ad62
...
...
@@ -33,6 +33,7 @@ CFLAGS += -Os -DNDEBUG
endif
LDFLAGS
=
--nostdlib
-T
stm32f405.ld
LIBS
=
$(
shell
$(CC)
-print-libgcc-file-name
)
SRC_C
=
\
main.c
\
...
...
@@ -145,7 +146,7 @@ $(BUILD)/flash1.bin: $(BUILD)/flash.elf
$(BUILD)/flash.elf
:
$(OBJ)
$(ECHO)
"LINK
$@
"
$(Q)$(LD)
$(LDFLAGS)
-o
$@
$(OBJ)
$(Q)$(LD)
$(LDFLAGS)
-o
$@
$(OBJ)
$(LIBS)
$(Q)$(SIZE)
$@
$(BUILD)/%.o
:
%.s
...
...
stm/main.c
View file @
0367ad62
...
...
@@ -1180,6 +1180,7 @@ soft_reset:
goto
soft_reset
;
}
/* now supplied by libgcc library
double __aeabi_f2d(float x) {
// TODO
return 0.0;
...
...
@@ -1189,6 +1190,7 @@ float __aeabi_d2f(double x) {
// TODO
return 0.0;
}
*/
double
sqrt
(
double
x
)
{
// TODO
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment