Commit Graph

13132 Commits (aa176ee616bc1059b703f998bb3a5d933ae34060)

Author SHA1 Message Date
Martin Kojtal aa176ee616
Merge pull request #5585 from SiliconLabs/bugfix/timer_precision
Fix issue with timer timebase on EFR32
2017-11-30 18:06:37 +00:00
Martin Kojtal 1498a807c7
Merge pull request #5592 from pan-/ble-nordic-fix-gatt-server-write
BLE: Fix GattServer::write on Nordic targets.
2017-11-30 18:05:27 +00:00
Martin Kojtal 0ef3ca7f19
Merge pull request #5593 from pan-/ble-fix-equality-comparison
BLE: Fix greater than or equal to comparision in GattCharacteristic.
2017-11-30 18:04:58 +00:00
Martin Kojtal b076565ac0
Merge pull request #5596 from kjbracey-arm/strong_cas
Make LDREX/STREX CAS functions strong
2017-11-30 18:04:14 +00:00
Martin Kojtal 244d8a9c9d
Merge pull request #5601 from andreaslarssonublox/ublox_odin_driver_os_5_v2.3_rc1
Updated ODIN drivers to v2.3 RC1
2017-11-30 18:02:38 +00:00
Martin Kojtal 7767651858
Merge pull request #5609 from 0xc0170/fix_lpc546xx_enet
LPC546XX: Add ENET support
2017-11-30 18:00:30 +00:00
Martin Kojtal 6d50868756
Merge pull request #5611 from JanneKiiskila/rtl8195am-a3-fix
Realtek RTL8195AM A3 fix
2017-11-30 17:59:44 +00:00
Martin Kojtal 9314607050
Merge pull request #5616 from soramame21/ren-disco-f429zi
Support bootloader for DISCO_F429ZI
2017-11-30 17:57:35 +00:00
Boting Ren f48ac95a38 Support bootloader for DISCO_F429ZI. 2017-11-30 19:41:41 +09:00
Janne Kiiskilä 791343a1f7 Realtek RTL8195AM - define A3-A5 as NC
Based on the Mbed OS website the A3 is connected to "DAC", however there
is no define for DAC. In order to get the Realtek RTL8195AM to even compile
with mbed-os-example-client now, we must have the A3 defined - it is one of
the standard Arduine header pins. Therefore, setting it as NC.

A4-A5 are not connected either, so adding them as "NC" as well.

Realtek will hopefully push a proper fix sooner or later, if there is a
more meaningful define for the A3 pin. They do state however that the
A0-A3 pins are not GPIO capable anyway.

Ref: https://os.mbed.com/platforms/Realtek-RTL8195AM/
2017-11-29 12:35:02 +02:00
Mahadevan Mahesh 1da73df27d FF_LPC546XX: Remove LWIP feature
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-11-28 16:18:44 +00:00
Mahadevan Mahesh f2d2ed44cd LPC546XX: Add ENET support
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-11-28 16:18:36 +00:00
Kevin Bracey 59508d46a6 Explicitly note that CAS is strong in docs
Add a note to each CAS making explicit that the functions are strong.

Minor wording change to expectedCurrentValue - use of "still updated"
about the failure case suggested that it might be written to on success.
For some uses it's critically important that expectedCurrentValue only
be written on failure, so change wording to "instead updated".
2017-11-28 14:02:28 +02:00
andreas.larsson f2de0956b4 Updated ODIN drivers to v2.3 RC1 2017-11-28 12:22:45 +01:00
Kevin Bracey cfa6d07a3b Make LDREX/STREX CAS functions strong
The LDREX/STREX implementations of the compare-and-swap functions were
weak (they could spuriously fail when the value was expected), whereas
the critial section implementation was strong, and the documentation has
no suggestion that there might be spurious failures.

Rationalise by adding a retry loop for STREX failure, so that it only
returns false when the value is not expected.

Fixes https://github.com/ARMmbed/mbed-os/issues/5556
2017-11-28 11:56:50 +02:00
Vincent Coubard 6c015b98c9 BLE: Fix greater than or equal to comparision in GattCharacteristic. 2017-11-27 19:08:33 +00:00
Vincent Coubard 6f19dea656 BLE: Fix GattServer::write on Nordic targets.
GattServer::write on Nordic's targets use sd_ble_gatts_hvx to send an
handle value Notification or Indication; This function can fail if the
connection handle is invalid or if Updates are not enabled for this
connection.

This patch workaround those limitations.
2017-11-27 18:56:51 +00:00
Jimmy Brisson 70e7b40468
Merge pull request #5583 from kjbracey-arm/delete_null
Remove pointless null check in operator delete
2017-11-27 10:37:40 -06:00
Jimmy Brisson 33c972666c
Merge pull request #5526 from geky/fix-armcc-fopen-mutex-malloc
Fixed mutex assert in armcc fopen and related memory leak
2017-11-27 10:37:14 -06:00
Jimmy Brisson 20eeaf5c30
Merge pull request #5511 from artokin/nanostack_oss_release
Nanostack OSS release for mbed-os-5.7
2017-11-27 10:36:44 -06:00
Jimmy Brisson b9c3003419
Merge pull request #5466 from kjbracey-arm/write_all
Make POSIX-like writes write everything when blocking
2017-11-27 10:36:28 -06:00
Jimmy Brisson 70522bb44b
Merge pull request #5360 from maciejbocianski/thread_fix
threads test adjust to run on devices with small RAM
2017-11-27 10:35:44 -06:00
Steven Cooreman c95728f6fc Fix issue with timer timebase on EFR32
Timer code was written based on integer multiple HF clock frequencies. EFR32 doesn't conform to that (38.4), and so the timestamp ticks were off by 1%. Enough to trip up some CI tests on TB_SENSE_12 (#5496)
2017-11-25 11:23:41 +01:00
Kevin Bracey ff6bc08c53 Remove pointless null check in operator delete
free() checks for NULL, no need to add another check.
2017-11-24 10:40:15 +02:00
Martin Kojtal 4e222952d7
Merge pull request #5561 from deepikabhavnani/retarget_fix
Definition for stat was missing in header file
2017-11-23 12:30:53 +00:00
deepikabhavnani e78998e117 Definition for stat was missing in header file 2017-11-22 17:41:24 -06:00
Christopher Haster 7e45aee8a5 Fixed mutex assert in armcc fopen and related memory leak
armcc fopen allocated a mutex using the retargeted system-level
_mutex_initialize function. Interestingly, malloc also uses this
same _mutex_initialization function, which prevents a full solution
relying on malloc. The solution previously implemented involved using
the rtx mutex pool for the first 8 mutexes, then falling back on
malloc.

The previous implementation relied on osMutexNew returning an error
on out-of-memory. An unrelated change causes osMutexNew to instead
assert (except for release mode). This meant if you exceed 8 system-
level mutexes in armcc you will hit an assert. Since the filesystem
code can call fopen an unlimited number of times, this is a problem.

Solution is to keep track of which static mutexes we've allocated, so
we know before calling osMutexNew if we need to call malloc.

Also _mutex_free never deallocated the malloced mutexes, which would
cause fopen to leak memory.
2017-11-22 16:53:19 -06:00
Jimmy Brisson ab1b3ae8d3
Merge pull request #5454 from OpenNuvoton/trng_get_unalignment
Nuvoton: TRNG_Get support 32 bytes unalignment
2017-11-22 10:21:39 -06:00
Jimmy Brisson 1ea4e4c446
Merge pull request #5549 from pan-/ble-gatt-server-doc-update
Ble gatt server doc update
2017-11-22 10:21:11 -06:00
Jimmy Brisson b7a7d4ed1a
Merge pull request #5553 from 0xc0170/OpenNuvoton-nuvoton_fix_lpticker
Nuvoton: fix lpticker interrupt
2017-11-22 10:20:31 -06:00
Jimmy Brisson 941f5725c7
Merge pull request #5539 from c1728p9/prevent_traceback
Prevent traceback when memap fails to parse
2017-11-22 10:20:12 -06:00
Jimmy Brisson 369187cadf
Merge pull request #5535 from MikeDK/nucleo_l432kc_async_serial_fix
NUCLEO_L432KC: Fixed async serial
2017-11-22 10:19:53 -06:00
Jimmy Brisson 4b57c5818e
Merge pull request #5528 from c1728p9/simplify_retarget
Use retarget defines where possible
2017-11-22 10:18:36 -06:00
Jimmy Brisson b6e50f5ed9
Merge pull request #5525 from deepikabhavnani/errno_fix
Fixed: errno update failure with IAR8.x
2017-11-22 10:17:56 -06:00
Jimmy Brisson 5e7851c9c5
Merge pull request #5521 from bcostm/dev_usbdevice_disco-f429zi
STM32: Add USB Device on DISCO_F429ZI
2017-11-22 10:17:15 -06:00
Jimmy Brisson a834425d97
Merge pull request #5516 from gorazdko/lpc546xx-fix-adc
lpc546xx: fix adc
2017-11-22 10:16:53 -06:00
Jimmy Brisson ced2f74f16
Merge pull request #5513 from bcostm/fix_adc_inited
STM32: Initialize ADC peripheral for each AnalogIn object creation
2017-11-22 10:16:14 -06:00
Jimmy Brisson cfa9e47aee
Merge pull request #5483 from maciejbocianski/heap_and_stack_tests
heap_and_stack test refactoring
2017-11-22 10:15:03 -06:00
Jimmy Brisson 308833b431
Merge pull request #5323 from maciejbocianski/malloc_tests
malloc test refactoring
2017-11-22 10:14:35 -06:00
Jimmy Brisson 23408e40d1
Merge pull request #5299 from pan-/ble-generic-event-filter
Ble: generic event filter
2017-11-22 10:14:13 -06:00
Maciej Bocianski bc99556151 threads test: increase threads heap size 2017-11-22 12:54:43 +01:00
Arto Kinnunen 02290f9dd7 Merge commit '03d1c4331350e6be4455b5234101075268431f11' into nanostack-release-candidate
* commit '03d1c4331350e6be4455b5234101075268431f11':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/' changes from 8f75e39..0a5ef1c
2017-11-22 11:22:16 +02:00
Arto Kinnunen 03d1c43313 Squashed 'features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/' changes from 8f75e39..0a5ef1c
0a5ef1c Merge branch 'release_internal' into release_external
75a669a Merge remote-tracking branch 'origin/add_spdx_identifier_to_license' into release_internal
d643ab3 Merge branch 'release_internal' into release_external
0c7b56c Add SPDX identifiers to license files (#1484)
dfe1010 Add SPDX identifiers to license files
9142283 Merge pull request #1473 from ARMmbed/public_release_candidate

git-subtree-dir: features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack
git-subtree-split: 0a5ef1cfad33a5cce69789cbae94c8bab84c59d9
2017-11-22 11:22:16 +02:00
ccli8 bc9c9ca1e2 [M487] Remove trailing space in lp_ticker/us_ticker 2017-11-22 08:55:58 +00:00
ccli8 8b86d44867 [M487] Fix premature lp_ticker interrupt
Old lp_ticker handles past event, but it has a bug with premature go-off.
The bug can re-produce on mbed-os-tests-mbed_drivers-lp_timeout/mbed-os-tests-mbed_hal-lp_us_tickers (mbed-os commit: 9c1fd48529).
Because upper layer (mbed-os/hal/mbed_ticker_api.c) has handled past event, this code can be removed from lp_ticker.

The similar fix also applies to us_ticker.
2017-11-22 08:55:58 +00:00
Amanda Butler 8e7d74c91a
Update GattService.h
Fix minor typos.
2017-11-21 16:08:30 -06:00
Amanda Butler 1da844bdf9
Update GattServer.h
Copy edit, mostly for active voice and because American English treats collective nouns as singular.
2017-11-21 16:06:12 -06:00
Amanda Butler 70041c1fdc
Update GattCharacteristic.h
Make minor copy edits, mostly for American English.
2017-11-21 15:41:06 -06:00
Amanda Butler 036ea46c8f
Update GattAttribute.h
Make minor copy edits for precise language and active voice.
2017-11-21 15:03:03 -06:00
Vincent Coubard d153af332c BLE: Update GattServer documentation. 2017-11-21 18:30:08 +00:00