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):
197197 'include_paths' : '; ' .join (self .resources .inc_dirs ).encode ('utf-8' ),
198198 'device' : DeviceUvision (self .target ),
199199 }
200+ ctx ['cputype' ] = ctx ['device' ].core .rstrip ("FD" )
200201 # Turn on FPU optimizations if the core has an FPU
201202 ctx ['fpu_setting' ] = 1 if 'f' not in ctx ['device' ].core .lower () \
202203 or 'd' in ctx ['device' ].core .lower () else 2
Original file line number Diff line number Diff line change 1616 <Vendor >{{device.dvendor}}</Vendor >
1717 <PackID >{{device.pack_id}}</PackID >
1818 <PackURL >{{device.pack_url}}</PackURL >
19- <Cpu ></Cpu >
19+ <Cpu >CPUTYPE("{{cputype}}") </Cpu >
2020 <FlashUtilSpec ></FlashUtilSpec >
2121 <StartupFile ></StartupFile >
2222 <FlashDriverDll >{{device.flash_dll}}</FlashDriverDll >
You can’t perform that action at this time.
0 commit comments