Skip to content

Commit 3e291c1

Browse files
U-owner-PC\ownerU-owner-PC\owner
authored andcommitted
Merge remote-tracking branch 'upstream/master'
syncing my fork with master
2 parents a59aefc + c9e93d2 commit 3e291c1

File tree

118 files changed

+4602
-651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+4602
-651
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
install: "sudo $TRAVIS_BUILD_DIR/travis/install_dependencies.sh > /dev/null"
32
python:
43
- "2.7"
54
script: "python workspace_tools/build_travis.py"
5+
install:
6+
- "sudo $TRAVIS_BUILD_DIR/travis/install_dependencies.sh > /dev/null"
7+
- sudo pip install colorama
8+
- sudo pip install prettytable

libraries/mbed/api/mbed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef MBED_H
1717
#define MBED_H
1818

19-
#define MBED_LIBRARY_VERSION 93
19+
#define MBED_LIBRARY_VERSION 94
2020

2121
#include "platform.h"
2222

libraries/mbed/common/exit.c

Lines changed: 0 additions & 46 deletions
This file was deleted.

libraries/mbed/common/retarget.cpp

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* mbed Microcontroller Library
2-
* Copyright (c) 2006-2013 ARM Limited
2+
* Copyright (c) 2006-2015 ARM Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,6 +19,11 @@
1919
#include "FilePath.h"
2020
#include "serial_api.h"
2121
#include "toolchain.h"
22+
#include "semihost_api.h"
23+
#include "mbed_interface.h"
24+
#if DEVICE_STDIO_MESSAGES
25+
#include <stdio.h>
26+
#endif
2227
#include <errno.h>
2328

2429
#if defined(__ARMCC_VERSION)
@@ -482,6 +487,38 @@ extern "C" caddr_t _sbrk(int incr) {
482487
#endif
483488

484489

490+
#ifdef TOOLCHAIN_GCC_CW
491+
// TODO: Ideally, we would like to define directly "_ExitProcess"
492+
extern "C" void mbed_exit(int return_code) {
493+
#elif defined TOOLCHAIN_GCC_ARM
494+
extern "C" void _exit(int return_code) {
495+
#else
496+
namespace std {
497+
extern "C" void exit(int return_code) {
498+
#endif
499+
500+
#if DEVICE_STDIO_MESSAGES
501+
fflush(stdout);
502+
fflush(stderr);
503+
#endif
504+
505+
#if DEVICE_SEMIHOST
506+
if (mbed_interface_connected()) {
507+
semihost_exit();
508+
}
509+
#endif
510+
if (return_code) {
511+
mbed_die();
512+
}
513+
514+
while (1);
515+
}
516+
517+
#if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CW)
518+
} //namespace std
519+
#endif
520+
521+
485522
namespace mbed {
486523

487524
void mbed_set_unbuffered_stream(FILE *_file) {
@@ -524,11 +561,3 @@ char* mbed_gets(char*s, int size, FILE *_file){
524561
}
525562

526563
} // namespace mbed
527-
528-
529-
530-
531-
532-
533-
534-

libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51822.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@
2121
#include "nrf51822.h"
2222
#include "system_nrf51822.h"
2323

24-
#ifdef TARGET_DELTA_DFCM_NNN40
25-
26-
#define __SYSTEM_CLOCK (32000000UL) /*!< nRF51 devices use a fixed System Clock Frequency of 32MHz */
27-
#else
28-
#define __SYSTEM_CLOCK (16000000UL) /*!< nRF51 devices use a fixed System Clock Frequency of 16MHz */
29-
#endif
24+
#define __SYSTEM_CLOCK (16000000UL) /*!< nRF51 devices use a fixed System Clock Frequency of 16MHz */
3025

3126
static bool is_manual_peripheral_setup_needed(void);
3227
static bool is_disabled_in_debug_needed(void);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
LR_IROM1 0x00000000 0x40000 { ; load region size_region (256k)
3+
ER_IROM1 0x00000000 0x40000 { ; load address = execution address
4+
*.o (RESET, +First)
5+
*(InRoot$$Sections)
6+
.ANY (+RO)
7+
}
8+
; 8_byte_aligned(16+47 vect * 4 bytes) = 0x100
9+
; 32kB (0x8000) - 0x100 = 0x7F00
10+
RW_IRAM1 (0x10000000+0x100) (0x8000-0x100) {
11+
.ANY (+RW +ZI)
12+
}
13+
}

0 commit comments

Comments
 (0)