File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ def generate(self):
130
130
'device' : DeviceUvision (self .target ),
131
131
}
132
132
# Turn on FPU optimizations if the core has an FPU
133
- ctx ['fpu_setting' ] = 1 if 'f' not in ctx ['device' ].core .lower () else 2
133
+ ctx ['fpu_setting' ] = 1 if 'f' not in ctx ['device' ].core .lower () \
134
+ or 'd' in ctx ['device' ].core .lower () else 2
134
135
ctx .update (self .format_flags ())
135
136
self .gen_file ('uvision/uvision.tmpl' , ctx , self .project_name + ".uvprojx" )
136
137
Original file line number Diff line number Diff line change 213
213
<AdsLsxf >1</AdsLsxf >
214
214
<RvctClst >0</RvctClst >
215
215
<GenPPlst >0</GenPPlst >
216
- <AdsCpuType >"{{device.core}}"</AdsCpuType >
216
+ <AdsCpuType >"{{device.core.replace("D","").replace("F","") }}"</AdsCpuType >
217
217
<RvctDeviceName ></RvctDeviceName >
218
218
<mOS >0</mOS >
219
219
<uocRom >0</uocRom >
You can’t perform that action at this time.
0 commit comments