Skip to content

Release candidate for mbed-os-5.4.0-rc2 #3882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/FileLike.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion features/TESTS/filesystem/fat_filesystem/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "HeapBlockDevice.h"
#include "FATFileSystem.h"
#include <stdlib.h>
#include "retarget.h"
#include "mbed_retarget.h"

using namespace utest::v1;

Expand Down
6 changes: 3 additions & 3 deletions mbed.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion platform/mbed_retarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <stdio.h>
#endif
#include <errno.h>
#include "platform/retarget.h"
#include "platform/mbed_retarget.h"


#if defined(__ARMCC_VERSION)
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions platform/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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###*/


Expand All @@ -36,4 +36,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

place in ROM_region { readonly };
place in RAM_region { readwrite,
block CSTACK, block HEAP };
block CSTACK, block HEAP };
Original file line number Diff line number Diff line change
Expand Up @@ -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###*/


Expand All @@ -36,4 +36,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

place in ROM_region { readonly };
place in RAM_region { readwrite,
block CSTACK, block HEAP };
block CSTACK, block HEAP };
2 changes: 1 addition & 1 deletion tools/export/iar/ewd.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
</option>
<option>
<name>CMSISDAPInterfaceRadio</name>
<state>0</state>
<state>1</state>
</option>
<option>
<name>CMSISDAPInterfaceCmdLine</name>
Expand Down
17 changes: 14 additions & 3 deletions tools/export/uvision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ def format_src(self, srcs):
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)
Expand All @@ -197,10 +207,11 @@ def generate(self):
'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")
Expand Down
2 changes: 1 addition & 1 deletion tools/export/uvision/uvision.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down