Skip to content

Commit

Permalink
Merge branch 'topic/vadim/cortexm' into 'master'
Browse files Browse the repository at this point in the history
Fix selection of floating point support packages for `light-cortex-m*`

Closes #67

See merge request eng/toolchain/bb-runtimes!103
  • Loading branch information
jklmnn committed Jun 4, 2024
2 parents 8ba06b3 + da7ee6c commit 5e984a8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arm/cortexm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,10 @@ class CortexM3(ArmV7MTarget):
def name(self):
return "cortex-m3"

@property
def has_single_precision_fpu(self):
return False

@property
def has_fpu(self):
return True
Expand All @@ -1305,6 +1309,10 @@ class CortexM4(ArmV7MTarget):
def name(self):
return "cortex-m4"

@property
def has_single_precision_fpu(self):
return False

@property
def has_fpu(self):
return True
Expand All @@ -1328,6 +1336,10 @@ class CortexM4F(CortexM4):
def name(self):
return "cortex-m4f"

@property
def has_single_precision_fpu(self):
return True

@property
def compiler_switches(self):
# The required compiler switches
Expand Down Expand Up @@ -1374,6 +1386,10 @@ class CortexM7DF(CortexM7F):
def name(self):
return "cortex-m7df"

@property
def has_double_precision_fpu(self):
return True

@property
def compiler_switches(self):
# The required compiler switches
Expand Down

0 comments on commit 5e984a8

Please sign in to comment.