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
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