Commit Graph

1707 Commits (8b6a7aacc5d2b90ba40d89c8eeb680ebee81ea18)

Author SHA1 Message Date
Christopher Haster 5e7c0976fa littlefs: Fixed issue with immediate exhaustion and small unaligned storage
This was a small hole in the logic that handles initializing the
lookahead buffer. To imitate exhaustion (so the block allocator
will trigger a scan), the lookahead buffer is rewound a full
lookahead and set up to look like it is exhausted. However,
unlike normal allocation, this rewind was not kept aligned to
a multiple of the scan size, which is limited by both the
lookahead buffer and the total storage size.

This bug went unnoticed for so long because it only causes
problems when the block device is both:
1. Not aligned to the lookahead buffer (not a power of 2)
2. Smaller than the lookahead buffer

While this seems like a strange corner case for a block device,
this turned out to be very common for internal flash, especially
when a handleful of blocks are reserved for code.
2018-01-04 09:49:13 -06:00
Christopher Haster ffc857ddc9 littlefs: Fixed positive seek bounds checking
This bug was a result of an annoying corner case around intermingling
signed and unsigned offsets. The boundary check that prevents seeking
a file to a position before the file was preventing valid seeks with
positive offsets.

This corner case is a bit more complicated than it looks because the
offset is signed, while the size of the file is unsigned. Simply
casting both to signed or unsigned offsets won't handle large files.
2018-01-03 18:07:17 -06:00
Christopher Haster 9dd3060d60 Added littlefs statvfs implementation 2018-01-03 12:54:28 -06:00
Christopher Haster f1a9815876 Moved squiggly bracket placement per mbed style 2018-01-03 12:30:50 -06:00
gorazd f6283f5b03 ff_lpc546xx: add enet
fsl_phy.c/.h move to ../drivers to reuse it
lwip: add hardware_init.c
2018-01-01 15:55:24 +01:00
Deepika 7a90be0ce1 Added statvfs API to get storage statistics
The API is as per posix standard, but does not provide stats for file/directory.
Stats buffer (block size, total block count, free block count) is filled for
entire mounted filesystem.
2017-12-29 16:42:31 -06:00
Adam Heinrich da81229186 NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
Merged from the existing TARGET_DISCO_F413ZH code (which has the same MCU)
and TARGET_NUCLEO_F412ZG code (which has the same Nucleo-144 board and
pinout).
2017-12-29 15:30:10 +01:00
Anna Bridge a4d1dee25e
Merge pull request #5617 from bcostm/usbhost_clean-up
STM32: USBHost clean-up
2017-12-29 10:48:03 +00:00
Cruz Monrreal II 5a19f6dcf5
Merge pull request #5684 from juhaylinen/lwip-socket-fix
lwip: fix socket behaviour
2017-12-28 20:40:14 +00:00
Cruz Monrreal II 6d042d4ad4
Merge pull request #5736 from SeppoTakalo/ONME-3199
Allow 6LoWPAN applications to leave out channel specification.
2017-12-28 17:51:04 +00:00
Ashok Rao c849db2dab Adding license info 2017-12-22 13:54:22 +00:00
Martin Kojtal 9cce4d2b06
Merge pull request #5745 from kjbracey-arm/k64f_init_order
K64F Ethernet: avoid using NULL thread during init
2017-12-22 13:26:26 +00:00
Juha Ylinen 32e64e7171 Fix build for IPv4+IPv6 config 2017-12-22 13:22:00 +02:00
Juha Ylinen 52353d2ede Add function to check if address is local
Update the code to check all addresses for all interfaces. Move
the code from mbed_lwip_socket_bind() to a new function called
mbed_lwip_is_local_addr()
2017-12-22 13:21:59 +02:00
Juha Ylinen 6d3e417eaa lwip: fix socket behaviour
Return NSAPI_ERROR_PARAMETER when:
Binding to a non-local address
Socket listen() is called without calling bind() first
Socket accept() is called without calling listen() first
2017-12-22 13:21:59 +02:00
Vincent Coubard 70e5a14a4d BLE: Generic Gap - fix address management. 2017-12-21 17:39:25 +00:00
Vincent Coubard 65f74bf8ac BLE: Address GattClient comments
* invalid namespace name documentation
* vocabulary
* typo
* Add constants to improve readability
* Fix abort usages
2017-12-21 16:51:10 +00:00
Ashok Rao 9556736411 Add new line to EOF 2017-12-21 16:14:00 +00:00
Kevin Bracey 9daf450eb3 K64F Ethernet: avoid using NULL thread during init
The K64F Ethernet driver installs an interrupt handler that sets thread
flags, and this could be called before the thread was initialised, so it
would use a NULL thread ID.

This triggers an RTX error-checking trap in debug builds, and could also
lead to other problems with received packets not being processed.

Adjusted so the RX interrupt handler does nothing if the thread isn't
initialised yet, and manually trigger a RX event flag after initialising
the thread in case any interrupts were ignored.

An alternative would have been to implement eth_arch_enable_interrupts,
but this mechanism is not present in the EMAC world - drivers will have
to start returning interrupts in their power up.

Fixes #5680
2017-12-21 11:14:08 +02:00
Ashok Rao dc3c7fc11e Adding MTB ublox ODIN W2 2017-12-20 18:52:04 +00:00
Vincent Coubard 3fdb749a33 BLE: Remove old client implementation. 2017-12-20 16:27:12 +00:00
Vincent Coubard 865bd94fbd BLE: Enable Generic client on Nordic targets. 2017-12-20 16:26:40 +00:00
Vincent Coubard dea488b4f0 BLE: Introduce pal client adaptation layer for nordic targets. 2017-12-20 16:13:06 +00:00
Martin Kojtal 227b0341cb
Merge pull request #5670 from ryankurte/fix/efr32-ack-flag
Nanostack EFR32 flag fix
2017-12-20 14:42:51 +00:00
Seppo Takalo 4f36bb6480 Allow 6LoWPAN applications to leave out channel specification.
When specifying a full channel mask in .lib and setting the channel
to zero, device does proper channel scan.

For Thread, channel must be specified for router.
Sleepy devices don't respect the channel settings but do a full channel
scan at the start.

+ Modified the channel mask print to use hex.
2017-12-20 15:12:58 +02:00
Anna Bridge 4d81eadb25
Merge pull request #5701 from pan-/ble-doxy-fixes
Ble doxy fixes
2017-12-14 19:36:02 +00:00
Mika Leppänen 7f6a6323cd Fixed lwip k64f ethernet driver ipv6 multicast groups
Work around for problem in:
https://github.com/ARMmbed/mbed-os/issues/4372
2017-12-14 11:05:05 +02:00
Vincent Coubard b554fce00f BLE: Fix doxygen warnings. 2017-12-13 18:30:38 +00:00
Vincent Coubard c621a92a6a BLE: Put GapEvent into INVALID doxygen sections. 2017-12-13 16:15:21 +00:00
Vincent Coubard 82f669b61f BLE: Fix doxygen warnings.
Replace @important tag by @attention.
2017-12-13 16:14:16 +00:00
Martin Kojtal b4dc32521a
Merge pull request #5688 from artokin/mesh-fix-for-mbed-os-5.7-oob
Mesh fix for mbed os 5.7 oob
2017-12-13 09:20:47 +00:00
Martin Kojtal 5c01c3e59c
Merge pull request #5633 from paul-szczepanek-arm/master
BLE: added function converting error codes into strings
2017-12-12 17:42:10 +00:00
Martin Kojtal 484b4a29d1
Merge pull request #5311 from pan-/ble-generic-gap
BLE: Add generic GAP implementation.
2017-12-12 17:38:06 +00:00
Martin Kojtal ef44e4b4fb
Merge pull request #5469 from jeromecoutant/PR_UNITY
Unity framework : add float support in error print
2017-12-12 17:33:01 +00:00
Martin Kojtal 02beec7ee3
Merge pull request #5567 from bcostm/dev_usbdevice_disco-f413zh
STM32: Add USB Device on DISCO_F413ZH
2017-12-12 17:32:03 +00:00
Arto Kinnunen e78db9edd6 Update Thread PSKd default value
Thread PSKd can contain only uppercase characters.
2017-12-12 10:45:48 +02:00
Arto Kinnunen efc7f60799 Merge commit '6c0b324e3a5a9a5c22dc4c3a66b6c892b9ed1644' into coap-service-fix-mbedos57oob
* commit '6c0b324e3a5a9a5c22dc4c3a66b6c892b9ed1644':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from 29bfb78..d0a2597
2017-12-12 10:41:08 +02:00
Ryan Kurte 136ac17947 Nanostack flag fix 2017-12-07 14:23:35 +13:00
Abdelhak Bougouffa 4bba4e59fc Add checking for MAX_HUB_NB in a part of code that depend on MAX_HUB_NB 2017-12-02 17:09:46 +01:00
Abdelhak Bougouffa fd06eb2534 Replace the old deprecated callbacks 2017-12-02 17:08:43 +01:00
paul-szczepanek-arm 4ac75bd7b2 added function converting error codes into strings 2017-12-01 15:25:21 +00:00
Steven Cooreman 5dd46136ad Remove usage from USB driver as well 2017-12-01 12:13:06 +01:00
Martin Kojtal 2e1c2a1cdf
Merge pull request #5538 from geky/littlefs-staging
Integrate littlefs into mbed OS
2017-12-01 08:15:26 +00:00
Martin Kojtal 41591eb83b
Merge pull request #5602 from artokin/nanostack_release_v704
Nanostack release v704
2017-11-30 18:26:45 +00:00
Martin Kojtal 9f8ac6523c
Merge pull request #5300 from pan-/ble-pal-event-queue
Ble pal event queue
2017-11-30 18:16:45 +00:00
Martin Kojtal 8a39773e89
Merge pull request #5490 from deepikabhavnani/fat_upgrade
Upgrade ChanFs to R0.13a
2017-11-30 18:14:42 +00:00
Martin Kojtal 118c1bb2b4
Merge pull request #5579 from SiliconLabs/feature/rail-2.1
Upgrade Silicon Labs radio driver to v2.1.1
2017-11-30 18:10:46 +00:00
Martin Kojtal 221b8a84b1
Merge pull request #5580 from bcostm/dev_usb_speed_disco-f746ng
DISCO_F746NG: add usp_speed configuration
2017-11-30 18:09:47 +00:00
Martin Kojtal 2b84a1742f
Merge pull request #5584 from SiliconLabs/feature/emlib-5.3.3
Upgrade to Silicon Labs HAL
2017-11-30 18:09:04 +00:00
Martin Kojtal 969f8af386
Merge pull request #5589 from pan-/ble-nordic-set-description-handle
Nordic: Set handle of user description descriptors.
2017-11-30 18:07:48 +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
Christopher Haster c6130306e0 littlefs: Removed links to previous repository locations 2017-11-30 11:46:00 -06:00
bcostm c621c688c4 STM32 USBHOST: Remove DISCO_F429ZI
Impossible to make USBHost working on this board.
Remove it for now until a fix is found.
2017-11-30 13:59:43 +01:00
bcostm fe507af862 STM32 USBHOST: Corrections for DISCO_F746NG 2017-11-30 13:52:10 +01:00
Amanda Butler 634fcf0cc4 Copy edit littlefs
ExhaustibleBlockDevice.h
- Fix typos for consistent spelling.
ObservingBlockDevice.h
- Fix typos for consistent spelling.
ReadOnlyBlockDevice.h
- Fix typos for consistent spelling.
README.md
- Fix typos, mostly for branding.
DESIGN.md
- Make minor changes for consistent spelling and precise language.
SPEC.md
- Make minor changes for consistent spelling and precise language.
README.md
- Make minor changes for consistent spelling and precise language.
2017-11-29 16:35:06 -06:00
Arto Kinnunen 3252fa0971 Remove mbed-mesh-example and application 2017-11-29 21:37:10 +02:00
Arto Kinnunen 32abfcfe77 Merge commit '041b6fa73681061072f970e9cf11ff4d422fa04b' into nanostack_release_v704
* commit '041b6fa73681061072f970e9cf11ff4d422fa04b':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/' changes from 0697d9a..c9bf20f
2017-11-29 21:34:19 +02:00
bcostm 22a4299368 STM32 USBHOST: Corrections for DISCO_F429ZI 2017-11-29 18:54:04 +01:00
bcostm 18a6b96242 STM32 USBHOST: Add support of DISCO_F469NI and DISCO_F769NI 2017-11-29 18:54:04 +01:00
bcostm 8416afaeb1 STM32 USBHOST: Add support of DISCO_F413ZH 2017-11-29 18:54:04 +01:00
bcostm 755865d3fc STM32 USBHost: Improvements in USBHALHost_STM.h 2017-11-29 18:54:04 +01:00
bcostm 377db59371 STM32 USBHost: Remove USBHALHost_STM_TARGET.h files
These files are replaced by the USBHALHost_STM.h file common to all boards.
2017-11-29 18:54:04 +01:00
bcostm ef46d08589 STM32 USBHost: rename files
The USBHALHost_STM_144_64pins.h has been renamed in USBHALHost_STM.h

All the configuration is done in this file now for Nucleo and Disco boards
2017-11-29 18:54:03 +01:00
Arto Kinnunen 0413253181 Merge commit 'f900accac5b4efc426e0c2889e78ed9cd8de9b68' into nanostack_release_v704
* commit 'f900accac5b4efc426e0c2889e78ed9cd8de9b68':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from 471121d..29bfb78
2017-11-29 09:41:27 +02: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
Arto Kinnunen ac4fae8618 Merge commit 'f5265c3d2083333276909cf7b16c89657aa7d58a'
* commit 'f5265c3d2083333276909cf7b16c89657aa7d58a':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from b1c9efb..471121d
2017-11-28 13:50:00 +02:00
Arto Kinnunen fc6aeb95ff Merge commit '6887e495f0cb0b3009e4da7c0282c1542bbb2608'
* commit '6887e495f0cb0b3009e4da7c0282c1542bbb2608':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/' changes from 0a5ef1c..0697d9a
2017-11-28 13:48:31 +02:00
Arto Kinnunen 97cf8869da Add apache license to nanostack-interface 2017-11-28 11:52:43 +02:00
Arto Kinnunen 0c041b95f1 Remove obsolete clone_nanostack script 2017-11-28 09:45:09 +02:00
Christopher Haster 47684d89a5 Added test config for simulated block devices
Not all devices have enough heap to fit a simulated heap block device,
however using a simulated heap block device is preferred if available
(reduced flash wear, faster testing).

Added MBED_TEST_SIM_BLOCKDEVICE for tests that only need a simulated
block device (wear_leveling + resilience), and added support for targets
that are known to have enough heap.
2017-11-27 19:48:56 -06:00
Christopher Haster b52575bc65 littlefs: Added checks for __CLZ instruction in IAR 2017-11-27 19:48:56 -06: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 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
Vincent Coubard a665f3e06d Nordic: Set handle of user description descriptors. 2017-11-27 14:26:05 +00:00
Steven Cooreman 2becfbe2e4 Convert USB library from em_int to em_core 2017-11-25 13:03:40 +01:00
bcostm b1073c165f DISCO_F746NG: add usp_speed config 2017-11-24 16:52:59 +01:00
Steven Cooreman 21d0920068 Use mbed_sleep API instead of Silicon Labs specific sleepmode API 2017-11-24 15:36:44 +01:00
Steven Cooreman a2514fdef3 Clear TX FIFO on every transmit
Need to avoid a TX packet error from messing up the TX FIFO. Since this API will return busy if a packet is in transmission anyways, this is acceptable.
2017-11-24 14:49:53 +01:00
Steven Cooreman 812e47ca9c Add sleep mode blocking to avoid going into EM2 during RTOS idle handler 2017-11-24 14:03:10 +01:00
Steven Cooreman 76fd28c825 Upgrade RAIL to v2.1.1 2017-11-24 12:57:43 +01:00
jeromecoutant da379757f9 Unity framework : add float support in error print 2017-11-23 15:22:58 +01:00
bcostm ada482a4c3 STM32: Add USB Device on DISCO_F413ZH 2017-11-23 11:11:58 +01:00
Christopher Haster 2cf4715cb6 littlefs: Increased test timeout to 4 minutes
Unfortunately there are several issues colluding to force the timeout
this high.

1. The tests push littlefs to the limits of how many errors it can
handle before failing. As a side effect this causes a massive amount
of debug/warn/error logging about the situation.

2. The logging can't be turned off for specific tests. Note: This might
change with the introduction of test-configs.

3. Logging is fixed to a baud rate of 9600. Previous testing was carried
out with a baud rate of 115200, which is the reason for the original
timeout.
2017-11-22 17:19:16 -06:00
Christopher Haster 4adf75c9aa littlefs: Moved test block devices into general block devices 2017-11-22 16:02:54 -06:00
Christopher Haster 9bc4ea6504 littlefs: Removed mbed namespace leaks 2017-11-22 16:02:54 -06:00
Christopher Haster 314995f841 Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00'
git-subtree-dir: features/filesystem/littlefs
git-subtree-mainline: b025ea16d6
git-subtree-split: d02b3122f0
2017-11-22 16:02:21 -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 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 23408e40d1
Merge pull request #5299 from pan-/ble-generic-event-filter
Ble: generic event filter
2017-11-22 10:14:13 -06: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
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
Kevin Bracey 67b97d39c4 Make TCPSocket send all data when blocking
Previously, send() was somewhat soft - it only ever made one send
call to the underlying stack, so it would typically take as much data
as would fit in the buffer, and only block if it was unable to write
anything.

This is not the intent of a POSIX socket/filehandle write. It should try
to send everything if blocking, and only send less if interrupted by a
signal:

 - If the O_NONBLOCK flag is clear, write() shall block the calling
   thread until the data can be accepted.

 - If the O_NONBLOCK flag is set, write() shall not block the thread.
   If some data can be written without blocking the thread, write()
   shall write what it can and return the number of bytes written.
   Otherwise, it shall return -1 and set errno to [EAGAIN].

This "send all" behaviour is of slightly limited usefulness in POSIX, as
you still usually have to worry about the interruption possibility:

  - If write() is interrupted by a signal before it writes any data, it
    shall return -1 with errno set to [EINTR].

  - If write() is interrupted by a signal after it successfully writes
    some data, it shall return the number of bytes written.

But as mbed OS does not have the possibility of signal interruption, if we
strengthen send to write everything, we can make applications' lives
easier - they can just do "send(large amount)" confident that it will
all go in one call (if no errors).

So, rework to make multiple sends to the underlying stack, blocking as
necessary, until all data is written.

This change does not apply to recv(), which is correct in only blocking until
some data is available:

 - If O_NONBLOCK is set, read() shall return -1 and set errno to [EAGAIN].

 - If O_NONBLOCK is clear, read() shall block the calling thread until some
   data becomes available.

 - The use of the O_NONBLOCK flag has no effect if there is some data
   available.
2017-11-21 09:51:36 +02:00
Deepika a2a7c28191 Upgrade ChanFs to R0.13a 2017-11-20 16:02:39 -06:00
Jimmy Brisson ac891af2b2
Merge pull request #5503 from infinnovation/rewinddir
FATFileSystem: provide working dir_rewind and dir_seek
2017-11-20 10:52:05 -06:00
Jimmy Brisson 41dcd255c3
Merge pull request #5196 from kegilbert/multicast-ipv6-2
Add IPv4 and IPv6 multicast implementation for UDPSocket
2017-11-20 10:51:07 -06:00
Vincent Coubard c4351d31d8 BLE: Update GattAttribute documentation. 2017-11-17 14:39:39 +00:00
bcostm dc9eab795e STM32 USBDevice: Add DISCO_F429ZI 2017-11-17 13:10:52 +01:00
Martin Kojtal 3bedff36e3
Merge pull request #4825 from SiliconLabs/feature/mbedtls-hw-accel
Silicon Labs: Add cryptographic acceleration support
2017-11-16 16:24:52 +00:00
Martin Kojtal 2a7fcdfe48
Merge pull request #5296 from pan-/generic-access-service-abstraction-layer
BLE: Generic access service abstraction layer
2017-11-16 16:22:29 +00:00
Martin Kojtal 81dbd035ab
Merge pull request #5392 from pan-/improve-ble-docs
Improve ble docs
2017-11-16 16:21:50 +00:00
Martin Kojtal b76b3f723d
Merge pull request #5472 from pan-/doc_battery_service
BLE: Update BatteryService documentation.
2017-11-16 16:17:50 +00:00
Martin Kojtal bc92e40d1b
Merge pull request #5475 from pan-/doc_heart_rate_service
BLE: update heart rate service definition.
2017-11-16 16:16:37 +00:00
Arto Kinnunen 1004858c2e Merge commit '0c2a41eb5599925945111589529ad6da4ea1e5a4' as 'features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack' 2017-11-16 15:45:42 +02:00
Colin Hogben 452e290821 FATFileSystem: provide working dir_rewind and dir_seek
The index field of FATFS_DIR does not encapsulate all the context
required to reposition the directory traversal.  ChaN provides
f_rewinddir() but no directory seek, so rewind if necessary then step
through until the desired index is reached.
2017-11-16 12:24:04 +00:00
Arto Kinnunen 4d08d5b34e Merge commit 'db48ee553797312ab0b796797942a1c14db16c62' into nanostack-release-candidate
* commit 'db48ee553797312ab0b796797942a1c14db16c62':
  Squashed 'features/FEATURE_COMMON_PAL/nanostack-libservice/' changes from 854505d..09056ed
2017-11-16 14:22:17 +02:00
Arto Kinnunen d25c27475a Merge commit 'a5a8e95bd4ed695254159b6d84904116231ad640' into nanostack-release-candidate
* commit 'a5a8e95bd4ed695254159b6d84904116231ad640':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from b731d95..6d3590f
2017-11-16 14:22:03 +02:00
Arto Kinnunen 0f471518d7 Merge commit '829a5273f99d632340333ae4c404780db3f9202f' into nanostack-release-candidate
* commit '829a5273f99d632340333ae4c404780db3f9202f':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-client-randlib/' changes from 26cdd39..531457e
2017-11-16 14:21:49 +02:00
Arto Kinnunen 1432affba1 Merge commit '1bc6ddc3e8fbdcc8f301b0c78de43582b376a434' into nanostack-release-candidate
* commit '1bc6ddc3e8fbdcc8f301b0c78de43582b376a434':
  Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from d65b6b0..b1c9efb
2017-11-16 14:21:33 +02:00
Arto Kinnunen 02a3f3c90f Remove nanostack binary libraries
-Remove nanostack binary libraries
-Remove content from sal-stack-nanostack
-Update contribution rules.
-Remove binary LICENSE
2017-11-16 14:20:28 +02:00
Martin Kojtal 41eb565d9c
Merge pull request #5342 from ARMmbed/feature_cortex_a
Update CMSIS/RTX with Cortex-A support
2017-11-15 11:24:36 +00:00
Amanda Butler a855251cba
Copy edit HeartRateService.h
Make minor copy edits.
2017-11-13 04:12:03 -06:00
Steven Cooreman 1dc3941a5f Apply feedback by @Patater 2017-11-11 19:38:54 +01:00
Vincent Coubard 93a4a2a87b BLE: update heart rate service definition.
This patch includes:
* Documentation update.
* Code simplification and correctness; the value overloads based on the
  size of the hrm counter has been removed in favor of runtime check which
  is more correct.
* The control point characteristic has been removed since HeartRate value
  byte does not support the accumulated energy expanded.
2017-11-10 15:38:39 +00:00
Vincent Coubard 220652ffac BLE: Fix assertion in Battery service. 2017-11-10 11:02:48 +00:00
Bartek Szatkowski 6e11dc2c4a Modification to arm_math.h
Remove redefinition of __CLZ and __SSAT.
2017-11-10 09:53:42 +00:00
Martin Kojtal 47bae16a5c
Merge pull request #5305 from andcor02/master
New Target: Mbed Connect Cloud board
2017-11-10 08:43:29 +00:00
Amanda Butler 521345307b
Copy edit BatteryService.h
Make minor copy edits, mostly for active voice and U.S. spelling.
2017-11-09 12:39:18 -06:00
Vincent Coubard 423cd23ec0 BLE: Update BatteryService documentation. 2017-11-09 18:08:32 +00:00
Martin Kojtal 82f5b58f4c
Merge pull request #5295 from pan-/GAP-platform-abstraction-layer
BLE: Gap platform abstraction layer
2017-11-09 16:54:11 +00:00
Martin Kojtal 8acf00a370
Merge pull request #5319 from kegilbert/fix-build-warnings
Remove build warnings in LWIP
2017-11-09 16:51:55 +00:00
Martin Kojtal c67d91a4fc
Merge pull request #5322 from chrissnow/LPC1768_LWIP
LPC1768: Fix ETHMEM_SECTION placement for ARM
2017-11-09 16:51:13 +00:00
Martin Kojtal c3a14c9c25
Merge pull request #5270 from ryankurte/fix/nanostack-efr32-threading
Fix for Nanostack threading on EFR32 devices
2017-11-09 16:36:15 +00:00
Martin Kojtal dbda1b159c
Merge pull request #5426 from pan-/fix_hvx_handling
BLE: Fix initialization of GattHVXCallbackParams in Nordic port.
2017-11-09 16:30:24 +00:00
Amanda Butler 3dc28ce01b
Copy edit GattCharacteristic.h
Copy edit file.
2017-11-08 15:09:00 -06:00
Amanda Butler bdf0cbb3c9
Copy edit GapAdvertisingData.h
Copy edit file.
2017-11-08 14:58:38 -06:00
Amanda Butler 6f7f5ae57e
Copy edit GattClient.h
Make copy edits to file.
2017-11-08 14:14:04 -06:00
Amanda Butler 3a80f8b823
Copy edit Gap.h
Copy edit file.
2017-11-08 11:32:31 -06:00
Amanda Butler 6e20887724
Copy edit GattServer.h
Copy edit, mostly for consistent tense and hyphenation.
2017-11-07 17:56:44 -06:00
Amanda Butler 5178f89c8b
Copy edit GattCallbackParamTypes.h
Copy edit for active voice.
2017-11-07 17:42:40 -06:00
Amanda Butler 91fa78d980
Copy edit GapScanningParams.h
Copy edit, mostly for consistent tense across documents.
2017-11-07 17:33:16 -06:00
Amanda Butler 9052cf45c3
Copy edit GattAttribute.h
Make minor copy edits for active voice and phrasing.
2017-11-07 17:27:41 -06:00
Amanda Butler fcb50dd5c8
Copy edit ServiceDiscovery.h
Make minor copy edits, mostly for consistent tense.
2017-11-07 17:24:17 -06:00
Amanda Butler 1720a484dd
Copy edit UUID.h
Copy edit, mostly for consistent tense and consistent use of hyphens.
2017-11-07 17:00:34 -06:00
Amanda Butler 71bc3f74da
Copy edit blecommon.h
Copy edit, mostly for consistent punctuation.
2017-11-07 16:33:49 -06:00
Amanda Butler 4702ff2070
Copy edit GapAdvertisingParams.h
Make minor copy edits, mostly for active voice and comma use.
2017-11-07 16:31:09 -06:00
Amanda Butler 6e455417d3
Copy edit SafeBool.h
Make minor copy edits, mostly for nonrestrictive clauses.
2017-11-07 16:25:45 -06:00
Amanda Butler 739b59b598
Copy edit GattService.h
Change passive to active voice.
2017-11-07 16:20:36 -06:00
Amanda Butler 69a06a9f52
Copy edit GattServerEvents.h
Make minor copy edits for active voice, brevity and comma use.
2017-11-07 16:18:23 -06:00
Amanda Butler bd39a6eb75
Copy edit FunctionPointerWithContext.h
Make minor copy edits, mostly for consistent tense across documentation.
2017-11-07 16:10:29 -06:00
Amanda Butler 4bf95bc3f8
Copy edit DiscoveredService.h
Make minor copy edits, mostly for active voice and branding.
2017-11-07 15:59:37 -06:00
Amanda Butler 7a4ac93eb1
Copy edit DiscoveredCharacteristicDescriptor.h
Copy edit, mostly for active voice.
2017-11-07 15:56:05 -06:00
Amanda Butler 08ba159cf6
Copy edit DiscoveredCharacteristic.h
Make minor copy edits, mostly for active voice and American English.
2017-11-07 15:52:43 -06:00
Amanda Butler c9931f3643
Copy edit CharacteristicDescriptorDiscovery.h
Make minor copy edits, mostly for active voice.
2017-11-07 15:34:57 -06:00
Amanda Butler 0f91ea2b2a
Copy edit CallChainOfFunctionPointersWithContext.h
Make minor copy edits, mostly for typos.
2017-11-07 15:30:27 -06:00
Vincent Coubard 3cbe3918e7 BLE: Update BLE.h comments.
* processEvents: Remove reference to mbed OS 3.
* Clarify documentation of waitForEvent.
2017-11-06 14:37:58 +00:00
Laurent MEUNIER 1f3dfd8875 STM32: Extend Ethernet RMII workaround
to all applicable devices part of F77x/F76x series.
2017-11-06 10:23:30 +01:00
Vincent Coubard b0094ac0d3 BLE: Fix initialization of GattHVXCallbackParams in Nordic port. 2017-11-03 12:35:33 +00:00
Jimmy Brisson c8edd2ea22
Merge pull request #5411 from LMESTM/rmii_f767
STM32: Ethernet: Workaround for STM32_F767 revA
2017-11-02 10:44:34 -05:00
Jimmy Brisson a9b594b428
Merge pull request #5410 from pan-/deprecate-gap-events
BLE: Deprecate GapEvent
2017-11-02 10:44:15 -05:00
Jimmy Brisson 7583107317
Merge pull request #5409 from pan-/fix-ibeacon-doc
BLE: Update iBeacon documentation.
2017-11-02 10:43:54 -05:00
Jimmy Brisson 6c153609f0
Merge pull request #5400 from gabker01/master
Beetle BLE: Fix variable length GATT attribute
2017-11-02 10:42:46 -05:00
Laurent MEUNIER 96b4c36f0f STM32: Ethernet: Workaround for STM32_F767 revA
On STM32 F767 rev A devices ,Ethernet peripheral had problems on RMII
interface, on MII this was not the case.

This commits implements a tentative workaround for the issue rerfered to
as Ethernet erroneous data received in RMII configuration in the Errata
sheet below:
http://www.st.com/content/ccc/resource/technical/document/errata_sheet/group0/23/a6/11/0b/30/24/46/a5/DM00257543/files/DM00257543.pdf/jcr:content/translations/en.DM00257543.pdf

Note that the issue has been fixed in 'Z' revision. of STM32 F767 MCUs.
2017-11-02 10:38:12 +01:00
Jimmy Brisson 9dfbf228ec
Merge pull request #5395 from kegilbert/resolve-doxy-warnings-filesystem
Resolve doxygen warning in filesystems docs
2017-11-01 14:07:17 -05:00
Kevin Gilbert 54980546ce Remove build warnings in LWIP 2017-11-01 08:47:58 -05:00
Ryan Kurte 37a38d08ea Swapped to macro definition for debug prints 2017-11-01 11:02:08 +13:00
Steven Cooreman 2f02a23ac0 Cosmetic fix 2017-10-31 18:58:15 +01:00
Vincent Coubard c8747aad0f Cordio: Use GenericGap instead of CordioGap. 2017-10-31 17:40:01 +00:00
Vincent Coubard e9170e6507 BLE: Cordio fix default connection handle for GattServer write and areUpdatesEnabled 2017-10-31 17:40:00 +00:00
Vincent Coubard c30eee0f03 BLE: Cordio implementation of ble::pal::Gap. 2017-10-31 17:40:00 +00:00
Vincent Coubard 0d0cdb6f8e BLE: Cordio implementation of pal::GenericAccessService. 2017-10-31 17:40:00 +00:00
Vincent Coubard 1b7a3ffa02 BLE: Add generic GAP implementation.
Generic implementation of the GAP class. It allows porters to have a working Gap
implementation by implementing the following abstraction layer primitives:
- pal::Gap: Adaptation for GAP related primitives.
- pal::EventQueue: simple interface to the inner event queue of the stack.
  pal::SimpleEventQueue can also be used as an implementation.
- pal::GenericAccessService: Accessors to the Generic Access Service present in
  the GATT server.
2017-10-31 17:39:14 +00:00
Vincent Coubard 953739c026 BLE: Event Queue interface at the pal level.
To help generic code, an interface of an event queue at the PAL level has been
added. Implementation can either rely on the event mechanism internal to the
stack or use the SimpleEventQueue implementation provided by this patch.
2017-10-31 17:38:04 +00:00
Vincent Coubard 63668cb7d2 BLE: Add generic event filter.
This filter prevent events to be signaled multiple times to the upper layer. It
also signal events to a newly set event processor hook.
2017-10-31 17:37:05 +00:00
Vincent Coubard 0025b685ea BLE: Generic Access Service Adaptation layer
Add an abstraction which manage the state of the GAP service exposed by the GATT server.
2017-10-31 17:35:37 +00:00
Vincent Coubard 744abca8ff BLE: Adaptation interface of the GAP layer.
This interface expose the primitives needed to realize operations defined in
the GAP layer. Data types, event and function definitions follow closely HCI
commands and events defined in the Bluetooth specification.
2017-10-31 17:32:01 +00:00
Vincent Coubard 3ad3942810
BLE: Fix typos in iBeacon documentation. 2017-10-31 16:50:07 +00:00
Vincent Coubard 65bb642c81 BLE: Deprecate GapEvent
This class and its components are not used by BLE API and never been used in the
last two years.

This patch deprecate all the components in GapEvent.h and exclude its definitions
from the documentation process.
2017-10-31 16:39:24 +00:00
Amanda Butler 0042cd8751
Copy edit iBeacon.h
Make minor copy edits.
2017-10-31 11:27:23 -05:00
Vincent Coubard 5d26ea50f3 BLE: Fix conjugation and spelling of iBeacon documentation. 2017-10-31 13:19:16 +00:00
Vincent Coubard 699ad9c29c BLE: iBeacon minor edit. 2017-10-31 11:55:31 +00:00
Vincent Coubard 62e984bdb3 BLE: Update iBeacon documentation.
Provide detailled description of the purpose, general concepts and usage.
2017-10-31 11:43:16 +00:00
Andrea Corrado 53c476acf2 introduced mbed Connect Cloud board based on ODIN-W2 Module rety commit, added ublox changes
Corrected error

Corrected error in targets json

Reworked JSON

Added lwip-eth to Connect ODIN removes ARM CC error

Fixed formating issues

Correct formating error in  .json

Indentation errors
2017-10-31 11:24:28 +00:00
Ryan Kurte c64c7b8624 Added critical section around rf_start_cca 2017-10-31 23:48:03 +13:00
Ryan Kurte 5f76ff996b Threaded wrapper for rail driver on EFR32 platforms
Updated NanostackRfPhyEfr32 with a receive queue.
Cleaned up debug messages, re-added to non-threaded calls.

Removed debug print override

Removed tr_debug override

Removed normal-operation prints that could have timing implications if enabled

Removed dead NVIC code (and a couple of dead log outputs)
2017-10-31 23:48:03 +13:00
Amanda Butler 25ad0f3959
Copy edit BLEInstanceBase.h
Make minor copy edits.
2017-10-30 17:26:48 -05:00
Amanda Butler 96429c5212
Copy edit BLE.h
Make minor copy edits, mostly for active voice and consistent comma use across docs.
2017-10-30 14:26:55 -05:00
Amanda Butler 2038e72782
Copy edit ArrayView.h
Copy edit, mostly for active voice and agreement.
2017-10-30 11:03:15 -05:00
Vincent Coubard 3c3592a9d3 BLE: Update documentation.
Fix typos, spelling and conjugation.
2017-10-30 15:40:58 +00:00
Jimmy Brisson 7b2e9b1ad1
Merge pull request #5385 from kegilbert/slicingbd-ctor-rework
SlicingBD: replace second constructor with default parameter
2017-10-30 10:12:19 -05:00
Jimmy Brisson 27533ff16e
Merge pull request #5375 from kegilbert/chainingbd-address-iter-fix
ChainingBlockDevice: changing blocks address fix
2017-10-30 10:09:51 -05:00
Gabor Kertesz 0e2f5b938d Beetle BLE: Fix variable length GATT attribute
Variable length flag was lost during attribute settings,
so variable length GATT attributes should have been set
to the predefined maximum length.
This fixes issue #86.

Change-Id: Ia0cd236ecd903fdb9e62a21bffef57d1e63764b9
2017-10-30 13:53:12 +01:00
Kevin Gilbert b9d2dbafcf Resolve doxygen warning in filesystems 2017-10-27 18:18:04 -05:00
Vincent Coubard 67b47cad87 BLE: Group GattServer documented elements 2017-10-27 14:37:57 -05:00
Vincent Coubard 1c2685c2ac BLE: Improve GattClient.h documentation. 2017-10-27 14:37:02 -05:00
Vincent Coubard 075e1dbdd9 BLE: Improve Gap.h documentation. 2017-10-27 14:35:51 -05:00
Vincent Coubard e4a097f4ee BLE: Imrpove deprecated.h documentation. 2017-10-27 14:34:51 -05:00
Vincent Coubard 7f22d25018 BLE: Improve GattServerEvents.h documentation. 2017-10-27 14:33:54 -05:00
Vincent Coubard a7b4d6accd BLE: Improve GattCallbackParamTypes.h documentation. 2017-10-27 14:32:53 -05:00
Vincent Coubard e3252da515 BLE: Improve ServiceDiscovery.h documentation. 2017-10-27 14:31:43 -05:00
Vincent Coubard a03192f625 BLE: Improve UUID.h documentation. 2017-10-27 14:30:41 -05:00
Vincent Coubard 76722fe30a BLE: Improve SafeBool.h documentation. 2017-10-27 14:29:39 -05:00
Vincent Coubard 4209e88b9e BLE: Improve GapScanningParams.h documentation. 2017-10-27 14:28:37 -05:00
Vincent Coubard 282740a1c5 BLE: Improve GapAdvertisingParams.h documentation. 2017-10-27 14:27:35 -05:00
Vincent Coubard ae7a5eef62 Update GapAdvertisingData.h 2017-10-27 14:27:09 -05:00
Vincent Coubard 95950ada43 BLE: Improve FunctionPointerWithContext.h documentation. 2017-10-27 14:26:14 -05:00
Vincent Coubard d7936e1df3 BLE: Improve DiscoveredService.h documentation. 2017-10-27 14:25:21 -05:00
Vincent Coubard b163f321ad BLE: Improve DiscoveredCharacteristicDescriptor.h documentation. 2017-10-27 14:24:21 -05:00
Vincent Coubard 9577735f7a BLE: Improve CharacteristicDescriptorDiscovery.h documentation. 2017-10-27 14:23:24 -05:00
Vincent Coubard b193f9bd64 BLE: Improce DiscoveredCharacteristic.h documentation. 2017-10-27 14:21:57 -05:00
Vincent Coubard 4a21b74685 BLE: Improve CallChainOfFunctionPointersWithContext.h documentation. 2017-10-27 12:23:43 -05:00
Vincent Coubard e0b28ea583 BLE: Update BLETypes.h documentation. 2017-10-27 12:21:43 -05:00
Vincent Coubard d0b57d7628 BLE: Update BLEProtocol documentation 2017-10-27 12:20:26 -05:00
Vincent Coubard fef7bf8bae BLE: Update BLEInstanceBase documentation. 2017-10-27 12:19:12 -05:00
Vincent Coubard c49c71ce5d BLE: Update blecommon documentation. 2017-10-27 12:16:13 -05:00
Vincent Coubard 37c26a2722 BLE: Improve BLE.h documentation.
- The class has been documented with a detailed example and explanation of its
responsabilities.
- Members have been reordered and regrouped logically.
- Deprecated annotation has been added to relevant members.
- BLE::BLE, BLE::waitForEvent has been deprecated to match with their existing
description.
2017-10-27 12:13:59 -05:00
Vincent Coubard 7254ceb01b BLE: Improve ArrayView documentation.
- Improve detailed description of the class.
- Add undefined params tparams and return documentation.
- Add pre and postcondition when valuable.
- Put the elements of the file in the ble.common group.
2017-10-27 12:11:06 -05:00
Kevin Gilbert 84e3110b6f Replace second SlicingBD ctor with default arg
Replace second ctor in SlicingBlockDevice with default parameter for the end address in first ctor
2017-10-26 11:49:35 -05:00
Chris Snow 1e53aacd9f Fix ETHMEM_SECTION placement for ARM on LPC1768 2017-10-26 15:18:20 +01:00
Anna Bridge 97e2d4a8c5 Merge pull request #5025 from grygorek/master
LPC1769 port
2017-10-26 11:35:35 +01:00
Anna Bridge 38ba693c57 Merge pull request #5327 from bcostm/remove_warnings
STM32: Remove compilation warnings
2017-10-26 11:05:20 +01:00
Kevin Gilbert a746f95a8b Change address subtraction when moving through block devices to be the size of the entire block device not the block size 2017-10-24 18:31:46 -05:00
Martin Kojtal 091660556b Merge pull request #5337 from kegilbert/heapblockdevice-ctor-doc
Add additional note on the HeapBlockDevice constructor block parameter
2017-10-19 16:40:10 +01:00
stcoorem 2e2fb6ff26 Applied @yanesca and @andresag01 comments (#4825) 2017-10-19 12:00:09 +02:00
bcostm 8477422086 STM32: Remove lwip compilation warnings 2017-10-19 08:58:40 +02:00
Martin Kojtal e1090cafe1 Merge pull request #5275 from alzix/upgrade-uvisor-v0.31.0
uVisor: Upgrade to v0.31.0
2017-10-18 10:46:52 +01:00
Kevin Gilbert 1cfaa4a4e6 Add additional information on the block parameter in the HeapBlockDevice ctor 2017-10-17 19:03:39 -05:00
Alexander Zilberkant fb9fd5b50b uVisor: Upgrade to v0.31.0 2017-10-16 07:26:46 -07:00
Vincent Coubard a917b90e0b BLE: Add safe Enum abstraction. 2017-10-15 16:37:38 +01:00
Jimmy Brisson 20d93bf78d Merge pull request #5292 from kegilbert/HeapBlockDevice-ex-update
Update HeapBlockDevice example
2017-10-13 09:28:39 -05:00
Jimmy Brisson 2a57d598dc Merge pull request #5252 from ARMmbed/6lowpan-enable-MPL
Enable MPL by default for 6LoWPAN-ND.
2017-10-13 09:25:32 -05:00
Jimmy Brisson 926ed139f5 Merge pull request #5250 from kjbracey-arm/pbuf16
lwIP: Add memory configs to JSON
2017-10-13 09:24:46 -05:00
Jimmy Brisson 2f652be4c0 Merge pull request #4898 from u-blox/stm32f437xg_hw_security
Enable crypto HW acceleration for STM32F437xG platforms
2017-10-13 09:16:19 -05:00
Kevin Gilbert b56ced249a Add multicast implementation for UDPSocket. IPv4 and IPv6 both supported. 2017-10-10 18:21:18 -05:00
Kevin Gilbert 86fa6771bd Add erase to example
Use defined blocksize constant
2017-10-10 17:19:24 -05:00
Kevin Gilbert 37b3b40e2a Update HeapBlockDevice example in header file to compile 2017-10-10 16:19:13 -05:00
Kevin Bracey cd06ebb3c7 lwIP: Add memory configs to JSON
We currently set the lwIP pbuf pool size small - to 5 x 576-byte
buffers.

This is insufficient to hold a single DTLS handshake flight, so can
cause cloud client connections to fail. STM-based platforms are failing
handshake because of this. (K64F works because it doesn't use the pbuf
pool for reception, but lwIP does recommend drivers use the pbuf pool).

Not changing the default memory sizes here, as intended for a patch
release, but adding mbed configuration options to allow the numbers to
be adjusted for memory tuning in an application.

In a future minor revision, I would recommend increasing the default
PBUF_POOL_SIZE - we are well below lwIP's out-of-the-box default - and
offsetting by a reduction in MEM_SIZE for the drivers that don't use
PBUF_RAM.
2017-10-10 11:34:21 +03:00
Jimmy Brisson 82196ee520 Merge pull request #5229 from akosthekiss/ble-service-doc-fix
Fix documentation of BLE GattCharacteristic
2017-10-09 11:16:30 -05:00
Jimmy Brisson d6136b9790 Merge pull request #5157 from OpenNuvoton/nuvoton
NUC472/M453/M487/NANO130: Add updates for Nuvoton targets
2017-10-09 11:12:43 -05:00
Akos Kiss 87a2b5bd6f Fix documentation of BLE GattCharacteristic
The constructor doc incorrectly suggested that only short (16-bit)
UUIDs were accepted. The same doc also referred to properties
instead of characteristics. (And to "value length", which seemed to
be completely out of place in the context of the current code.)
2017-10-05 11:15:30 +02:00
Seppo Takalo 720ebc130c Enable MPL by default for 6LoWPAN-ND.
In Thread network, MPL is already enabled so this causes
both to behave similarly.
2017-10-04 15:22:16 +03:00
Juhani Puurula 2b27ad15b2 Nanostack v6.2.2 2017-10-04 10:01:14 +03:00
Piotr Grygorczuk 728a3a4a76 mbed LPC1768 & Xpresso LPC1769 unified
Target of LPC1769 links to mbed LPC1768.
The PinNames.h has conditional compile for the pin names.
LWIP lpc17xx emac driver modified to allow LPC1769 target
2017-10-02 11:05:39 +01:00
Jimmy Brisson c3dc45bd0c Merge pull request #5033 from mikaleppanen/lwip_buf_err_map
Mapped lwip buffer error to nsapi no memory error
2017-09-29 10:09:11 -05:00
Jimmy Brisson e3cb228d5e Merge pull request #4795 from sarahmarshy/test-configs
Add configurable network driver tests
2017-09-28 14:06:38 -05:00
Jimmy Brisson f0a10750d7 Merge pull request #4990 from akosthekiss/ble-uart-flush
Add flush to the BLE UART Service
2017-09-28 14:01:15 -05:00
Jimmy Brisson 5a018585c6 Merge pull request #5183 from geky/fix-dir-open-failures
fs: Fix dir open during failure condition
2017-09-28 13:59:28 -05:00
Jimmy Brisson fb5241c73f Merge pull request #5060 from pan-/cordio_port
BLE: Cordio port
2017-09-27 09:08:24 -05:00
Jimmy Brisson 908a05b231 Merge pull request #5016 from u-blox/apndb_fix
Fix cellular APN_db.h lookup.
2017-09-27 09:06:46 -05:00
Jimmy Brisson 760fc335c0 Merge pull request #4982 from NXPmicro/Update_K66_SDK22
Update K66F to SDK 2.2
2017-09-27 09:05:44 -05:00
Jimmy Brisson b562e4e131 Merge pull request #4979 from bcostm/usbdevice_clean-up
STM32: USBDevice files clean-up
2017-09-27 09:04:37 -05:00
Vincent Coubard 75c9dfce68 BLE: Add Cordio port.
It allows mbed users to enable BLE on targets with an external BLE module.
2017-09-26 15:20:17 +01:00
Vincent Coubard aa0b5d5a22 BLE: Fix space 2017-09-26 15:20:16 +01:00
Vincent Coubard 512dd8c387 BLE: Add collection of basic BLE types shared accross all layers. 2017-09-26 15:20:15 +01:00
Vincent Coubard daaa5b1977 BLE: Introduce GenericGattClient and platform abstraction over ATT/GATT.
This changes introduce a platform adaptation over ATT/GATT that can be implemented by porter.
Unlike the GattClient interface, the ATT/GATT adaptation is simple, follow closely the Bluetooth specification and won't change over time.
Implementation of the GattClient interface is realized by the class GenericGattClient which accept in input a pal::GattClient.

This change will also free design space once adopted by partners, addition to the GattClient interface won't require partner support.
2017-09-26 15:20:15 +01:00
Vincent Coubard 38bb6b4e52 BLE: Add error code management in Gatt read and write data structures.
Also fix wrong usage of designed initializer in CPP files.
2017-09-26 15:20:15 +01:00
Vincent Coubard 85e88ccb2c BLE NRF: Fix wrong usage of designed initializer in cpp code. 2017-09-26 15:20:15 +01:00
Vincent Coubard 1fd953e33c BLE: Use shared type ble_attribute_handle_t in GattAttribute. 2017-09-26 15:20:15 +01:00
Vincent Coubard 4416ef6233 BLE: Add optionnal error_code CharacteristicDescriptorDiscovery::TerminationCallbackParams_t 2017-09-26 15:20:15 +01:00
Vincent Coubard 97995b8de9 BLE: Fix header inclusion of DiscoveredCharacteristicDescriptor. 2017-09-26 15:20:14 +01:00
Vincent Coubard c022c4a8f0 BLE: use common type ble::connection_handle_t as Handle_t. 2017-09-26 15:20:14 +01:00
Vincent Coubard dd303b7a91 BLE: Add ArrayView in utilities. 2017-09-26 15:20:14 +01:00
Vincent Coubard c58d7de93d BLE: Fix GattClient destructor by adding a virtual specifier. 2017-09-26 15:20:14 +01:00
Jimmy Brisson 79440ae17b Merge pull request #4994 from 0x6d61726b/patch-1
missing includes for filesystem.cpp (build with VisualGDB fails)
2017-09-25 10:11:43 -05:00
Mahadevan Mahesh 593fb3a6fb K66F: Update to SDK 2.2
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-24 08:14:52 -05:00
Christopher Haster a6b3b55eb9 fs: Fix dir open during failure condition
Should leave the Dir in an openable state, currently does not
since it thinks it's in use by the fs it failed to open on.
2017-09-22 18:39:52 -05:00
Jimmy Brisson bfc1c5aa39 Merge pull request #4983 from geky/bd-trim-erase
bd: Tweaked block device API to fit SD cards and FTLs better
2017-09-21 16:05:37 -05:00
Jimmy Brisson 181d7bc1bb Merge pull request #5080 from andresag01/fix-hw-acc-sha1-md5-sha256
mbedtls: Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI
2017-09-21 09:03:33 -05:00
Sarah Marsh c68b5a6c93 Remove LWIP tests 2017-09-20 18:31:05 -05:00
Jimmy Brisson 43aa6a263c Merge pull request #5018 from adustm/f439_aes_tlsclient_fix
Fix use of AES_ALT on STM32F439 for example-tls-client
2017-09-20 16:36:02 -05:00
Martin Kojtal b5c53f4dcb Merge pull request #5138 from artokin/master
Fix redefinition of mbed TLS error codes
2017-09-20 16:02:43 +01:00
cyliangtw b363d00537 [M487/NUC472] Fixed ethernet multi-function pin 2017-09-20 16:56:30 +08:00
Anna Bridge 003dd7c47f Merge pull request #5044 from Archcady/Profile_debug
Realtek_RTL8195AM fix for debug profile
2017-09-19 10:43:25 +01:00
Arto Kinnunen 0920cfc600 Fix redefinition of mbed TLS error codes
-Use guards around MBEDTLS macros.
2017-09-19 11:25:40 +03:00
Jimmy Brisson a0d55036f9 Merge pull request #5116 from hasnainvirk/iar_fix
Separate string literal from macro
2017-09-18 09:30:59 -05:00
Shrikant Tudavekar fc58349c15 update domain name to os.mbed.com 2017-09-15 11:21:28 -05:00
Hasnain Virk 8c9a0b3aa5 Seperatig string literal from macro
From C++11 and beyond string literals must be seperated by space
so that they are recongizable as seperate tokens.

Context macro in PPPCellularInterface (CTX) has been causing issues
as it was not augmented with a space from a nearby string literal.
2017-09-15 17:39:46 +03:00
adustm e6fa5f07a2 Change after code review : standardize calls among ST families
Check return values in alignment with MBEDTLS error codes
2017-09-15 14:59:08 +02:00
adustm cd1a18fee3 Use new interface of mbedtls instead of deprecated functions 2017-09-14 13:49:43 +02:00
adustm c1fcae6c50 Fix multi context for AES CBC and ECB mode
Fix mbed-os-example-tls-client use case
2017-09-14 13:49:03 +02:00
adustm 458b0ec99f Enable AES_ALT mode again (remove workaround) 2017-09-14 13:48:52 +02:00
Anna Bridge 7b428916f5 Merge pull request #4949 from theotherjimmy/feature-armc5+armc6
NEW TOOLCHAIN: Add the ARMC6 Compiler
2017-09-13 10:39:15 +01:00
Andres Amaya Garcia f928e7a707 mbedtls: Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI
STM32F439xI-family MD5, SHA1 and SHA256 hardware acceleration
occasionally produces incorrect output (#5079).

Don't enable MD5, SHA1 and SHA256 HW acceleration on STM32F439xI-family
targets by default until issue #5079 is fixed.
2017-09-12 13:39:04 +01:00
Martin Kojtal de6d2918b8 Merge pull request #4987 from andresag01/release-mbedtls-2.6.0
Update mbed TLS to version 2.6.0
2017-09-12 06:18:46 +01:00
Jimmy Brisson 33113ae207 Correct unity math for ARMC6
The assumed that isnan and isinf would be macros, but they are functions
in ARMC6.
2017-09-11 13:20:33 -05:00
Jimmy Brisson 75549754bc Compile source code for Maxim targets
They don't link because of differences in the precompiled libraries
2017-09-11 13:20:32 -05:00
Jimmy Brisson 922bf1b619 Update mbed OS to handle ARMC6 requirements 2017-09-11 13:20:32 -05:00
adbridge 6bd28ecb68 Remove string literal values and revert back to using CTX macro .
The previous fix to replace CTX with string literals was the wrong
solution. All that was actually required was to insert a space before
the macro.
2017-09-11 11:13:54 +01:00
Deepika 0132d31124 Fix IAR8 : user-defined literal operator not found
Cellular example had build issues with IAR8, combination of define and string
as argument to send function resulted in above error. Typecasting to const char *
didn't help, hence replacing the define explicitly.
2017-09-10 09:58:34 -05:00
Yuguo Zou 22269ad12c Increase tcpip thread stacksize for REALTEK_RTL8195AM
The default stack size is not enough for debug profile (low compiler
optimization)
2017-09-07 11:07:13 +08:00
Deepika 6c1ad4a4e4 Use correct IAR toolchain macro 2017-09-06 09:51:16 -05:00
Mika Leppänen 140f2b803c Mapped lwip buffer error to nsapi no memory error 2017-09-06 10:20:24 +03:00
Jimmy Brisson 84a28adc09 Merge pull request #4997 from kjbracey-arm/lwip_debug
Correct LWIP_DEBUG definition
2017-09-05 11:19:13 -05:00
Jimmy Brisson 857819f5d2 Merge pull request #4996 from kjbracey-arm/k64f_emac_1thread
Reduce K64F Ethernet driver to 1 thread
2017-09-05 11:18:44 -05:00
Jimmy Brisson 9f3801bc25 Merge pull request #4992 from akosthekiss/ble-doc-fixes
Fix BLE API docs
2017-09-05 11:17:16 -05:00
Christopher Haster ee88097cb6 fatfs: Adopted the trim function in the FAT filesystem 2017-09-05 11:16:15 -05:00
Christopher Haster 6e1b9e153c bd: Added trim function to let filesystems give erase hints to FTLs 2017-09-05 11:16:15 -05:00
Christopher Haster e798c5359e bd: Changed BlockDevice erase to default as no-op
This should help with confusion around devices that don't have
a physical erase operation, such as SD cards and spinny disks.
2017-09-05 11:16:15 -05:00
bcostm 8f4b6e241d STM32 USBDevice: Add DISCO_F407VG target 2017-09-05 14:08:52 +02:00
bcostm 9e3b509a99 STM32 USBDevice: Add NUCLEO_F446RE target 2017-09-05 14:08:52 +02:00
bcostm 1d72b3124d STM32 USBDevice: Remove disco-f429zi, clean-up nucleo-f103rb 2017-09-05 13:24:32 +02:00
bcostm 211d2011eb STM32 USBDevice: add more supported targets 2017-09-05 13:24:32 +02:00
bcostm 58c9f4b9bd STM32 USBDevice: refactor files 2017-09-05 13:24:32 +02:00
Rob Meades bce900d8f7 Fix cellular APN_db.h lookup. 2017-09-05 11:50:51 +01:00