Philipp Steiner
66ce92aa1b
Solve bug: Low frequency clock will now selected by given "lf_clock_src" setting.
2019-07-11 11:40:54 +01:00
Sebastian Stockhammer
5f0b6dac3d
Fix astyle
2019-07-11 11:40:54 +01:00
Sebastian Stockhammer
b0997ad7a9
Allow IPV4V6 stack type
2019-07-11 11:40:54 +01:00
Sebastian Stockhammer
55243ae027
Require exact context type match
2019-07-11 11:40:54 +01:00
Paul Thompson
a6b90e30dd
Make the sys_arch_protect() mutex be recursive.
...
Fixes #9744
Appears to be a lwIP porting bug. Comments in our porting layer say:
This function should support recursive calls from the same task or interrupt. In other words, sys_arch_protect() could be called while already protected.
2019-07-11 11:40:54 +01:00
Kimmo Vaisanen
7a5f1984ee
Fix netconn_recv_tcp_pbuf ARMC6 linker error
...
If "lwip.tcp-enabled" is set to false, ARMC6 compilation fails to error
Error: L6218E: Undefined symbol netconn_recv_tcp_pbuf
LWIP::socket_recv() is TCP socket specific method so implementation can be
enabled only when LWIP_TCP flag is set.
2019-07-11 11:40:54 +01:00
Kimmo Vaisanen
cf7911d4d6
Increase dns-response-wait-time
...
In some cellular networks or with some modems, DNS response can take longer than 5 seconds to arrive.
2019-07-11 11:40:54 +01:00
mudassar-ublox
0e6e1a6309
cellular socket flags updated
2019-07-11 11:40:54 +01:00
Antti Yli-Tokola
1eb799e4fa
TLSSocket: print certificate info only when tracing is enabled
...
Flagging these functions out will reduce flash size more than 3k.
2019-07-11 11:40:53 +01:00
Jaeden Amero
5b47bb030a
crypto: Enable use on non-PSA targets
...
Move PSA Crypto implementation files outside of a TARGET_PSA folder,
enabling use of PSA Crypto APIs on more Mbed OS targets.
2019-07-11 11:40:53 +01:00
Tymoteusz Bloch
be4d40b1b3
Fixed LWIPStack socket_sendto member to fail if interface IP4/6 version differ from destination adress IP version
2019-07-11 11:40:53 +01:00
Laurent Meunier
f1601b0ad7
Check Properties have been set
2019-07-11 11:40:53 +01:00
Martin Kojtal
74d2b8e5b9
cellular: fix file permission
2019-07-11 11:40:53 +01:00
jeromecoutant
4b751b3245
Wrong timeout value in greentea tests
2019-07-11 11:40:53 +01:00
Mirela Chirica
227013f7cc
Cellular: Added handling for BG96 network PDP context deactivation
2019-07-11 11:40:53 +01:00
Kimmo Vaisanen
8a86811f1a
Cellular: Fix PLMN debug trace for IAR
...
IAR does not allow printing from null pointer as parameter for %s. PLMN string
can be null depending on user configuration.
2019-07-11 11:40:53 +01:00
Teppo Järvelin
050af7c49c
Cellular: fix athandler to use correct timeout in case of multiple urc's
...
Start time was not updated when multiple urc's were found and so timeout
was set to zero. Now that start time is updated, timeout is correct.
2019-07-11 11:40:53 +01:00
mudassar-ublox
6acf1d70cc
Style issue fixed
2019-07-11 11:40:53 +01:00
mudassar-ublox
1e29490dba
socket close callback
2019-07-11 11:40:52 +01:00
Kevin Bracey
15b103e5e5
NSAPI/lwIP: Use netconn_recv_tcp_pbuf
...
Slight RAM+speed efficiency improvement - read the TCP implementation's
native pbufs, rather than forcing netconn_recv to generate netbuf
wrappers for us. Saves one small lwIP heap allocation per TCP packet
received.
2019-07-11 11:40:52 +01:00
Chris Trowbridge
2679f2b6fc
Moved DEFAULT_DELAY_BETWEEN_AT_COMMANDS constant to cpp file
2019-07-11 11:40:52 +01:00
Chris Trowbridge
8329fc1d52
Remove unnecessary init AT commands
2019-07-11 11:40:52 +01:00
Chris Trowbridge
a214a3cb59
Modify ME910 driver to follow power on/off best practices and add custom get_context() function
2019-07-11 11:40:52 +01:00
Chris Trowbridge
cbea74820e
Add default soft/hard power on/off sequences for ME910
2019-07-11 11:40:52 +01:00
Chris Trowbridge
761ab4dd75
Remove ME910 trace group #define
2019-07-11 11:40:52 +01:00
Chris Trowbridge
19997f6013
Remove ME910 flow control debug message
2019-07-11 11:40:52 +01:00
Chris Trowbridge
1b28301f11
Remove unnecessary #includes
2019-07-11 11:40:52 +01:00
Chris Trowbridge
808d0c3a8e
Remove default power on/off functions
2019-07-11 11:40:52 +01:00
Chris Trowbridge
179a4163d7
Add Telit ME910 driver
2019-07-11 11:40:52 +01:00
Tymoteusz Bloch
94a900814e
LWIP DNS servers setting/getting fixed.
2019-07-11 11:40:51 +01:00
Lingkai Dong
37f6c89990
Workaround for legacy GAP advertising issue on Cordio LL
...
Due to some issue in Cordio link layer, advertising data does not
take effect unless we set it (or set it again) after advertising
parameters are set.
2019-07-11 11:40:51 +01:00
Lingkai Dong
28770391b7
Set extended advertising parameters upon first use of API v2
...
Previously, extended advertising parameters failed to be set
during BLE initialisation when the stack was not ready.
To work around this, we delay it to the first use of
useVersionTwoAPI.
2019-07-11 11:40:51 +01:00
Martin Kojtal
c1e97ec688
unsupported USBHAL: fix coding style
2019-07-11 11:39:48 +01:00
Tomasz Moń
59c6af569d
STM USBHALHost: Fix NULL pointer dereference
...
On STM32F746G Discovery boards, the USB OTG HS port does not have a
dedicated GPIO for controlling the USB VBUS.
This change fixes HardFault (NULL pointer dereference) that triggered
when such USB host port was used.
2019-07-11 11:39:48 +01:00
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
paul-szczepanek-arm
8ddaf84516
use pal version of load bd address
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
f13e966dc0
translate hci types
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
ccddf32f85
cleanup json
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
2232fd045b
handle all types
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
d1593fecc1
move nordic ll to target nordic
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
d09f66b4c5
move config to nordic ll
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
900ad78728
add doxygen
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
11abc6704f
cordio LL adaptation and config
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
1e8010dd81
cordi link layer 19.02 sources added
2019-05-27 06:16:49 +01:00
Kevin Bracey
5f8b966ff6
NRF52: C++11 fixes
2019-05-24 16:26:15 +03:00
Martin Kojtal
a434583b6e
Merge pull request #10442 from trowbridgec/patch-1
...
Cellular: Make AT_CellularContext::get_context() virtual
2019-05-24 12:38:35 +01:00
Martin Kojtal
ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
...
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Martin Kojtal
c4cc9c4f1b
Merge pull request #10646 from LDong-Arm/connectionCount
...
Fix deprecation notice for ble::Gap::getState()
2019-05-24 09:11:58 +01:00
Martin Kojtal
4567626ade
Merge pull request #10636 from u-blox/activation_status
...
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal
86bd7f05f0
Merge pull request #10634 from LDong-Arm/ble-api-update
...
BLE: fix deprecated API calls in battery and thermometer services
2019-05-23 21:37:19 +01:00
Lingkai Dong
c84a13c0f2
Fix deprecation notice for ble::Gap::getState()
...
The deprecation notice suggests getConnectionCount() which
did not land in the final API. The proper replacement is keeping
your own record and updating during connection and disconnection
callbacks.
2019-05-23 16:36:28 +01:00