Commit Graph

8609 Commits (d484d573abe584d43f549f50f31f013028f450fc)

Author SHA1 Message Date
Radhika 14afd591ec gpio is connected API 2016-10-27 11:12:49 +01:00
Radhika 823f4dc6dd Fixed automerge problems. 2016-10-27 11:12:48 +01:00
Radhika 5a35583e57 Serial printf and InterruptIn changes 2016-10-27 11:12:47 +01:00
Andrzej Puzdrowski d72553e27a fix - added proper code of cmsis_nvic.c for regular nrf51 target 2016-10-27 11:12:45 +01:00
Andrzej Puzdrowski 8339f9c294 Fix - Remove unwanted changes to the legacy nrf51822 target (caused by rebase). ad applied them to to regular targets. Fix a typo and polish nordic's code. 2016-10-27 11:12:44 +01:00
Andrzej Puzdrowski 505ea34732 NRF5: Reduce vector table size in FLASH by cutting unused endians. Move to one IAR startup code for both varaint of RAM (16 KB & 32 KB). 2016-10-27 11:12:43 +01:00
Andrzej Puzdrowski 647bdcd3e2 nRF5x Add registering bluetooth's IRQn vector by NVIC_SetVector. 2016-10-27 11:12:42 +01:00
Andrzej Puzdrowski e3d12d4047 Fix: reverted unwanted changes in ARM5's scatter files of legacy nRF51822 targets. Applied proper changes to ARM5's scatter files of nRF5 regular targets. Improvement: Remove hardcoding of FLASH vector address, now FLASH vector address is imported form linker to C code.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2016-10-27 11:12:40 +01:00
Andrzej Puzdrowski bd18ede438 Fix error in nRF5 build of Travis CI caused by request of "target hal" includes from "target cmsis" sources move form the path target/cmsis... and rename dispatch_IRQn_handler.c to the path target/.. and beter name. 2016-10-27 11:12:39 +01:00
Andrzej Puzdrowski 212a13344a Remove unwanted #ifdef form nRF5 targets spi_api implementations. Reduce size of no-init section to precisely fit to size of vector in RAM. 2016-10-27 11:12:38 +01:00
Andrzej Puzdrowski 03653b741f Intorduce NVIC_SetVector functionality for nRF5 port
# Conflicts:
#	hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c
#	hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/us_ticker.c
2016-10-27 11:12:37 +01:00
Mahadevan Mahesh 21ab7e063b Kinetis HAL: Remove clock initialization code from serial and ticker HAL drivers after updates to the mbed startup code
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-27 11:12:35 +01:00
Mike Fiore 3fb6738389 remove duplicate PWMs, fix swapped pins 2016-10-27 11:12:34 +01:00
Mike Fiore f20deb6b07 clean up peripheral pins & add new pin names 2016-10-27 11:12:33 +01:00
Mahadevan Mahesh f520135762 Sleep API Update. Call Board RUN function as some platforms need more than setting the clock mode.
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-27 11:12:32 +01:00
Mahadevan Mahesh 482cc91b98 Add support for FRDM KW24D
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-27 11:12:30 +01:00
Anna Bridge e435a07d92 Merge pull request #3111 from ARMmbed/release-candidate
Update README.md
2016-10-24 12:07:29 +01:00
Sam Grove 83f74b05bf Update README.md
Changes from 5.1 to 5.2
2016-10-21 13:14:15 -05:00
Anna Bridge de41409830 Merge pull request #3109 from ARMmbed/release-candidate
Update MBED_LIBRARY_VERSION to 128
2016-10-21 18:22:03 +01:00
Anna Bridge 75803d8fbb Update MBED_LIBRARY_VERSION to 128 2016-10-21 17:43:33 +01:00
Andres AG 1d875083b7 Add checks for NULL_ENTROPY and SSL_TLS in mbed OS 2016-10-20 14:53:57 -05:00
Sam Grove d283c0fb80 Merge pull request #3086 from iriark01/patch-4
Edit
2016-10-20 14:27:31 -05:00
Jimmy Brisson 775bfa36a4 Update pack-derived files, and add safely test 2016-10-20 10:42:59 -05:00
Irit Arkin bd5aebee87 Also replacing link
Going to the rendered Doxy; the current link won't work on docs.mbed anyway, since it's relative to the repo
2016-10-20 15:08:49 +01:00
Irit Arkin fbe44134b7 Edit
Started just because the line breaks were rendered badly on docs.mbed, but then I also did some proofreading.
2016-10-20 15:05:40 +01:00
Sam Grove 30421f226d Merge pull request #3083 from 0xc0170/mbed-os-5.2
RC4 additions
2016-10-20 08:35:03 -05:00
Jimmy Brisson d0599d48ca Account for different linker flags across the compilers 2016-10-20 11:48:39 +01:00
Jimmy Brisson e5e6e77dc8 Use correct names for library files 2016-10-20 11:48:14 +01:00
andreas.larsson f0977ca977 Moved mbedtls config for u-blox ODIN-W2 to macros in target.json 2016-10-20 11:47:46 +01:00
Martin Kojtal c0585c36d6 Merge pull request #3080 from ARMmbed/release-candidate
Release candidate for mbed-os-5.2-rc4
2016-10-20 10:21:52 +01:00
Jimmy Brisson 457aef72ff Remove dependency on XDG home spec 2016-10-19 17:24:26 -05:00
Jimmy Brisson aef71ced12 Add update command to project.py 2016-10-19 17:24:25 -05:00
Jimmy Brisson bb55470107 check in a copy of the arm-pack-manager index and use it 2016-10-19 17:24:24 -05:00
Hasnain Virk c23146bd59 ONME-2822 Binary build script mod
* Binary build script is modified to follow currebt mbedOS baseline structure
* License files are moved to the correct location.
* Contribution.md is also moved to the correct location.
2016-10-19 17:24:23 -05:00
Jimmy Brisson cd1d9cc8ee Update the IAR debug template" 2016-10-19 17:24:22 -05:00
Jimmy Brisson 7d5659062e Fix traceback from incorrect use of core 2016-10-19 17:24:21 -05:00
Russ Butler 550c17084f NUCLEO_F429 - Increase IAR heap size
Increase the IAR heap size from 48KiB to 64KiB. This give enough heap
space to run the TLS encryption examples.
2016-10-19 17:24:20 -05:00
Jimmy Brisson a4e763dae1 Add quick print to the makefile when srec_cat is required 2016-10-19 17:24:19 -05:00
Laurent MEUNIER 9534fae672 Fix pull overwrite
This fix addresses issue #2638 for STM32F1.
The STM32F1 family has a diffeerent register set for pull-up and pull-down
settings.

The same principle to read HW state is applied, as in commit:
[STM32] Fix pull over write to all families
except registers are different.

Also in this patch we make code a bit more linear.
Depending on pin_index, different register and shift index must be used.
Instead of checking this in several place, let's make a check at the
beginning of the function and use local register and shift variables.
2016-10-19 17:24:18 -05:00
Laurent MEUNIER 92ccc058d2 Fix pull over write to all families
This applies the same fix as was done for F4 to solve issue #2638.
The fix applies ell to all other families excpet STM32F1.

Basically, to avoid over-writing the pull-up/-down settings, we read the
current state from HW.
2016-10-19 17:24:17 -05:00
Toyomasa Watarai 687132125f Add cmsis.h inclusion 2016-10-19 17:24:16 -05:00
Jimmy Brisson 5c35230657 Remove unneeded relpath calculations 2016-10-19 17:24:15 -05:00
Jimmy Brisson 6d05f1db7c Exporters - Name the eclipse exporters 2016-10-19 17:24:14 -05:00
Mika Leppänen 2794b48c38 Corrected lwip TCP socket accept ipv6 address conversion 2016-10-19 17:24:13 -05:00
Andres AG 97265afc5e Update feature/mbedtls to version 2.4.0 2016-10-19 17:24:12 -05:00
Russ Butler 87e1b379ea CFSTORE - Fix test failures due to fragmentation
In the config store create test in test case #5 the amount of available
memory is determined by fully allocating the heap. This is done
multiple times to determine if there is a memory leak. This causes
problems when even slight fragmentation occurs in the heap, since
the size that can be allocated is decreased slightly, which the test
flags as a memory leak.

This patch makes memory leak detection more robust by using metrics
provided by mbed_stats_heap_get. These metrics are an exact
measurement of memory allocated is not changed by fragmentation.
This allows the memory leak test to report correct values regardless of
fragmentation.
2016-10-19 17:24:11 -05:00
Russ Butler a37ccd1133 CFSTORE - Delete handle even if key ref non zero
When closing a file handle remove the handle from the handle list
regardless of what the reference count of the key it is pointing to is.
This prevents config store from keeping a handle to file handles that
have gone out of scope.
2016-10-19 17:24:10 -05:00
Russ Butler 5a5dbc2b31 CFSTORE - fix handling of realloc fail on delete
The function cfstore_delete_ex is written under the assumption that
CFSTORE_REALLOC will never fail if the size is decreasing. Regardless
of the status of CFSTORE_REALLOC the entry is removed from the config
store and zeroed. This works correctly if CFSTORE_REALLOC correctly
updates area_0_tail, but can lead to crashes in the case area_0_tail is
left unchanged. The crash is because when iterating over the config
store data, cfstore_get_next_hkvt is unable to determine the end of
valid data.

This patch fixes this problem by handling the realloc failure case by
updating area_0_tail even if CFSTORE_REALLOC returns NULL. This
patch also adds an assert to check for out of bound entries in when
calling cfstore_get_next_hkvt. This allows an assert to be triggered
if this bug is re-introduced, rather than a crash.
2016-10-19 17:24:09 -05:00
Russ Butler 9368766cb0 CFSTORE - Fix crashed due to uninit data
When the config store is powered down area_0_head is freed, but
area_0_len is not set to 0. This causes when cfstore_realloc_ex is
called, since on the first allocation it appears that the config store
size is decreasing, and therefore the data is not initialized.

Since the data is uninitiated various fields such as the reference
can have invalid values. On GCC_ARM built with heap stats enabled
this manifests as a crash due to an invalid reference count.

This patch fixes this problem by setting area_0_len to 0 when the data
is freed.
2016-10-19 17:24:08 -05:00
maclobdell 3ab3236328 add macros for NCS36510 IAR IDE building 2016-10-19 17:24:07 -05:00