mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3882 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.0-rc2pull/3965/head mbed-os-5.4.0
commit
305f5c491e
|
@ -16,7 +16,7 @@
|
|||
#ifndef MBED_FILELIKE_H
|
||||
#define MBED_FILELIKE_H
|
||||
|
||||
#include "platform/toolchain.h"
|
||||
#include "platform/mbed_toolchain.h"
|
||||
#include "drivers/FileBase.h"
|
||||
|
||||
namespace mbed {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "HeapBlockDevice.h"
|
||||
#include "FATFileSystem.h"
|
||||
#include <stdlib.h>
|
||||
#include "retarget.h"
|
||||
#include "mbed_retarget.h"
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
|
6
mbed.h
6
mbed.h
|
@ -16,13 +16,13 @@
|
|||
#ifndef MBED_H
|
||||
#define MBED_H
|
||||
|
||||
#define MBED_LIBRARY_VERSION 123
|
||||
#define MBED_LIBRARY_VERSION 138
|
||||
|
||||
#if MBED_CONF_RTOS_PRESENT
|
||||
// RTOS present, this is valid only for mbed OS 5
|
||||
#define MBED_MAJOR_VERSION 5
|
||||
#define MBED_MINOR_VERSION 2
|
||||
#define MBED_PATCH_VERSION 1
|
||||
#define MBED_MINOR_VERSION 4
|
||||
#define MBED_PATCH_VERSION 0
|
||||
|
||||
#else
|
||||
// mbed 2
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <stdio.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include "platform/retarget.h"
|
||||
#include "platform/mbed_retarget.h"
|
||||
|
||||
|
||||
#if defined(__ARMCC_VERSION)
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include "platform/retarget.h"
|
||||
#include "platform/toolchain.h"
|
||||
#include "platform/mbed_retarget.h"
|
||||
#include "platform/mbed_toolchain.h"
|
||||
#include "device.h"
|
||||
#include "PinNames.h"
|
||||
#include "PeripheralNames.h"
|
||||
|
|
|
@ -15,9 +15,9 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
|
|||
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
|
||||
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
|
||||
/*-Sizes-*/
|
||||
/*Heap 1/4 of ram and stack 1/8*/
|
||||
/*Heap 1/2 of ram and stack 1/8*/
|
||||
define symbol __ICFEDIT_size_cstack__ = 0x6000;
|
||||
define symbol __ICFEDIT_size_heap__ = 0xC000;
|
||||
define symbol __ICFEDIT_size_heap__ = 0x18000;
|
||||
/**** End of ICF editor section. ###ICF###*/
|
||||
|
||||
|
||||
|
|
|
@ -15,9 +15,9 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
|
|||
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
|
||||
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
|
||||
/*-Sizes-*/
|
||||
/*Heap 1/4 of ram and stack 1/8*/
|
||||
/*Heap 1/2 of ram and stack 1/8*/
|
||||
define symbol __ICFEDIT_size_cstack__ = 0x6000;
|
||||
define symbol __ICFEDIT_size_heap__ = 0xC000;
|
||||
define symbol __ICFEDIT_size_heap__ = 0x18000;
|
||||
/**** End of ICF editor section. ###ICF###*/
|
||||
|
||||
|
||||
|
|
|
@ -348,7 +348,7 @@
|
|||
</option>
|
||||
<option>
|
||||
<name>CMSISDAPInterfaceRadio</name>
|
||||
<state>0</state>
|
||||
<state>1</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CMSISDAPInterfaceCmdLine</name>
|
||||
|
|
|
@ -178,6 +178,16 @@ class Uvision(Exporter):
|
|||
key=lambda (_, __, name): name.lower())
|
||||
return grouped
|
||||
|
||||
@staticmethod
|
||||
def format_fpu(core):
|
||||
"""Generate a core's FPU string"""
|
||||
if core.endswith("FD"):
|
||||
return "FPU3(DFPU)"
|
||||
elif core.endswith("F"):
|
||||
return "FPU2"
|
||||
else:
|
||||
return ""
|
||||
|
||||
def generate(self):
|
||||
"""Generate the .uvproj file"""
|
||||
cache = Cache(True, False)
|
||||
|
@ -197,10 +207,11 @@ class Uvision(Exporter):
|
|||
'include_paths': '; '.join(self.resources.inc_dirs).encode('utf-8'),
|
||||
'device': DeviceUvision(self.target),
|
||||
}
|
||||
ctx['cputype'] = ctx['device'].core.rstrip("FD")
|
||||
core = ctx['device'].core
|
||||
ctx['cputype'] = core.rstrip("FD")
|
||||
# Turn on FPU optimizations if the core has an FPU
|
||||
ctx['fpu_setting'] = 1 if 'f' not in ctx['device'].core.lower() \
|
||||
or 'd' in ctx['device'].core.lower() else 2
|
||||
ctx['fpu_setting'] = 1 if 'F' not in core or 'D' in core else 2
|
||||
ctx['fputype'] = self.format_fpu(core)
|
||||
ctx.update(self.format_flags())
|
||||
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
|
||||
self.gen_file('uvision/uvision_debug.tmpl', ctx, self.project_name + ".uvoptx")
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<Vendor>{{device.dvendor}}</Vendor>
|
||||
<PackID>{{device.pack_id}}</PackID>
|
||||
<PackURL>{{device.pack_url}}</PackURL>
|
||||
<Cpu>CPUTYPE("{{cputype}}")</Cpu>
|
||||
<Cpu>CPUTYPE("{{cputype}}") {{fputype}}</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
<FlashDriverDll>{{device.flash_dll}}</FlashDriverDll>
|
||||
|
|
Loading…
Reference in New Issue