Commit Graph

5541 Commits (b8c4cb46fd3b13f3ec9b51c1b206b3dd23fa5436)

Author SHA1 Message Date
Tomasz Moń 2b76a05a10 USBHostMSD: Implement BlockDevice get_type()
This makes it possible to create instances of USBHostMSD class.
2019-07-11 11:39:48 +01:00
Ari Parkkila c3119da987 Cellular: Fix socket connect on UBLOX_AT driver 2019-07-11 11:39:48 +01:00
Tymoteusz Bloch 6687f41177 Fixed LWIP warning issues found by Coverity scan 2019-07-11 11:39:48 +01:00
Ari Parkkila 390d7cc9f3 Cellular: Add BG96 power control 2019-07-11 11:39:48 +01:00
Pekka Pesu 97e9aed430 add BG96 povermanagemet 2019-07-11 11:39:48 +01:00
Pekka Pesu aff9b52a22 BG96 power handling added 2019-07-11 11:39:48 +01:00
Tomasz Moń 394036664c USBHost: Wait for device to implement SET ADDRESS
The USB Device must change the address within 2 ms after completing
SET ADDRESS status stage.

Wait 2 ms before issuing GET DESCRIPTOR under the new address. In my
case, this completely resolves the timeout issues.
2019-07-11 11:39:48 +01:00
Teppo Järvelin c87a7798a9 Cellular: AT_CellularContext disconnect in non-blocking mode
Disconnect was supporting only blocking mode.
2019-07-11 11:39:48 +01:00
Mirela Chirica 1533d2466b Cellular: Remove IPV6 and IPV4V6 as supported properties for BG96
IPV6 and IPV6V4 support is also network dependent not only modem.

Having these properties enabled for a modem requires a fallback
mechanism during PDP context activation. This mechanism is missing
at the moment and that can result in imposibility to establish
succesfull connection when network only supports IPV4 contexts.
2019-06-24 15:15:19 +01:00
Mirela Chirica bfbf3a728b Cellular: Fix requested socket id in socket_connect routines of BG96 and M26 2019-06-24 15:15:19 +01:00
Mirela Chirica 04d8c704ef Cellular: Added IPV6 and IPV4V6 as supported properties for BG96 2019-06-24 15:15:19 +01:00
Jaeden Amero 23d66c1c25 mbedtls: PSA entropy is compatible with other entropy
When using Mbed Crypto's PSA Entropy Injection feature on Mbed OS, it is
not required to opt out of having entropy sources added to your entropy
contexts by default (via MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES).

As integrated in Mbed OS, MBEDTLS_PSA_INJECT_ENTROPY is compatible with
actual entropy sources. PSA entropy injection is implemented using the
standard Mbed TLS NV Seed feature, and is as compatible with other
entropy sources as the standard Mbed TLS NV Seed feature which does
support entropy mixing.
2019-06-12 16:15:57 +01:00
Jaeden Amero c0b4343f26 mbedtls: Update to Mbed TLS 2.18.0-rc3 2019-06-12 16:15:57 +01:00
Jaeden Amero 0689c589fc mbedtls: Update to Mbed Crypto 1.1.0d2 2019-06-12 16:15:57 +01:00
Kevin Bracey 1b124e03ca ns_list: avoid UINT_FAST8_MAX
Prevent compilation issues when someone has included <stdint.h> before
a header file that needs to include <ns_list.h>.

Some toolchains like ARM C 5 will not provide UINT_FAST8_MAX in C++
unless __STDC_LIMIT_MACROS is defined, and if this was not defined the
first time <stdint.h> was included, it's too late.

We can get the maximum value for our unsigned list offset by casting -1
to it, thanks to modulo arithmetic.
2019-06-12 16:15:57 +01:00
Kevin Bracey 3a2bd249c6 Fix ARMC5 compilation
Minor tweaks to fix ARM C 5 compatibility.

Pushing "ns_list.h" include to first makes sure "ns_types.h" is included
first, meaning it gets to define `__STDC_LIMIT_MACROS` before the first
include of <stdint.h>, which ensures that UINT8_MAX etc are defined.
2019-06-12 16:15:57 +01:00
paul-szczepanek-arm 3b66065a10 exculde test 2019-06-12 16:15:57 +01:00
Lingkai Dong 0607340748 NORDIC_CORDIC pal_crypto: check if cryptocell310 is enabled
The config "cryptocell310-acceleration" is set by MCU_NRF52840
but individual targets may have crytocell310 feature disabled.
2019-06-12 16:15:57 +01:00
Jaeden Amero 465944b396 mbed-crypto: Update to Mbed Crypto 1.1.0d1 2019-06-12 16:15:57 +01:00
Vincent Coubard 452c60bea7 Cordio: Fix default COC parameters.
The stack doesn't cope with zero COC client or channel on IAR.
2019-06-05 13:08:10 +01:00
Vincent Coubard 2e8d123d2d BLE - tune Cordio LL default parameters to reduce the memory required. 2019-06-05 13:08:10 +01:00
Vincent Coubard 79c0d3af80 BLE - Fix Cordio LL extended advertising size. 2019-06-05 13:08:10 +01:00
Vincent Coubard 8cd222c5db BLE - Set rx ACL buffer size to the minimum viable in cordio conf. 2019-06-05 13:08:10 +01:00
Vincent Coubard f0ad9b32c1 Disable l2cap connection oriented channels in Cordio default conf. 2019-06-05 13:08:10 +01:00
Jaeden Amero fa80293193 mbed-crypto: Automatically enable entropy injection
Automatically enable entropy injection when the NV Seed feature is
requested on PSA targets. Add a warning note describing the state of the
current implementation of the entropy injection API.

Fixes #10720
2019-06-05 13:08:10 +01:00
Martin Kojtal 9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
Martin Kojtal cc491812a8
Merge pull request #10427 from kjbracey-arm/new_standards
Set compilers to C++14 and C11
2019-05-28 20:34:00 +01:00
Martin Kojtal 8fc2a3c92a
Merge pull request #10675 from 0xc0170/update-mbedtls-2.18.0-rc1
Update mbedtls 2.18.0 rc1
2019-05-28 20:24:18 +01:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
k-stachowiak 948d4379d8 Update Mbed TLS feature to 2.18.0-rc2 2019-05-28 11:00:16 +01:00
Martin Kojtal 19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
paul-szczepanek-arm 9bf2d0ae55 cryptocell acceleration as an option 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 4d236665a2 ifdef 52840 crypto 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 41e02279d3 config fixed for LL hci 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm c050faf268 fix typo 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 16bb7e5f04 fix merge conflixt 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm c9f8ca46ff config now applies to MCU_840 instead of only DK 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm ac66a0040c moved config to target nordic 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 0d1ca866ea license updated 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 6b705c881f remove usage of gpio and leds from nordic cordio LL as it interferes with normal function 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm e43aa12a5d removed stray comma 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 1bbadde9c0 configs in mbed json 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm a6f639ba27 zero copy HCI as a config option 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 87f5e1f057 review comments addressed 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 7894a9321d fix releaseing the WSF msg too early 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 88d000e18e update LL runtime config to new version 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 00bd959abe use TIMER2 instead 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 5025022ab8 handle extended reset 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 96040be349 wsf buffer transfers owenrship to controller 2019-05-27 06:16:49 +01:00
paul-szczepanek-arm 0de3510d1c service immediately after sending 2019-05-27 06:16:49 +01:00