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
4c51cbdc
Commit
4c51cbdc
authored
Nov 01, 2013
by
Damien
Browse files
Add proper FPU compile flags; disable Python float support.
parent
e8217c2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
stm/Makefile
View file @
4c51cbdc
...
...
@@ -6,7 +6,7 @@ BUILD=build
AS
=
arm-none-eabi-as
CC
=
arm-none-eabi-gcc
LD
=
arm-none-eabi-ld
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mf
loat-abi
=
hard
-DSTM32F40XX
-DHSE_VALUE
=
8000000
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mf
pu
=
fpv4-sp-d16
-mfloat-abi
=
hard
-fsingle-precision-constant
-Wdouble-promotion
-DSTM32F40XX
-DHSE_VALUE
=
8000000
CFLAGS
=
-I
.
-I
$(PYSRC)
-I
$(FATFSSRC)
-I
$(STMSRC)
-Wall
-ansi
-std
=
gnu99
-Os
-DNDEBUG
$(CFLAGS_CORTEX_M4)
LDFLAGS
=
--nostdlib
-T
stm32f405.ld
...
...
stm/mpyconfig.h
View file @
4c51cbdc
// options to control how Micro Python is built
#define MICROPY_ENABLE_FLOAT (
1
)
#define MICROPY_ENABLE_FLOAT (
0
)
#define MICROPY_EMIT_CPYTHON (0)
#define MICROPY_EMIT_X64 (0)
#define MICROPY_EMIT_THUMB (1)
...
...
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