Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: tools/toolchains/gcc.py
- Revision:
- 6804:0161ed64aa06
- Parent:
- 6803:3ebc5419b948
- Child:
- 6826:e17692595e2b
--- a/tools/toolchains/gcc.py Wed Jun 15 16:28:22 2016 +0200
+++ b/tools/toolchains/gcc.py Mon Jul 04 21:51:21 2016 +0200
@@ -48,12 +48,6 @@
if target.core == "Cortex-M0+":
cpu = "cortex-m0plus"
- elif target.core == "Cortex-M4F":
- cpu = "cortex-m4"
- elif target.core == "Cortex-M7F":
- cpu = "cortex-m7"
- elif target.core == "Cortex-M7F_DP":
- cpu = "cortex-m7"
else:
cpu = target.core.lower()
@@ -61,15 +55,15 @@
if target.core.startswith("Cortex"):
self.cpu.append("-mthumb")
- if target.core == "Cortex-M4F":
+ if target.core == "Cortex-M4" and target.fpu == "single":
self.cpu.append("-mfpu=fpv4-sp-d16")
self.cpu.append("-mfloat-abi=softfp")
- elif target.core == "Cortex-M7F":
+ elif target.core == "Cortex-M7" and target.fpu == "single":
self.cpu.append("-mfpu=fpv5-sp-d16")
self.cpu.append("-mfloat-abi=softfp")
- elif target.core == "Cortex-M7F_DP":
+ elif target.core == "Cortex-M7" and target.fpu == "double":
self.cpu.append("-mfpu=fpv5-d16")
self.cpu.append("-mfloat-abi=softfp")