paul-szczepanek-arm
3236eada5e
multiple ltks single irk and csrk
2018-02-06 21:16:22 +00:00
Cruz Monrreal
8ae80892b7
Merge pull request #5975 from ashok-rao/br-xDOT
...
Adding MTB_MTS_XDOT as a new target
2018-02-06 13:05:12 -06:00
Oren Cohen
b6be492751
Update uvisor-tests.txt to disable EFM32 in Jenkins
2018-02-06 18:41:19 +02:00
paul-szczepanek-arm
7aa9ae7888
fix typos
2018-02-06 15:39:31 +00:00
paul-szczepanek-arm
aba65d7fd5
added doxygen
2018-02-06 14:32:47 +00:00
Krzysztof Stachowiak
256e1de28a
Modify Silicon Labs target code to use MD API with the return values
2018-02-06 12:58:27 +01:00
paul-szczepanek-arm
9bc8c56df3
address types added, secure connectins oob added
2018-02-06 10:17:31 +00:00
ccli8
25253529ae
[M487] Support internal self-test for ECP alter.
2018-02-06 11:15:48 +08:00
ccli8
95d4110e31
[M487] Remove mbedtls_internal_ecp_mul in ECP alter.
...
MbedTLS doesn't support point multiplication for MBEDTLS_ECP_INTERNAL_ALT acceleration configuration.
2018-02-06 09:58:36 +08:00
ccli8
df76e297b4
[M487] Remove mbedtls prefix for internal functions in ECP alter.
2018-02-06 09:43:53 +08:00
ccli8
c9cc357734
[M487] Check divisor is not zero in MODOP_DIV operation in ECP alter.
2018-02-06 09:30:57 +08:00
Brendan McDonnell
88cd13b115
cast to resolve signed/unsigned comparison compiler warning in FATFileSystem::dir_seek()
2018-02-05 15:16:02 -05:00
Kimmo Vaisanen
41490f48d0
Add MTB_ADV_WISE_1570 target
2018-02-05 14:31:20 +02:00
Christopher Haster
dcd0e6b82e
Workaround for insufficient heap on IAR+MTB_xDOT_GT
...
We currently don't have a mechanism for selecting tests based on the
available ram/heap, so the best solution right now is to disable these
tests specifically for this target.
2018-02-01 10:51:16 -06:00
paul-szczepanek-arm
32e91ac168
removed idenitty list as resolution will be done insite the db asynchronously
2018-02-01 10:00:10 -06:00
Krzysztof Stachowiak
174530b5fe
Resolve conflicts after master update
2018-02-01 14:30:56 +01:00
paul-szczepanek-arm
f53359f60c
doxygen
2018-01-31 16:42:35 -06:00
paul-szczepanek-arm
132b9e01bf
fix encryption call to accept 16 octets
2018-01-31 16:23:45 -06:00
paul-szczepanek-arm
714069b965
deal with failed LTK retrieval, remove unused functionality, more doxygen
2018-01-31 14:16:56 -06:00
Cruz Monrreal
5cd30b965c
Merge pull request #5925 from geky/bd-erase-value
...
bd: Add get_erase_value function to the block device API
2018-01-31 12:13:54 -06:00
Cruz Monrreal
c06a42b05d
Merge pull request #5630 from adustm/fix5079_sha1_md5_sha256_hwcrypto
...
Fix #5079 . Support of call to mbedtls_x_finish without calling mbedtls_x_update
2018-01-31 12:08:44 -06:00
paul-szczepanek-arm
5498b79f55
doxygen, moved types to common
2018-01-31 12:06:01 -06:00
paul-szczepanek-arm
62502fe1c8
more doxygen and naming consistency
2018-01-31 11:27:32 -06:00
paul-szczepanek-arm
2060ad5df0
we don't need two event handler since now the generic security manager implements the interface
2018-01-30 17:01:30 -06:00
paul-szczepanek-arm
e686eec048
missing implementation for whitelist from bond table and more doxygen
2018-01-30 16:49:35 -06:00
Cruz Monrreal
b87e98c57b
Merge pull request #5904 from ithinuel/add-wise-1510
...
add support for STM32L443RC & WISE-1510
2018-01-30 15:01:00 -06:00
Cruz Monrreal
101fc62495
Merge pull request #5926 from geky/bd-sync
...
bd: Add sync function to the block device API
2018-01-30 14:55:59 -06:00
paul-szczepanek-arm
322ee90797
doxygen fixes
2018-01-30 14:00:21 -06:00
paul-szczepanek-arm
9e79ba4ee4
doxygen
2018-01-30 11:27:12 -06:00
Krzysztof Stachowiak
876a3b1a74
Update Mbed TLS HW acceleration partner code to new hashing API
2018-01-30 14:49:53 +01:00
adustm
88c3b3ee28
Remove last code redundancy
2018-01-30 11:06:15 +01:00
adustm
53027fd590
Improve fix calling Accumulate function every time in finish function
2018-01-30 09:41:23 +01:00
adustm
cba538854d
Fix MD5 link issue
2018-01-30 09:41:23 +01:00
adustm
3250e2d6d4
Fix #5079 . Add the support of call to mbedtls_xxx_finish even if mbedtls_xxx_udate
...
was not called since mbedtls_xxx_start
2018-01-30 09:41:23 +01:00
Amanda Butler
e6949db802
bd: Copy edit BlockDevices
...
Copy edit SlicingBlockDevice.h
Copy edit ReadOnlyBlockDevice.h
Copy edit ProfilingBlockDevice.h
Copy edit ObservingBlockDevice.h
Copy edit MBRBlockDevice.h
Copy edit ExhaustibleBlockDevice.h
Copy edit ChainingBlockDevice.h
Copy edit BlockDevice.h
Copy edit files for active voice and consistent tense.
2018-01-29 18:45:36 -06:00
paul-szczepanek-arm
faf134ae60
move helper funcitons under their own heading
2018-01-29 17:16:47 -06:00
paul-szczepanek-arm
9786244386
removed redundant const
2018-01-29 16:00:53 -06:00
Christopher Haster
88aad81345
bd: Adopted the get_erase_value function in the util block devices
2018-01-29 15:33:02 -06:00
Christopher Haster
7707c8b8b8
bd: Added get_erase_value function to the block device API
...
Default implementation returns -1 and is backwards compatible
2018-01-29 15:31:07 -06:00
paul-szczepanek-arm
d0c4186b9e
moved fucntion impl to match position in header
2018-01-29 21:20:15 +00:00
paul-szczepanek-arm
eb899bc798
split identity away from meta data and csrk, moved privacy feature from db to security manager
2018-01-29 21:10:08 +00:00
paul-szczepanek-arm
f4d29bbef6
clear up private address resolution
2018-01-29 19:22:08 +00:00
paul-szczepanek-arm
647aa1eebe
split security manager into a header and moved types to common types
...
plus a bit of extra doxygen comments
2018-01-29 17:57:00 +00:00
Cruz Monrreal
49cdb0bb07
Merge pull request #5945 from kjbracey-arm/dns_multiple
...
Correct return value of nsapi_dns_query_multiple
2018-01-29 10:09:42 -06:00
paul-szczepanek-arm
ed0722c303
upgraded oob data to octet type
2018-01-28 10:08:15 +00:00
paul-szczepanek-arm
724aef96a3
moved types to common header
2018-01-28 07:07:54 +00:00
Wilfried Chauveau
e6b19d838c
add support for STM32L443RC & WISE-1510
2018-01-26 17:06:39 +00:00
Cruz Monrreal
fe87499af8
Merge pull request #5874 from c1728p9/usb_fixes_and_improvements
...
USB fixes and improvements
2018-01-26 10:37:13 -06:00
Kevin Bracey
15a3922f58
Correct return value of nsapi_dns_query_multiple
...
Documentation states that nsapi_dns_query_multiple returns the number of
addresses found on success - it was returning 0.
Overloads using SocketAddress are relying on the return value, meaning
those calls didn't work at all.
Fixes #5921 .
2018-01-26 14:08:29 +02:00
Christopher Haster
6e5f2439a3
littlefs: Adopted the block device sync function
...
Required to garuntee that data is flushed all the way down to the disk
level when a file is synced or closed.
2018-01-24 18:07:47 -06:00
Christopher Haster
a4f8af9d5b
bd: Adopted the sync function in the util block devices
2018-01-24 18:07:35 -06:00
Christopher Haster
3f5d618c89
bd: Add sync function to the block device API
...
/** Ensure data on storage is in sync with the driver
*
* @return 0 on success or a negative error code on failure
*/
virtual int sync()
2018-01-24 17:58:20 -06:00
bcostm
352ac7a2be
Use RawSerial in MBED_11 test
2018-01-24 14:45:18 +01:00
paul-szczepanek-arm
1cc5312d1e
octet type for keys
2018-01-24 10:22:53 +00:00
Cruz Monrreal
8e683d5f1d
Merge pull request #5864 from JaniSuonpera/CoAP_v4.0.11
...
CoAP v4.1.1
2018-01-23 11:31:39 -06:00
paul-szczepanek-arm
38f8a5b8d5
separate live state from stored state in entry
2018-01-23 17:01:44 +00:00
paul-szczepanek-arm
8ef3311be0
naive memory implementation for verification purposes
2018-01-23 16:01:54 +00:00
paul-szczepanek-arm
c476fceba3
correct naming for private members
2018-01-23 15:36:57 +00:00
paul-szczepanek-arm
92965baaa8
removed redundant mitm field
2018-01-23 12:27:03 +00:00
paul-szczepanek-arm
56ea4202d7
read mitm of the csrk key not pairing
2018-01-23 12:21:32 +00:00
paul-szczepanek-arm
bc1e809ca3
keeping state of connection, storing mitm quality of keys
2018-01-23 12:20:12 +00:00
paul-szczepanek-arm
f635555a74
refresh not needed, done through requesting encryption on encrypted link
2018-01-23 12:19:38 +00:00
paul-szczepanek-arm
f1044fe2b6
internal function naming
2018-01-23 11:25:28 +00:00
paul-szczepanek-arm
4aa7158c4b
temporary code for use during verification before we integrate with gap
2018-01-23 10:47:16 +00:00
paul-szczepanek-arm
10b5e648fd
slave request handling
2018-01-22 21:01:05 +00:00
paul-szczepanek-arm
8b84b93b2c
fix to apply defaults for pairing response
2018-01-22 17:32:13 +00:00
paul-szczepanek-arm
2b7db78d7b
pairing through a single function to keep settings
2018-01-22 17:27:01 +00:00
paul-szczepanek-arm
b4e85b3d06
moved db into its own file
2018-01-22 16:50:15 +00:00
paul-szczepanek-arm
2d8451f770
block legacy pairing when requested
2018-01-22 16:39:41 +00:00
Cruz Monrreal
5af1d8fca6
Merge pull request #5800 from abougouffa/feature_unsupported_usbhost
...
Some enhancements for the USBHost feature and small bug fix
2018-01-22 10:26:07 -06:00
Cruz Monrreal
6a708d1cf8
Merge pull request #5878 from c1728p9/lpc_usb_stability_fixes
...
LPC USB stability fixes
2018-01-22 10:25:13 -06:00
Cruz Monrreal
ff08b10a90
Merge pull request #5877 from c1728p9/kinetis_usb_stability_fixes
...
Kinetis USB improvements and fixes
2018-01-22 10:24:23 -06:00
paul-szczepanek-arm
305975b15a
hint role reversal, set the correct ltk keys
2018-01-22 16:21:30 +00:00
paul-szczepanek-arm
69aac8abee
const fix
2018-01-22 14:55:49 +00:00
paul-szczepanek-arm
2ae05ea6aa
enabling signing
2018-01-22 14:54:17 +00:00
paul-szczepanek-arm
1208dc7c34
readability
2018-01-22 14:37:34 +00:00
paul-szczepanek-arm
533f6a464a
restructure cases to avoid warnings
2018-01-22 14:35:02 +00:00
paul-szczepanek-arm
4c56d4c90b
returning ref to array for csrk
2018-01-22 14:30:22 +00:00
paul-szczepanek-arm
cba92fe82c
db changes to suport peer and local keys
2018-01-22 14:11:22 +00:00
paul-szczepanek-arm
5e0ed3db01
pul events to retrieve local ltk edvi rand
2018-01-22 13:50:30 +00:00
paul-szczepanek-arm
d1c29faaa8
added slave security request
2018-01-22 11:49:42 +00:00
paul-szczepanek-arm
3300395468
missing init, removed redeclaration
2018-01-22 09:57:35 +00:00
Jani Suonpera
e0e3dbb7f8
CHANGELOG updated
2018-01-22 10:53:14 +02:00
ccli8
17280372a7
[M487] Refine code in ECP alter.
...
1. Add comment for unnecessary parameter 'n' in mbedtls_internal_run_eccop
2. Fix warning message with goto which causes `bypass initialization`
3. Fix comment
2018-01-22 11:21:19 +08:00
paul-szczepanek-arm
d880f6238d
encryption needs ltk rand and ediv
2018-01-21 22:57:05 +00:00
paul-szczepanek-arm
e301f7a1c3
removed redundant checks
2018-01-21 21:43:02 +00:00
paul-szczepanek-arm
9be7dbef78
mitm quality added
2018-01-21 19:54:41 +00:00
paul-szczepanek-arm
0ef6740fc3
line wrap
2018-01-21 19:41:18 +00:00
paul-szczepanek-arm
e2a4c08d1f
set link security and set link ecryption added
2018-01-21 19:38:36 +00:00
paul-szczepanek-arm
4820d64b9a
moved signing to matching positin in file
2018-01-21 18:47:06 +00:00
paul-szczepanek-arm
b20a49f7a3
only one key distribution settings
2018-01-21 18:45:31 +00:00
paul-szczepanek-arm
7f90c7c889
signing enabling
2018-01-21 18:26:35 +00:00
Vincent Coubard
7b169997c8
BLE Cordio: partial implementation of set ltk.
2018-01-19 18:49:39 +00:00
Vincent Coubard
a849f7f433
BLE Cordio: Enable handling of security.
2018-01-19 18:42:59 +00:00
paul-szczepanek-arm
467b36eaaf
get link security no longer needed in generic
2018-01-19 17:57:55 +00:00
paul-szczepanek-arm
f18af9f54d
retrieving signing key
2018-01-19 17:55:53 +00:00
Cruz Monrreal
f4aba252de
Merge pull request #5836 from artokin/thread_commissioning_fix
...
Thread commissioning fix
2018-01-19 11:29:58 -06:00
paul-szczepanek-arm
ad8dd5fb2c
fix wrap
2018-01-19 16:53:10 +00:00
paul-szczepanek-arm
0367cebaa2
vincent style wrapping
2018-01-19 16:52:17 +00:00
paul-szczepanek-arm
cb660985a2
get rid of all the virtual warnings and fix enum types
2018-01-19 16:41:18 +00:00
paul-szczepanek-arm
e100f7c01f
returning csrk key, init distribution list
2018-01-19 16:20:37 +00:00
paul-szczepanek-arm
9fda5550db
missing conn handle
2018-01-19 16:19:33 +00:00
paul-szczepanek-arm
3074d12ff1
security mode split into encryption and signing key
2018-01-19 15:56:18 +00:00
paul-szczepanek-arm
ebe2439ff7
move deprecated funcs down, add replacement for encryption status
2018-01-19 14:58:07 +00:00
Vincent Coubard
818ec8c8ec
BLE SM: Align CordioPalSecurityManager with PalSecurityManager and fill the blanks
2018-01-19 14:36:55 +00:00
Vincent Coubard
4fcb304f27
BLE SM: Fix rand end ediv length
2018-01-19 14:36:54 +00:00
paul-szczepanek-arm
49e1fc3932
moving pairing to its own group to match the other layers
2018-01-19 14:24:28 +00:00
Vincent Coubard
888a050381
BLE SM: Slight API adjustements and docs
2018-01-19 12:22:51 +00:00
paul-szczepanek-arm
4fb9593f9f
removed todo
2018-01-19 12:13:09 +00:00
paul-szczepanek-arm
5fcf2a6cfb
Merge branch 'palsm' of https://github.com/paul-szczepanek-arm/mbed-os into palsm
2018-01-19 11:40:29 +00:00
paul-szczepanek-arm
9e3797cb3c
timeout pal funcs combined into single result on api side
2018-01-19 11:38:42 +00:00
Vincent Coubard
44a366d103
BLE SM: Fix compilation errors
2018-01-19 11:30:27 +00:00
paul-szczepanek-arm
8b36d5ed65
fixed non-matching types
2018-01-19 10:44:48 +00:00
paul-szczepanek-arm
c3b434b3a2
fixed pal name of oob request
2018-01-19 10:40:59 +00:00
paul-szczepanek-arm
b60a464785
constness and refs fixes
2018-01-19 10:38:27 +00:00
paul-szczepanek-arm
ab056aa17e
set io caps, removed redundant params from pairing request
2018-01-19 10:30:38 +00:00
paul-szczepanek-arm
081b99e80a
link security reading from db to determine stats
2018-01-18 23:33:19 +00:00
Cruz Monrreal
c59c400093
Merge pull request #5832 from geky/fix-truncate-zero
...
littlefs: Fix file truncation without writes
2018-01-18 14:25:47 -06:00
Cruz Monrreal
698c7d9e8c
Merge pull request #5819 from geky/test-common
...
Add COMMON folder for tests
2018-01-18 14:20:23 -06:00
paul-szczepanek-arm
2fe405a2a8
propagated changes from pal to api and generic
2018-01-18 20:14:35 +00:00
paul-szczepanek-arm
9c1444f49c
dropped redundant passkey num class
2018-01-18 20:13:49 +00:00
Cruz Monrreal
b8abbab38b
Merge pull request #5761 from geky/littlefs-fix-lookahead-rewind
...
littlefs: Fix issue with immediate exhaustion and small unaligned storage
2018-01-18 13:01:25 -06:00
paul-szczepanek-arm
021a1fdf76
io caps and key size now stored by stack, secured cahgned to encrypted, moved passkey classes to pal
2018-01-18 17:40:08 +00:00
Cruz Monrreal
6b034fbc08
Merge pull request #5870 from kjbracey-arm/multicast_ns
...
NSAPI: Add Nanostack multicast membership support
2018-01-18 11:37:24 -06:00
paul-szczepanek-arm
82c0847ab8
missed one pointer to pointer
2018-01-18 17:24:10 +00:00
paul-szczepanek-arm
b88a2700de
fixed the pointers to pointers
2018-01-18 17:23:31 +00:00
paul-szczepanek-arm
b63930f53f
fixed refs to arrays
2018-01-18 17:21:59 +00:00
paul-szczepanek-arm
3f26435ad9
pariring typo
2018-01-18 17:20:43 +00:00
paul-szczepanek-arm
779d6eb7ae
updated old key_ditribution type and fixed refs to pointers
2018-01-18 17:19:59 +00:00
paul-szczepanek-arm
dee47771fd
updated implementations with new classes for auth and distribution masks
2018-01-18 15:42:50 +00:00
paul-szczepanek-arm
73e5f2d655
removed old events that are now only in legacy handling
2018-01-18 14:38:25 +00:00
Jani Suonpera
5d10878b8f
Update CoAP to 4.1.1
...
Combined CoAP changes 4.0.11 and 4.1.0
Fixed regression with 4.0.11
2018-01-18 16:03:38 +02:00
Antti Yli-Tokola
93b3cfc288
mbed-coap update to version 4.1.0
...
- New API to control whether coap itself sends a next GET(block2) request or not
- Fixes error IOTCLT-2203 mbed-coap does not handle PUT or POST if they indicate a smaller block size preference
2018-01-18 16:00:25 +02:00
paul-szczepanek-arm
01cdceb97f
key distribution now a class
2018-01-18 12:08:33 +00:00
Paul Szczepanek
5a056a1351
Merge pull request #7 from pan-/palsm-cordio-implementation
...
Palsm cordio and Nordic implementation
2018-01-18 10:20:32 +00:00
Russ Butler
6fe0aa0074
Fix LPC17XX and LPC40XX USB data throttling
...
Only clear the USB read buffer when endpointRead is called. This
allows data to be read with endpointReadResult without also allowing
USB to transfer more data. Instead additional data is transferred explicitly
with a call to endpointRead.
2018-01-17 21:50:20 -06:00
Russ Butler
eda332cbf8
Fix LPC17XX and LPC40XX USB race condition
...
If a SETUP packet arrives shortly after an IN then the packets will be
processed in the wrong order - SETUP first then IN. This causes
the subsequent control transfer to fail. Fix this problem by processing
IN packets before processing SETUP packets.
2018-01-17 21:50:18 -06:00
Russ Butler
352ff8df14
Kinetis USB improvements and fixes
...
Make the following improvements and fixes:
1.
Update the Kinetis USB driver so that endpointReadResult only reads the
result of the last read and does not trigger a new read. Instead
move the code to trigger new reads into endpointRead.
2.
Fix the race condition in controlIn caused by a call to
EP0read() followed immediately by EP0readStage(). This is done by
setting up to read the next setup packet (ignoring the status stage)
in endpointReadResult rather than in EP0readStage. This makes the
function EP0readStage unnecissary.
3.
Remove the Kinetis workaround in controlOut in USBDevice.cpp since
point 2 fixes this bug. For more info on this see the PR which
added this workaround - https://github.com/ARMmbed/mbed-os/pull/414
2018-01-17 20:58:16 -06:00
Russ Butler
beaac1525e
Fix clearing of ISTAT in Kinetis USB
...
The ISTAT register is write 1 to clear. Because of this ORing this
register with itself fill clear all bits that are set. This patch
updates the code to use plain assignment so only desired
bit is cleared.
2018-01-17 20:54:08 -06:00
Russ Butler
48cf4d85d1
Remove use of deprecated attach in USB
...
Attach callbacks with the assignment operator rather than with the
deprecated attach function. This fixes deprecation warnings.
This patch also adds the ability to attach a Callback directly.
2018-01-17 20:54:05 -06:00
Russ Butler
6decbedbb8
Fix local static initialization in USB
...
The local static initialization in USB was causing multiple problems:
-Configurable descriptor values are set only once
-USB descriptor initialization causes a trap in debug builds since
this is acquiring a mutex in an interrupt handler
-Extra ram used since all descriptors are in RAM
This patch fixes these problems by making fixed descriptors
static const so they are stored in flash and never need to be
initialized and by making descriptors that do change a member
of the class so they are always initialized when requested
rather than once though lazy static local initialization.
2018-01-17 20:53:57 -06:00
paul-szczepanek-arm
25107b1ad8
todo
2018-01-17 22:19:45 +00:00
paul-szczepanek-arm
8db6427fde
use common io caps type
2018-01-17 21:40:06 +00:00
paul-szczepanek-arm
b00b746aa0
removed old type
2018-01-17 21:27:06 +00:00
paul-szczepanek-arm
2f04aece23
shared types in common header, connected up the events in handlers
2018-01-17 21:22:48 +00:00
Vincent Coubard
743e57ffaa
Nordic BLE: Draft SM event handler.
2018-01-17 18:37:48 +00:00
Vincent Coubard
7e37cc739f
Nordic BLE: SM pal function draft (legacy pairing)
2018-01-17 18:37:48 +00:00
Vincent Coubard
5277f5a0fd
BLE: Fix signature of get_secure_connections_support in implementations.
2018-01-17 18:37:48 +00:00
Vincent Coubard
527a31663c
BLE - Nordic: Add Skeleton for the security manager
2018-01-17 18:37:48 +00:00
Vincent Coubard
ffb59eecb8
CORDIO BLE: Add PAL SM event handling (draft).
2018-01-17 18:37:47 +00:00
paul-szczepanek-arm
2fb67d2c7d
authentication mask now a class, pairing and authenticating
2018-01-17 15:39:29 +00:00
paul-szczepanek-arm
49df59ebc1
deref pointer
2018-01-17 13:26:37 +00:00
paul-szczepanek-arm
42eeacbe7c
remove redundant func
2018-01-17 13:15:15 +00:00
Jani Suonpera
fe80b6751a
Update CoAP to 4.0.11
...
This PR implement https://tools.ietf.org/html/rfc7959#section-2.5
"The error code 4.13 (Request Entity Too Large) can be returned at any
time by a server that does not currently have the resources to store
blocks for a block-wise request payload transfer that it would intend
to implement in an atomic fashion. (Note that a 4.13 response to a
request that does not employ Block1 is a hint for the client to try
sending Block1, and a 4.13 response with a smaller SZX in its Block1
Option than requested is a hint to try a smaller SZX.)
2018-01-17 14:49:46 +02:00
paul-szczepanek-arm
8197f09bd5
acoid creattion of passkey object to do the conversion
2018-01-17 12:38:35 +00:00
Kevin Bracey
268a07db37
NSAPI: Add Nanostack multicast membership support
...
Add support for recently introduced NSAPI generic socket options to
control group membership. Previously applications using Nanostack would
have had to use Nanostack's native socket options.
2018-01-17 14:30:45 +02:00
paul-szczepanek-arm
1a7e3faa18
fixed passkey classes
2018-01-17 12:28:48 +00:00
paul-szczepanek-arm
6420465c29
fix func calls args
2018-01-17 11:40:32 +00:00
paul-szczepanek-arm
a3cf83ac02
key distribution
2018-01-17 11:38:36 +00:00
Vincent Coubard
e2a2582549
BLE: Fix inclusion of BLE.h (case)
2018-01-17 11:31:50 +00:00
paul-szczepanek-arm
44f2f7b9d7
expose get number to avoid implicit casts for clarity
2018-01-17 11:25:32 +00:00
paul-szczepanek-arm
1bf0d7b921
display passkey handling, added null check to passkey contructor
2018-01-17 11:09:54 +00:00
paul-szczepanek-arm
00b1b17e62
removed broken assignment operator
2018-01-17 11:04:37 +00:00
paul-szczepanek-arm
f8c9fe7329
get sc support in pal to match api
2018-01-17 10:52:24 +00:00
paul-szczepanek-arm
d6a3347443
default state for legeacy pairing alllowed, removed obsolete code
2018-01-17 10:49:35 +00:00
paul-szczepanek-arm
9c6f57a733
name clash fixed
2018-01-17 10:48:07 +00:00
paul-szczepanek-arm
943206dd07
db restoring, legacy pairing disallowing, removed set SC support
2018-01-17 10:46:56 +00:00
paul-szczepanek-arm
11874aac3b
whitelist generations needs to be async
2018-01-17 10:30:34 +00:00
Cruz Monrreal
25aa0e6d37
Merge pull request #5846 from geky/fix-block-addr-overflow
...
littlefs: Fix block addr overflow
2018-01-16 15:53:30 -06:00
paul-szczepanek-arm
dcce428c40
conversion of passkeys, uniform calls
2018-01-16 19:39:25 +00:00
paul-szczepanek-arm
c03c7fc587
Merge branch 'palsm' of https://github.com/paul-szczepanek-arm/mbed-os into palsm
2018-01-16 19:38:44 +00:00
Cruz Monrreal
671c2d7e90
Merge pull request #5346 from scartmell-arm/feature-hal-spec-critical-section
...
Add Critical Section HAL API specification
2018-01-16 12:49:38 -06:00
paul-szczepanek-arm
53f0b6a187
keypress notification setting
2018-01-16 18:16:15 +00:00
Vincent Coubard
9bd0fa5708
BLE Cordio: Fix call to SafeEnum<>::value()
2018-01-16 18:11:38 +00:00
Vincent Coubard
e4b5681563
Cordio: Add SecurityManager singleton
2018-01-16 18:09:35 +00:00
Vincent Coubard
c3c24d8641
Cordio: Implementation of base functions necessary for legacy pairing.
2018-01-16 18:04:40 +00:00
Vincent Coubard
0cd4f93041
Add skeleton of the PalSecurityManager for the Cordio Stack.
2018-01-16 17:19:26 +00:00
Vincent Coubard
6aa3d35d82
Set virtual specifier to on_keys_distributed .
2018-01-16 17:18:49 +00:00
paul-szczepanek-arm
83d582827d
legacy pairing support call in api
2018-01-16 14:48:08 +00:00
paul-szczepanek-arm
e02ae313ac
added on_ prefixes, added split key distribution
2018-01-16 12:46:59 +00:00
paul-szczepanek-arm
f9ed3b2456
passkey types fixed
2018-01-16 12:43:25 +00:00
Paul Szczepanek
cc41857ab6
Merge pull request #3 from pan-/palsm-interface-improvement
...
Palsm interface improvement
2018-01-16 12:38:27 +00:00
paul-szczepanek-arm
f93ed1087d
split keys dsitribution, unirm on_ prefix, docs
2018-01-16 12:22:12 +00:00
Vincent Coubard
f71490b59b
Merge with palsm.
2018-01-16 12:19:41 +00:00
Vincent Coubard
75c7460575
Remove setPinCode function (not needed) and oob related functions.
2018-01-16 12:13:14 +00:00
Vincent Coubard
323bae44e1
Fixe compilation errors
2018-01-16 12:12:30 +00:00
Vincent Coubard
4df41f3ee8
Add mention of function that sets a default passkey.
2018-01-16 12:11:04 +00:00
paul-szczepanek-arm
f33d93345b
random data request
2018-01-16 11:50:49 +00:00
Vincent Coubard
9d08b2ddb3
Fixes:
...
* replace invalid using statement by typedef
* replace SecurityIOCapabilities_t by io_capability_t in send_pairing_response
* fix failure type in cancel_pairing
2018-01-16 11:29:38 +00:00
paul-szczepanek-arm
8e89dfbbfd
redundant types removed
2018-01-16 11:23:36 +00:00
Vincent Coubard
aede2a5680
Move ::SecurityManagerEventHandler and ::LegacySecurityManagerEventHandler into ::SecurityManager .
...
Fixes access right and compilation error.
2018-01-16 11:23:33 +00:00
paul-szczepanek-arm
4d3a4c530d
removed bredr oob
2018-01-16 11:21:45 +00:00
paul-szczepanek-arm
daab0b4fe1
fix error type name and unified connection handle name
2018-01-16 11:15:39 +00:00
paul-szczepanek-arm
52669fff98
match accept pairing with request pairing
2018-01-16 11:10:03 +00:00
Vincent Coubard
d3ca4a9cb3
Merge branch 'palsm' into palsm-interface-improvement
2018-01-16 10:23:45 +00:00
paul-szczepanek-arm
b95943b28e
added more missing implementations for generic
...
removed virtual keyword since this is implementation
2018-01-15 22:32:57 +00:00
paul-szczepanek-arm
4dd5e7d124
match generic sm order with the rest, added missing set secure funcs
2018-01-15 22:17:05 +00:00
paul-szczepanek-arm
a5d98d9c66
rearrange security manager so it matches pal, insert missing paring funcs
2018-01-15 22:05:44 +00:00
paul-szczepanek-arm
585f60d1fc
missing irk added, authorisation for pairing optional, minor cleanup of names
2018-01-15 21:46:02 +00:00
paul-szczepanek-arm
c86d13a7cc
removed redundant param from pair req
2018-01-15 21:44:54 +00:00
paul-szczepanek-arm
b818b87965
remove redundant pal api calls
2018-01-15 20:22:13 +00:00
Vincent Coubard
e78840427a
Add few new types.
...
Remove c192, r192, c256 and r256 references.
Refactor function names
2018-01-15 19:42:32 +00:00
paul-szczepanek-arm
92a83cf526
generic security manager implements the pal handler, added first db entry handler
2018-01-15 19:02:53 +00:00
paul-szczepanek-arm
f308702b1d
split security entry
2018-01-15 18:14:39 +00:00
Martin Kojtal
7be79f93fe
Merge pull request #5727 from dschuler/nrf52pf
...
Add presentation format descriptor support for nRF5x
2018-01-15 15:43:21 +00:00
Martin Kojtal
663a6d84e3
Merge pull request #5623 from SeppoTakalo/clarify_socket_docs
...
Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation.
2018-01-15 15:29:28 +00:00
Martin Kojtal
41be3727fc
Merge pull request #5731 from terhei/master
...
mesh-api documentation removal
2018-01-15 15:26:55 +00:00
Martin Kojtal
2d83463f9c
Merge pull request #5813 from TomoYamanaka/master
...
Revise the structure in RZ_A1 related directory
2018-01-15 15:23:52 +00:00
Martin Kojtal
8c78649078
Merge pull request #5829 from deepikabhavnani/fat_issue_5780_3
...
Fix: Sector/Size overflow from uint32_t
2018-01-15 15:22:11 +00:00
Vincent Coubard
03f07bb7ce
Refactor resolving list management.
...
Use address type from gap rather than BLEProtocol::AddressBytes_t .
2018-01-15 15:05:50 +00:00
Vincent Coubard
81904fd867
Remove bonded list storage from the adaptation layer.
...
Such processing should be handled at the upper layer.
Initiating encryption of a given connection should be made with the start
encryption command. This command accepts the parameters Rand, EDIV and
LTK.
A request of encryption request generate an LTK request event that is
forwarded to the upper layer which then reply with the LTK presents in the
Security DB or reject the request.
2018-01-15 14:36:32 +00:00
Vincent Coubard
be664d1c33
Remove whitelist management: already present in the gap addaptation layer.
2018-01-15 14:32:12 +00:00
Vincent Coubard
1ee56f6b83
Convert SecurityManagerEventHandler into a pure interface.
...
Convert most functions of SecurityManager into virtual pure functions.
Protect access to the get_event_handler function and remove function set_app_event_handler.
2018-01-15 14:25:27 +00:00
paul-szczepanek-arm
2f49b66c52
callbacks allow updates
2018-01-15 11:45:52 +00:00
paul-szczepanek-arm
145fcc5791
security db iface draft
2018-01-15 08:31:33 +00:00
Daniel Schuler
271b09cda6
Add presentation format descriptor support for NRF52
2018-01-13 15:49:40 -08:00
Christopher Haster
44e2ca44a8
littlefs: Fix block addr overflow
...
deepikabhavnani did the hard work in tracking this issue down. Block
addresses are not cast to the correct type until after multiplying to
convert to byte addresses. This results in an overflow when the storage
is larger than 4 GB.
2018-01-12 14:44:44 -06:00
deepikabhavnani
c86d757267
Fix: Sector/Size overflow from uint32_t
...
FATFilesystem declares sector count and size as uint32_t and block
device class arguments are addr and size which is uint64_t
While passing arguments to program/read/write API's of block device,
multiplication of uint32_t*uint32_t was not typecasted properly to
uint64_t which resulted in MSB truncation.
Eg. If block 0x800000 is accessed with block size 0x200, addr to be
passed (0x800000*0x200)0x100000000, but actual address passed was 0x0
which resulted in over-writting the root directory, and hence corrupted
filesystem
2018-01-12 11:12:34 -06:00
paul-szczepanek-arm
bbe408e82b
naming fix
2018-01-12 15:55:26 +00:00
paul-szczepanek-arm
5474083469
use direct params not struct for pairing
2018-01-12 15:51:24 +00:00
paul-szczepanek-arm
af4bdc7562
typo
2018-01-12 15:40:15 +00:00
paul-szczepanek-arm
8a01d8fcb0
encryption funcs
2018-01-12 15:32:11 +00:00
paul-szczepanek-arm
b81a2b9fdb
corrected list funcs
2018-01-12 14:55:13 +00:00
paul-szczepanek-arm
749e39b175
missing error messages for paring
2018-01-12 14:50:09 +00:00
paul-szczepanek-arm
ff690ee8d6
removed redundant settings funcstions from pal
2018-01-12 14:17:57 +00:00
paul-szczepanek-arm
ccd1c92bfe
params needs to be ref
2018-01-12 13:37:54 +00:00
paul-szczepanek-arm
ce6f032970
pairing params added
2018-01-12 12:41:43 +00:00
Arto Kinnunen
8151e55838
Merge commit '47341478379429c08c468093e0326b5c79ecbc62'
...
* commit '47341478379429c08c468093e0326b5c79ecbc62':
Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from d0a2597..8689fca
2018-01-12 14:02:31 +02:00
paul-szczepanek-arm
c202076d1e
clear up type confusion, added key funcs to pal
2018-01-12 12:00:34 +00:00
paul-szczepanek-arm
7325ca90fd
make clear which event handler it is, remove pairing result as that's covered by security complete
2018-01-12 11:36:03 +00:00
paul-szczepanek-arm
9a948b73da
minor name and compilation fixes
2018-01-12 11:18:26 +00:00
Seppo Takalo
6bf0611748
Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation.
2018-01-12 12:03:56 +02:00
Christopher Haster
5df2b9b0e7
littlefs: Fixed file truncation without writes
...
In the open call, the LFS_O_TRUNC flag was correctly zeroing the file, but
it wasn't actually writing the change out to disk. This went unnoticed because
in the cases where the truncate was followed by a file write, the
updated contents would be written out correctly.
Marking the file as dirty if the file isn't already truncated fixes the
problem with the least impact. Also added better test cases around
truncating files.
2018-01-11 16:27:33 -06:00
paul-szczepanek-arm
a45237dc51
split interfaces
2018-01-11 18:45:27 +00:00
paul-szczepanek-arm
6655b67dd6
legacy oob and pairing cancel
2018-01-11 18:27:45 +00:00
Cruz Monrreal
dc87f0b1e6
Merge pull request #5313 from pan-/ble-cordio-pal-gap
...
Cordio: Pal Gap implementation
2018-01-11 10:35:42 -06:00
Cruz Monrreal
b32828bc37
Merge pull request #5739 from pan-/nordic-new-client
...
BLE: Nordic pal client implementation
2018-01-11 10:26:47 -06:00
Cruz Monrreal
c0c501c70f
Merge pull request #5768 from deepikabhavnani/storage_stats
...
Added statvfs API to get storage statistics
2018-01-11 10:25:41 -06:00
paul-szczepanek-arm
8a0aba398b
boilerplate
2018-01-11 13:17:47 +00:00
paul-szczepanek-arm
da3ecfc2e4
add keysize set and split up settings
2018-01-11 11:54:21 +00:00
TomoYamanaka
0d00be3a60
Add the function declarations of WEAK attribute to use LWIP on GR-LYCHEE
...
I added the function declarations of Ethernet functions that have a WEAK attribute. Although several Ethernet functions was called in rza1_emac.c, GR-LYCHEE don't have Ethernert feature. But there may be case that GR-LYCHEE uses LWIP feature.
In this case, since GR-LYCHEE will occur the build error, I addressed the error by defining the functions with a WEAK attribute. For reason of WEAK attribute, there is no influence in GR-PEACH and VK_RZ_A1H that have Ethernet feature.
2018-01-11 18:11:37 +09:00
paul-szczepanek-arm
827af85476
fixed call
2018-01-10 18:01:41 +00:00
paul-szczepanek-arm
1e3c1a96ec
fixed deafult event handler init and reset
2018-01-10 15:12:59 +00:00
Vincent Coubard
d33b02818a
BLE: Implement Generic GattClient reset logic.
2018-01-10 14:31:52 +00:00
Vincent Coubard
29988d5265
BLE: Align naming of GattClient procedure control blocks.
2018-01-10 14:18:00 +00:00
Vincent Coubard
3061db271d
BLE: Put generic gattclient procedures inside the GattClient class
2018-01-10 14:15:08 +00:00
Christopher Haster
d82d9888d4
Added COMMON folder for tests
...
A COMMON folder allows code reuse across different test cases. This
avoids code duplication or code enterying the application space.
The COMMON folder is uppercase to match naming conventions in Mbed OS.
2018-01-09 16:11:14 -06:00
paul-szczepanek-arm
67d1148a56
added timeout changed pointers to refs
2018-01-09 16:55:12 +00:00
Steven Cartmell
061795c489
Move in_critical_section implementation into the HAL
...
- Add function to HAL hal_in_critical_section()
- Wrap assert in FEATURE_UVISOR macro
2018-01-09 10:41:29 +00:00
Tero Heinonen
d8b369f5b2
mesh-api documentation removed
...
All documentation is now in Handbook
2018-01-09 12:37:06 +02:00
TomoYamanaka
9cbd678049
Modify the TYPO of debug info when using LWIP in RZ/A1 related
...
I modified the debug message when using LWIP in RZ/A1 related mbed boards.
In eth_arch_enetif_init(), sys_thread_new() was called and task name is appeared as debug information, but task name for debug was a mistake.
2018-01-09 18:30:07 +09:00
TomoYamanaka
285c259472
Performance improvement of LWIP communication in RZ_A1 related
...
For LWIP communication speedup in RZ_A1 related, I changed the below macro value and added the definition processing in RZ/A1 related header file(lwipopts_conf.h). For this reason, those macros are overrode by RZ/A1 related values, not default values.
2018-01-09 18:28:39 +09:00
ccli8
a68750473c
[M487] Support ECP H/W accelerator
2018-01-09 16:20:41 +08:00
TomoYamanaka
2e7d6df775
Commonize RZ_A1 related folders placed in "FEATURE_LWIP" directory
...
In the below "features/FEATURE_LWIP" folders, same as Cortex-M targets, I changed the folder structure to combine files that can be shared as RZ/A1 related. And I renamed the folder name to "TARGET_RZ_A1XX" in order to make commonality explicit.
- "features/FEATURE_LWIP" folder
<before>
\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1H
\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_VK_RZ_A1H
<after>
\features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1XX
2018-01-09 16:48:39 +09:00
Jimmy Brisson
086ccd5536
Merge pull request #5782 from geky/littlefs-fix-seek-cur
...
littlefs: Fix positive seek bounds checking
2018-01-08 10:38:00 -06:00
Jimmy Brisson
cef1cc26d8
Merge pull request #5651 from gorazdko/ff_lpc546xx-add-ethernet
...
ff_lpc546xx: add enet, change led1 and led3 pins
2018-01-08 10:35:56 -06:00
Jimmy Brisson
737f75a68f
Merge pull request #5608 from productize/nucleo-f413zh
...
NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
2018-01-08 10:35:27 -06:00
Vincent Coubard
c5bc247217
Nordic BLE: Use SD API version rather than SDK define.
2018-01-08 14:00:23 +00:00
Vincent Coubard
e9ba84168b
Nordic BLE: Fix PalGattClient for SDK v13.
2018-01-08 13:52:42 +00:00
paul-szczepanek-arm
b1f73b4a5c
file rename to match class name
2018-01-08 12:12:47 +00:00
Vincent Coubard
e8bad03a1c
Nordic BLE: Simplification and clarification of pal client implementation.
2018-01-08 12:04:02 +00:00
Vincent Coubard
331e8f2aed
BLE: Fix include dependency in UUID.h.
2018-01-08 12:01:30 +00:00
paul-szczepanek-arm
580bfdfcb2
authorisation for pairing
2018-01-08 11:40:27 +00:00
paul-szczepanek-arm
0dcb9efb3e
add missing pal funcs, deprecate misnamed get link security
2018-01-08 11:28:48 +00:00
paul-szczepanek-arm
a268b6b831
decided to keep auth and sec mode and ditch ssp
2018-01-08 10:44:32 +00:00
paul-szczepanek-arm
2a05581177
no auth needed, security status for att
2018-01-07 23:18:14 +00:00
paul-szczepanek-arm
9863d71f44
requesting pair, force sc option
2018-01-07 22:22:55 +00:00
paul-szczepanek-arm
e1676dc1cc
added MITM to user facing security manager api
2018-01-05 17:32:49 +00:00
Steven Cartmell
e14bee5209
Fix potential race condition in critical section HAL API
...
Call underlying HAL implementation to enter critical section/disable interrupts
before incrementing the global critical section counter.
Modify HAL implementations to track first entrances to the critical section and
only update the saved state on first enter.
2018-01-05 14:55:58 +00:00
Steven Cartmell
3c9ae7bf1c
NRF51_DK: Add Critical Section HAL implementation
2018-01-05 14:55:57 +00:00
ccli8
67386b9ebd
[NUC472/M487] Fix DMA input/output buffers are overlapped in AES alter.
2018-01-05 09:18:26 +08:00
ccli8
4023078e14
[NUC472/M487] Remove unnecessary H/W context clone functions in SHA alter.
2018-01-05 09:18:26 +08:00
ccli8
acff29e6f2
[NUC472/M487] Fix context clone corner case in SHA alter.
...
As destination/source contexts are the same, we return immediately.
2018-01-05 09:18:25 +08:00
ccli8
d96bcda606
[NUC472/M487] Fix indefinite loop in SHA alter.
2018-01-05 09:18:25 +08:00
ccli8
8b7ff095a9
[NUC472/M487] Remove duplicate configuration of CRPT->SHA_CTL/CRPT->HMAC_CTL in SHA alter.
2018-01-05 09:18:25 +08:00
ccli8
3a8c1aa687
[NUC472/M487] Use interrupt signal rather than polling to check operation completion in DES alter.
...
This is to be consistent with PRNG/AES.
2018-01-05 09:18:24 +08:00
ccli8
0c1098483f
[NUC472/M487] Refine flow control code between crypto start and crypto ISR
2018-01-05 09:18:24 +08:00
ccli8
add839c808
[NUC472/M487] Refine code in SHA alter.
2018-01-05 09:18:24 +08:00
ccli8
b443a23b07
[NUC472/M487] Add memory barrier for DMA transfer in AES/DES alter.
2018-01-05 09:18:23 +08:00
ccli8
c906790257
[NUC472/M487] Call BSP driver rather than direct register access in DES alter.
2018-01-05 09:18:23 +08:00
ccli8
dc3c84c011
[NUC472/M487] Fix parameter check for TMODE/OPMODE in DES alter.
2018-01-05 09:18:23 +08:00
ccli8
815a6a7c4d
[NUC472/M487] Add parameter check for configuring DES registers in DES alter.
2018-01-05 09:18:23 +08:00
ccli8
1d62b9120b
[NUC472/M487] Refine comment with BSP driver use in DES alter.
2018-01-05 09:18:22 +08:00
ccli8
479cf687ff
[NUC472/M487] Fix multiple calls to SHA free in SHA alter.
2018-01-05 09:18:22 +08:00
ccli8
7d92550d11
[NUC472/M487] Remove superfluous code in AES alter.
2018-01-05 09:18:22 +08:00
ccli8
116b14aa84
[NUC472/M487] Refine code with SHA context selection in SHA alter.
2018-01-05 09:18:22 +08:00
ccli8
980cb6b9c8
[NUC472/M487] Guard against SHA internal state size is not word-aligned in SHA alter.
2018-01-05 09:18:21 +08:00
ccli8
8ba07815ed
[NUC472/M487] Fix SHA H/W resource leakage in context cloning
2018-01-05 09:18:21 +08:00
ccli8
83fb50cca3
[NUC472/M487] Fix SHA H/W is not stopped in corner case
...
Take SHA1 for example, without the fix, SHA H/W is not stopped in either case:
(1) ctx->total == 0 in mbedtls_sha1_hw_finish()
(2) mbedtls_sha1_hw_finish() is not called by upper layer
2018-01-05 09:18:21 +08:00
ccli8
a0a8a955a9
[NUC472/M487] Strengthen crypto DMA buffer check
...
1. Catch incompatible buffer range, where buffer base = 0xffffff00 and buffer size = 0x100.
2. Add buffer size alignment check.
2018-01-05 09:18:21 +08:00
ccli8
ac000244f4
[NUC472/M487] Refine AES/DES alter. DMA buffer requirement comment
2018-01-05 09:18:20 +08:00
ccli8
aafbdc8d38
[NUC472/M487] Fix compile error with disabled crypto
...
For example, even though MBEDTLS_SHA512_C is disabled (via #undef MBEDTLS_SHA512_C),
mbedtls_sha512_context is still necessary due to referenced in sha512.h.
2018-01-05 09:18:20 +08:00
ccli8
b0228d020d
[NUC472/M487] Fix compile error as mbedtls is not included
...
Currently, trng_api.c is located in targets/ and AES/DES/SHA alter. are located in mbedtls/.
They have shared crypto code.
If they could locate at same location e.g. mbedtls/, the shared crypto code placement would be more reasonable.
2018-01-05 09:18:20 +08:00
ccli8
ba16fd9617
[NUC472/M487] Refine AES alter. key endianness code
2018-01-05 09:18:20 +08:00
ccli8
6464649c41
[NUC472/M487] Coordinate crypto interrupt handler among AES/PRNG
2018-01-05 09:18:20 +08:00
ccli8
0c2d59d327
[NUC472/M487] Refine AES/DES alter. code
2018-01-05 09:18:19 +08:00
ccli8
289bbf0ec7
[NUC472/M487] Fix AES alter. CFB128 error
2018-01-05 09:18:19 +08:00
ccli8
7076675fec
[NUC472/M487] Optimize AES alter. code
2018-01-05 09:18:19 +08:00
ccli8
6cc3aa3e54
[NUC472/M487] Guard from re-entry into crypto H/W
2018-01-05 09:18:19 +08:00
ccli8
d66074fecc
[NUC472/M487] Coordinate crypto init among AES/DES/SHA/PRNG
...
Add counter to track crypto init among crypto sub-modules. It includes:
1. Enable crypto clock
2. Enable crypto interrupt
As counter gets zero, crypto clock is disabled to save power.
2018-01-05 09:18:18 +08:00
ccli8
b0eededdaf
[NUC472/M487] Fix DES alter. DMA buffer could locate at unsupported region
2018-01-05 09:18:18 +08:00
ccli8
f85875c7b6
[NUC472/M487] Fix AES alter. DMA buffer could locate at unsupported region
2018-01-05 09:18:18 +08:00
ccli8
70e9a90957
[NUC472/M487] Refine AES alter. input/output data endianness
2018-01-05 09:18:18 +08:00
ccli8
a1e202518f
[NUC472/M487] Fix AES alter. DMA buffer check
2018-01-05 09:18:18 +08:00
ccli8
20aa516e79
[NUC472/M487] Refine config check code
2018-01-05 09:18:17 +08:00
ccli8
126aa565c7
[NUC472/M487] Remove redundant S/W DES code
...
This S/W DES code was to test DES H/W port before.
2018-01-05 09:18:17 +08:00
ccli8
2e7f07e264
[NUC472/M487] Refine DES alter. code
2018-01-05 09:18:17 +08:00
ccli8
b2b67af189
[NUC472/M487] Add comment for DES alter. context
2018-01-05 09:18:17 +08:00
ccli8
ed57432c95
[NUC472/M487] Add comment for AES alter. context
2018-01-05 09:18:17 +08:00
ccli8
9e5837fd77
[NUC472/M487] Refine AES alter. code with IV endianness
2018-01-05 09:18:16 +08:00
ccli8
087186aba7
[NUC472/M487] Rework AES alter. CFB128
...
1. Fix bug on non-block aligned data size
2. More concise
2018-01-05 09:18:16 +08:00
ccli8
93f6ef996f
[NUC472/M487] Refine AES alter. DMA buffer code
2018-01-05 09:18:16 +08:00
ccli8
f24ca8c857
[NUC472/M487] Refine AES alter. code
2018-01-05 09:18:16 +08:00
ccli8
82bd285e51
[NUC472/M487] Support multiple contexts in AES alter. with context save & restore
2018-01-05 09:18:15 +08:00
ccli8
0d25a9c421
[NUC472/M487] Fix AES DMA buffer cannot locate at ROM region
2018-01-05 09:18:15 +08:00
ccli8
2dcc1e9e27
[NUC472/M487] Remove AES alter. dead code
2018-01-05 09:18:15 +08:00
ccli8
5665247d4a
[NUC472/M487] Fix AES alternative function not thread-safe
2018-01-05 09:18:14 +08:00
ccli8
315b684bd9
[NUC472] Refine coding style
2018-01-05 09:18:14 +08:00
ccli8
0c5b860409
[M487] Refine coding style
2018-01-05 09:18:14 +08:00
ccli8
19e9dbf799
[NUC472] Fix DES alternative function not thread-safe
2018-01-05 09:18:13 +08:00
ccli8
61d9e69be4
[NUC472] Remove unnecessary MBEDTLS_CONFIG_FILE check from AES/DES/SHA alternative
...
1. aes.h/des.h/sha1.h/sha256.h/sha512.h includes config.h before aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h.
2. aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h should not be included in any other location.
3. Just include aes.h/des.h/sha1.h/sha256.h/sha512.h in aes_alt.c/des_alt.c/sha1_alt.c/sha256_alt.c/sha512_alt.c.
2018-01-05 09:18:13 +08:00
ccli8
6b0213c13d
[NUC472] Remove other unnecessary AES alternative macro definitions
...
As MBEDTLS_AES_ALT is defined, alternative implementations for all AES functions should be defined.
2018-01-05 09:18:13 +08:00
ccli8
925eee0688
[NUC472] Remove debug code in AES alternative
2018-01-05 09:18:13 +08:00
ccli8
530b8dfdb9
[M487] Fix DES alternative function not thread-safe
2018-01-05 09:18:13 +08:00
ccli8
436ecdbd60
[M487] Remove unnecessary MBEDTLS_CONFIG_FILE check from AES/DES/SHA alternative
...
1. aes.h/des.h/sha1.h/sha256.h/sha512.h includes config.h before aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h.
2. aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h should not be included in any other location.
3. Just include aes.h/des.h/sha1.h/sha256.h/sha512.h in aes_alt.c/des_alt.c/sha1_alt.c/sha256_alt.c/sha512_alt.c.
2018-01-05 09:18:12 +08:00
ccli8
8f7df9ab41
[M487] Remove other unnecessary AES alternative macro definitions
...
As MBEDTLS_AES_ALT is defined, alternative implementations for all AES functions should be defined.
2018-01-05 09:18:12 +08:00
ccli8
fbf7d40778
[M487] Remove debug code in AES alternative
2018-01-05 09:18:12 +08:00
Jimmy Brisson
af9e07357a
Merge pull request #5740 from ashok-rao/master
...
Adding MTB ublox ODIN W2 as a new target.
2018-01-04 10:05:02 -06:00
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
paul-szczepanek-arm
e75042e3e4
handle legacy callbacks
...
this way you can have both old porting code and new app code and new porting code and old app code and they both work
2018-01-04 15:08:40 +00: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
paul-szczepanek-arm
69b248ae68
generic security manager using the pal
2018-01-03 18:04:22 +00:00
paul-szczepanek-arm
eee2ddf709
class interface to avoid multiplying boilerplate code for the callbacks
2018-01-03 15:03:13 +00:00
paul-szczepanek-arm
6f7da0ce1d
mitm callbacks
2018-01-02 17:54:22 +00: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
paul-szczepanek-arm
ed405e1849
moving cbs to evt block
2017-12-22 16:41:45 +00:00
paul-szczepanek-arm
6fd1859881
draft pal
2017-12-22 16:37:28 +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
Martin Kojtal
5bddd881e9
Merge pull request #4406 from kjbracey-arm/shared_equeues
...
mbed_events.h: Add ability to request a shared event queue
2017-09-04 16:55:50 +01:00
Martin Kojtal
abafc6e7df
Merge pull request #4580 from deepikabhavnani/wifi_34
...
Use EventFlags instead of Semaphores
2017-09-04 16:54:55 +01:00
Martin Kojtal
18f79bfad7
Merge pull request #4907 from Patater/m487
...
Update uVisor to v0.30.0
2017-09-04 16:53:14 +01:00
Martin Kojtal
c0fe3b5109
Merge pull request #4911 from mikaleppanen/lwip_ipv4v6_ppp
...
Support cellular IPv4v6 dual stack in LWIP
2017-09-04 16:52:55 +01:00
Martin Kojtal
3f347ed290
Merge pull request #4843 from geky/fat-min-block
...
fatfs: Add lower bound to block sizes
2017-09-04 16:52:05 +01:00
Martin Kojtal
0fec52de94
Merge pull request #5001 from anttiylitokola/master
...
Update mbed-coap to version 4.0.10
2017-09-04 16:47:10 +01:00
Martin Kojtal
fc4afabab3
Merge pull request #4934 from Patater/stm32f439xi-aes-hw-disable
...
mbedtls: STM32F439xI: Don't enable AES acceleration by default
2017-09-04 16:46:24 +01:00
Kevin Bracey
b55af5c620
Use shared event queue for timer
...
Don't create our own timer thread - use the shared event queue.
2017-09-01 13:26:09 +03:00
Antti Yli-Tokola
e7c8a4d71f
Update mbed-coap to version 4.0.10
...
Fixes following error: IOTMAC-615 Node mDS registration failure during OTA transfer
2017-08-31 17:02:40 +03:00
Kevin Bracey
65639e80fc
Reduce K64F Ethernet driver to 1 thread
...
Save 1K of RAM by using only 1 thread for RX and TX, and
running the PHY check in lwIP's context.
2017-08-31 13:05:28 +03:00
Kevin Bracey
5a7405e1a3
Correct LWIP_DEBUG definition
...
Commit f602c936 incorrectly started defining LWIP_DEBUG as either 0 or
1.
lwipopts.h locally was changed to use #if, but all existing users
continued to use #ifdef. Therefore defining it to 0 was accidentally
enabling it for quite a few users.
This would have pulled in some unwanted lwIP code, and affected some
drivers, eg k64f_emac.c allocating an extra 2K of stack.
Correct lwipopts.h to either define it as 1 or leave it undefined, and
change the #if tests back to #ifdef, so all are consistent.
2017-08-31 11:51:10 +03:00
0x6d61726b
4434569719
Build with external tool fails: missing includes
...
When building with VisualGDB the compilation fails due to the lack of required include files Dir.h and File.h.
Compiler report:
1>------ Build started: Project: exported-mbed-STM32F429-nucleo, Configuration: Debug VisualGDB ------
1> FileSystem.cpp
1> mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'class Managed<mbed::File>':
1> mbed-os\features\filesystem\FileSystem.cpp(141,19): note : required from here
1>mbed-os\features\filesystem\FileSystem.cpp(130,7): error : invalid use of incomplete type 'class mbed::File'
1> class Managed : public F {
1> ^~~~~~~
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(39,7): note : forward declaration of 'class mbed::File'
1> class File;
1> ^~~~
1> mbed-os/features/filesystem/FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::FileHandle**, const char*, int)':
1>mbed-os\features\filesystem\FileSystem.cpp(141,19): error : cannot convert 'Managed<mbed::File>*' to 'mbed::File*' in initialization
1> File *f = new Managed<File>;
1> ^~~~~~~~~~~~~
1>mbed-os\features\filesystem\FileSystem.cpp(142,16): error : invalid use of incomplete type 'class mbed::File'
1> int err = f->open(this, path, flags);
1> ^~
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(39,7): note : forward declaration of 'class mbed::File'
1> class File;
1> ^~~~
1>mbed-os\features\filesystem\FileSystem.cpp(144,16): warning : possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
1> delete f;
1> ^
1>mbed-os\features\filesystem\FileSystem.cpp(141,11): warning : 'f' has incomplete type
1> File *f = new Managed<File>;
1> ^
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(39,7): note : forward declaration of 'class mbed::File'
1> class File;
1> ^~~~
1> mbed-os\features\filesystem\FileSystem.cpp(144,16): note : neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
1> delete f;
1> ^
1>mbed-os\features\filesystem\FileSystem.cpp(148,13): error : cannot convert 'mbed::File*' to 'mbed::FileHandle*' in assignment
1> *file = f;
1> ^
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(39,7): note : class type 'mbed::File' is incomplete
1> class File;
1> ^~~~
1> mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'class Managed<mbed::Dir>':
1> mbed-os\features\filesystem\FileSystem.cpp(153,18): note : required from here
1>mbed-os\features\filesystem\FileSystem.cpp(130,7): error : invalid use of incomplete type 'class mbed::Dir'
1> class Managed : public F {
1> ^~~~~~~
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(38,7): note : forward declaration of 'class mbed::Dir'
1> class Dir;
1> ^~~
1> mbed-os/features/filesystem/FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::DirHandle**, const char*)':
1>mbed-os\features\filesystem\FileSystem.cpp(153,18): error : cannot convert 'Managed<mbed::Dir>*' to 'mbed::Dir*' in initialization
1> Dir *d = new Managed<Dir>;
1> ^~~~~~~~~~~~
1>mbed-os\features\filesystem\FileSystem.cpp(154,16): error : invalid use of incomplete type 'class mbed::Dir'
1> int err = d->open(this, path);
1> ^~
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(38,7): note : forward declaration of 'class mbed::Dir'
1> class Dir;
1> ^~~
1>mbed-os\features\filesystem\FileSystem.cpp(156,16): warning : possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
1> delete d;
1> ^
1>mbed-os\features\filesystem\FileSystem.cpp(153,10): warning : 'd' has incomplete type
1> Dir *d = new Managed<Dir>;
1> ^
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(38,7): note : forward declaration of 'class mbed::Dir'
1> class Dir;
1> ^~~
1> mbed-os\features\filesystem\FileSystem.cpp(156,16): note : neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
1> delete d;
1> ^
1>mbed-os\features\filesystem\FileSystem.cpp(160,12): error : cannot convert 'mbed::Dir*' to 'mbed::DirHandle*' in assignment
1> *dir = d;
1> ^
1> mbed-os\features\filesystem\FileSystem.cpp(18):
1> mbed-os\features\filesystem\FileSystem.h(38,7): note : class type 'mbed::Dir' is incomplete
1> class Dir;
1> ^~~
1> mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'int Managed<F>::close() [with F = mbed::Dir]':
1> mbed-os\features\filesystem\FileSystem.cpp(162,1): note : required from here
1>mbed-os\features\filesystem\FileSystem.cpp(133,27): error : incomplete type 'mbed::Dir' used in nested name specifier
1> int err = F::close();
1> ~~~~~~~~^~
1> mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'int Managed<F>::close() [with F = mbed::File]':
1> mbed-os\features\filesystem\FileSystem.cpp(162,1): note : required from here
1>mbed-os\features\filesystem\FileSystem.cpp(133,27): error : incomplete type 'mbed::File' used in nested name specifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
2017-08-30 17:21:53 +02:00
Akos Kiss
90b326a664
Fix BLE API docs
...
Some misguidances, some typos, some stylistics, some doxygen misuses.
2017-08-30 11:15:39 +02:00
Deepika
beb5aac640
RTOS: Add EventFlags class
...
EventFlags class is a wrapper for Event Flag functionality introduced in
RTOS2/RTX5.
2017-08-29 14:07:44 -05:00
Jimmy Brisson
4978a08ae2
Merge pull request #4960 from artokin/master
...
Nanostack update for mbed-os-5.6
2017-08-29 13:46:47 -05:00
Jimmy Brisson
318e92c028
Merge pull request #4950 from OpenNuvoton/nuvoton_usb
...
M487: Support USB device/host
2017-08-29 13:45:55 -05:00