We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64baee8 commit 603ef3dCopy full SHA for 603ef3d
tools/export/uvision/__init__.py
@@ -209,8 +209,12 @@ def generate(self):
209
}
210
core = ctx['device'].core
211
ctx['cputype'] = core.rstrip("FD")
212
- # Turn on FPU optimizations if the core has an FPU
213
- ctx['fpu_setting'] = 1 if 'F' not in core or 'D' in core else 2
+ if core.endswith("FD"):
+ ctx['fpu_setting'] = 3
214
+ elif core.endswith("F"):
215
+ ctx['fpu_setting'] = 2
216
+ else:
217
+ ctx['fpu_setting'] = 1
218
ctx['fputype'] = self.format_fpu(core)
219
ctx.update(self.format_flags())
220
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
0 commit comments