File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ def generate(self):
197
197
'include_paths' : '; ' .join (self .resources .inc_dirs ).encode ('utf-8' ),
198
198
'device' : DeviceUvision (self .target ),
199
199
}
200
+ ctx ['cputype' ] = ctx ['device' ].core .rstrip ("FD" )
200
201
# Turn on FPU optimizations if the core has an FPU
201
202
ctx ['fpu_setting' ] = 1 if 'f' not in ctx ['device' ].core .lower () \
202
203
or 'd' in ctx ['device' ].core .lower () else 2
Original file line number Diff line number Diff line change 16
16
<Vendor >{{device.dvendor}}</Vendor >
17
17
<PackID >{{device.pack_id}}</PackID >
18
18
<PackURL >{{device.pack_url}}</PackURL >
19
- <Cpu ></Cpu >
19
+ <Cpu >CPUTYPE("{{cputype}}") </Cpu >
20
20
<FlashUtilSpec ></FlashUtilSpec >
21
21
<StartupFile ></StartupFile >
22
22
<FlashDriverDll >{{device.flash_dll}}</FlashDriverDll >
You can’t perform that action at this time.
0 commit comments