Teppo Järvelin
0f889c3764
fixed ssl hostname handling
2020-03-31 14:21:44 +03:00
Teppo Järvelin
17e513891b
Added new global rng, needed for MbedTLS optimisations
2020-03-31 14:21:44 +03:00
Teppo Järvelin
793837cafe
Prepare for upcoming MbedTLS changes
2020-03-31 14:21:44 +03:00
jeromecoutant
dfeeb821dc
STM32 EMAC : increase thread-stacksize
2020-03-31 11:41:51 +02:00
jeromecoutant
4b9a7fa86a
STM32F4 V1.19.0 -> V1.25.0 : MBEDTLS adaptation
2020-03-31 11:04:57 +02:00
Martin Kojtal
8b929726e1
Merge pull request #12609 from rajkan01/semwait_remove_deprecation
...
Remove Semaphore deprecated APIs
2020-03-31 10:36:43 +02:00
Martin Kojtal
6cdb44ea38
Merge pull request #12682 from jeromecoutant/PR_TRACELEVEL
...
MBED TRACE default level is INFO
2020-03-31 09:28:11 +02:00
Martin Kojtal
5d07fa8ada
Merge pull request #12705 from hugueskamba/hk_remove_armc5_support_mbed-client
...
mbed-client-cli: Remove support for ARM Compiler 5
2020-03-31 08:34:33 +02:00
Martin Kojtal
fea7c1abef
Merge pull request #12472 from praveenCY/pr/wpa3_support_merge
...
Add WPA3 support in mbed-os for green tea tests
2020-03-31 08:32:27 +02:00
Martin Kojtal
4c6e59d714
Merge pull request #11629 from kyle-cypress/pr/tdb-bounds-refactor
...
Refactor TDB internal bounds computation
2020-03-30 09:39:15 +02:00
RyoheiHagimoto
7794221c69
[RZ_A1H] remove usage of ethernet hal API
2020-03-30 14:54:35 +09:00
Anna Bridge
009ff7adf3
Merge pull request #12036 from kjbracey-arm/callback_fiddle
...
Callback extension and optimisation
2020-03-27 14:07:20 +00:00
Anna Bridge
2736896fb9
Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests
...
Tests: Remove support for ARM Compiler 5
2020-03-27 14:05:26 +00:00
Anna Bridge
abaf612ccd
Merge pull request #12704 from michalpasztamobica/lwip_apimsg_err
...
LWIP: propagate the apimsg->err out of netconn_apimsg()
2020-03-27 14:04:27 +00:00
Anna Bridge
1bbcaec04a
Merge pull request #12683 from kivaisan/socketaddress_refactor
...
SocketAddress rework
2020-03-27 11:30:12 +00:00
Dustin Crossman
56099951b5
Ran astyle on COMPONENT_SCL.
2020-03-26 11:50:58 -07:00
Hugues Kamba
a79ae95703
mbed-client-cli: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-26 13:45:46 +00:00
Michal Paszta
dc142979d8
LWIP: propagate the apimsg->err out of netconn_apimsg()
2020-03-26 13:45:50 +02:00
Hugues Kamba
4318a0747f
Tests: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
Hugues Kamba
a9a00e9b29
Storage: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 17:25:20 +00:00
Syed Fahimuddin Alavi
c6b6efc456
Added deativation of context associated with profile
...
Added emt method in At cellular context stub file
2020-03-25 16:02:18 +05:00
Martin Kojtal
b62fdaed1f
Merge pull request #12685 from kivaisan/remove_deprecated_netsocket_methods
...
Remove deprecated netsocket methods
2020-03-25 10:12:55 +01:00
Martin Kojtal
fff23428de
Merge pull request #12686 from jeromecoutant/PR_REVERT_ETHERNET
...
STM32 EMAC : remove TIMEOUT issue when cable is not plugged yet
2020-03-25 08:59:55 +01:00
Kyle Kearney
ab8ac8871c
Remove stray include of TDBStore.h
2020-03-24 12:27:21 -07:00
Kyle Kearney
ae7c6203cc
kv_config: Remove hard fail on too few pages
...
STORE_SECTORS is a hard requirement. If there are fewer than 2 pages
then the kvstore will not work, because the garbage collection process
relies on having at least two sectors to work with.
STORE_PAGES is a heuristic. It is a reasonable default to use if the
application does not specify the amount of flash to use for TDBStore.
But if an application knows that a smaller number of pages will suffice
for its specific needs, then that is valid and should be permitted.
2020-03-24 12:27:21 -07:00
Kyle Kearney
7f18a6ce49
Move flash bounds helpers from TDBStore to kv_config
2020-03-24 12:27:21 -07:00
Kyle Kearney
926423c109
Reuse TDBStore default size computation in devicekey test
...
Replace custom caluation that always assumed two sectors with the standard
calculation exposed on TDBStore.
2020-03-24 12:27:21 -07:00
Kyle Kearney
622a50ff6a
KV_CONFIG: Change errors to use tr_error not tr_warning
2020-03-24 12:27:21 -07:00
Kyle Kearney
e1b857078a
Remove unnecessary reference-typed arguments
...
No callers make use of the modified argument values, so change
them to a more straightforward pass by value.
2020-03-24 12:27:21 -07:00
Kyle Kearney
3ef04db1a3
TDBStore: Increase min pages to 14
...
Increase minimum page count from 10 to 14 based on further experiments
with features-storage-tests-kvstore-static_tests.
2020-03-24 12:27:21 -07:00
Kyle Kearney
0002830c03
TDBStore: remove get_flash_bounds input constraint
...
Handle the case where the entirety of flash (size = 0) is required
for a flash memory starting at address 0, instead of erroring out.
2020-03-24 12:27:20 -07:00
Kyle Kearney
9d414316da
TDBStore: Fix potential alignment issue in default addresses
...
When 10 pages is larger than 2 sectors, align the selected size
down to be an even multiple of the sector size, to ensure that
the allocated space divides cleanly in half for garbage collection.
2020-03-24 12:27:20 -07:00
Kyle Kearney
7cd4d11a8a
Expand error checks in _calculate_blocksize_match_tdbstore
...
The minimum size required by tdbstore is either 2 sectors or 10 pages,
whichever is larger. Correspondingly, adjust the error checks in
_calculate_blocksize_match_tdbstore to match this requirement.
2020-03-24 12:27:20 -07:00
Kyle Kearney
cda0af66eb
Move TDB bounds computation for better reuse
...
Migrate into TDBStore so that DirectAccessDeviceKey can use it as well.
2020-03-24 12:27:20 -07:00
Kyle Kearney
afa88b76d4
Refactor internal flash TDB bounds determination
...
Default the size to the larger of two sectors or 10 pages, so that the
computation works better on devices with a low sector to page size ratio.
Reduce code duplication.
2020-03-24 12:27:20 -07:00
Kimmo Vaisanen
619a5a7bcc
Netsocket: Remove deprecated constructor with open
...
Default constructor with separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen
4918bc6aad
TCPSocket: Remove deprecated contructor with open
...
Default constructor and separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen
2cfee7be71
Netsocket: Remove deprecated InternetSocket::attach methods
...
InternetSocket::sigio should be used instead.
2020-03-24 12:46:30 +02:00
Kevin Bracey
4eda58893e
SocketAddress rework
...
* Add optimised constexpr default constructor. Default construction
was previously by a heavyweight defaulted `nsapi_addr_t` parameter.
* Remove deprecated resolving constructor.
* Take `nsapi_addr_t` inputs by constant reference rather than value.
* Inline the trivial getters and setters.
* Use `unique_ptr` to manage the text buffer.
* Make `operator bool` explicit.
* Optimise some methods.
* Update to C++11 style (default initialisers, nullptr etc)
2020-03-24 11:05:33 +02:00
jeromecoutant
7b0ac0669f
MBED TRACE default level is INFO
2020-03-24 09:36:21 +01:00
Martin Kojtal
5d64e55880
Merge pull request #12651 from kivaisan/add_ec2x_start_timout_configuration
...
Cellular: Make Quectel EC2x modem start up timeout configurable
2020-03-24 08:53:59 +01:00
Martin Kojtal
ae0ec86d59
Merge pull request #12667 from boomer41/fix-devicekey
...
Add check for return code in DeviceKey to avoid injecting invalid ROT
2020-03-23 19:59:10 +01:00
Lingkai Dong
de89b9a572
BLE DeviceInformationService: fix deprecated addService usage
2020-03-23 16:37:21 +00:00
Lingkai Dong
682927d0a7
Remove deprecated BLE:: API
...
Note: The BLE() constructor is now private.
2020-03-23 16:14:20 +00:00
Lingkai Dong
266de6a69a
Remove BLE services that are not maintained anymore
2020-03-23 16:14:19 +00:00
Martin Kojtal
4f4c8c48e1
Merge pull request #12637 from armPelionEdge/#12625-BLE-Cardio-Patch
...
Cordio: fix for issue #12625
2020-03-23 14:47:52 +01:00
Martin Kojtal
ef2c1c89e6
Merge pull request #12658 from VeijoPesonen/fix_tests-integration-fs
...
tests-integration;tests-filesystem: fix code causing compiler warnings and enable more tests
2020-03-23 12:31:13 +01:00
Martin Kojtal
cc799a83fc
Merge pull request #12661 from kbarm/feature-fix-documentation-ascii-art
...
Adjusted SecurityManager Doxygen ASCII art
2020-03-23 10:18:54 +01:00
Stephan Brunner
c6e8ae56db
Use correct return value.
2020-03-23 09:26:30 +01:00
Stephan Brunner
f01bc974ef
Add check for return code in DeviceKey to avoid injecting invalid ROT
2020-03-23 06:57:50 +01:00
Anna Bridge
ab483c2ead
Merge pull request #12654 from kbarm/feature-remove-cc-arm-macro
...
Removed all references to __CC_ARM
2020-03-20 15:22:03 +00:00
Anna Bridge
1b83d31e07
Merge pull request #12648 from artokin/nanostack_wisun_device_type_config
...
Nanostack: Add config for Wi-SUN device type
2020-03-20 15:20:17 +00:00
Anna Bridge
d048cd4c83
Merge pull request #12410 from rajkan01/serial_remove_deprecate
...
Remove the deprecated RawSerial, UARTSerial, Serial
2020-03-20 15:19:32 +00:00
Krzysztof Borowczyk
a624acd45c
Adjusted SecurityManager Doxygen ASCII art to make it display correctly on mbed.com
2020-03-20 10:20:58 +01:00
Veijo Pesonen
244c2fba5f
tests-filesystem: enable all for QSPIF- OSPIF(future)-devices
...
littlefs is the preferred filesystem for general filesystem tests.
2020-03-19 19:26:16 +02:00
Krzysztof Borowczyk
4465295332
Remove ARMC5 reference from Mbed OS platform (removed all references to __CC_ARM)
2020-03-19 16:00:45 +01:00
Kimmo Vaisanen
4f7d7750e4
Cellular: Make Quectel EC2x modem start up timeout configurable
...
Default timeout also increase from 5sec to 15sec.
2020-03-19 12:31:46 +02:00
Arto Kinnunen
1b171791c3
Nanostack: Add config for Wi-SUN device type
...
Add configuration option for Wi-SUN device types.
2020-03-19 08:44:37 +02:00
Marcin Tomczyk
6a21dfa080
[Storage] Use internal flash for KVStore always if default configuration. TDB_INTERNAL is always for first choose.
2020-03-18 06:05:52 -07:00
Martin Kojtal
dc21432cc1
Merge pull request #12633 from kivaisan/bg96_use_offload_tlssocket_flags
...
Cellular: Add offload TLSSocket implementation inside feature flag
2020-03-17 12:17:12 +01:00
Vishal Bhargava
4ea64cb6c6
Update hci_tr.c
...
Indent formating
2020-03-17 12:13:07 +05:30
Kimmo Vaisanen
51175eed1f
Cellular: Add offload TLSSocket implementation inside feature flag
...
Reduce binary size (~500 bytes with GCC_ARM and developer profile) when offloaded TLSSocket is not in use.
2020-03-17 08:42:59 +02:00
Vishal Bhargava
5b65d3b119
Update hci_tr.c
...
Handled fragmented packet case also.
2020-03-17 11:57:14 +05:30
Dustin Crossman
89c70fbd9a
Fix licenses in COMPONENT_SCL.
2020-03-16 09:40:34 -07:00
Rajkumar Kanagaraj
a6b78c6429
Remove Semaphore deprecated APIs
2020-03-16 09:37:45 -07:00
Martin Kojtal
2a4e48179d
Merge pull request #12624 from OpenNuvoton/nuvoton_ec2x
...
Cellular: Support EC2x power control pin support no connect
2020-03-16 14:34:58 +00:00
jeromecoutant
488c9db81e
STM32 EMAC : remove TIMEOUT issue when cablke is not plugged yet
2020-03-13 16:58:47 +01:00
Anna Bridge
532654ebb3
Merge pull request #12597 from kivaisan/alt1250_ppp_cellular
...
Cellular: Add ALT1250 PPP cellular target
2020-03-13 11:08:13 +00:00
Chih-Chiang Chang
73b96c1cbc
Support EC2x PWRKEY set as no connect
2020-03-13 13:46:24 +08:00
Kevin Bracey
bb733f1ee8
Callback updates
...
* Optimise clearing by adding `nullptr` overload. This overload means
`Callback(NULL)` or `Callback(0)` will no longer work; users must
use `Callback(nullptr)` or `Callback()`.
* Optimise clearing by not clearing storage - increases code size of
comparison, but that is extremely rare.
* Reduce ROM used by trivial functors - share copy/destroy code.
* Config option to force trivial functors - major ROM saving by
eliminating the "operations" table.
* Config option to eliminate comparison altogether - minor ROM saving by
eliminating zero padding.
* Conform more to `std::function` API.
2020-03-11 15:46:03 +02:00
Anna Bridge
da9f85b6af
Merge pull request #12580 from cy-arsm/cy-arsm/pr/PR_SoftAP_STA_Fix_revert
...
Reverting #12312 as it breaking current WiFI connect()->Disconnect() sequence
2020-03-10 12:50:27 +00:00
Anna Bridge
e307695e82
Merge pull request #12599 from tymoteuszblochmobica/rotfix
...
Greentea kvstorage tests Cypress targets fix.
2020-03-10 12:08:48 +00:00
Dustin Crossman
05776d6f88
Update COMPONENT_SCL.
2020-03-09 10:07:12 -07:00
Dustin Crossman
6b6db89434
Improve documentation.
2020-03-09 10:07:12 -07:00
Dustin Crossman
e754510cce
Add COMPONENT_SCL.
2020-03-09 10:07:11 -07:00
Martin Kojtal
0692fc65bc
Merge pull request #12567 from jeromecoutant/PR_EMAC_TRACE
...
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-09 15:01:20 +00:00
Tymoteusz Bloch
7b9170541a
KV storage. Root of trust fix to pass Greentea tests for CY8CPROTO_062_4343W.
2020-03-09 13:53:28 +01:00
Kimmo Vaisanen
164a2cab4d
Cellular: Add ALT1250 PPP cellular target
...
Co-authored-by: Mirela Chirica <mirela.chirica@arm.com>
Co-authored-by: Antti Kauppila <antti.kauppila@arm.com>
2020-03-09 14:47:52 +02:00
Martin Kojtal
e71ab0d0f0
Merge pull request #12590 from devran01/importer-remove-license-file
...
Importer script: remove apache-2.0.txt
2020-03-09 09:01:04 +00:00
Martin Kojtal
c17f32f04e
Merge pull request #12507 from variablo87/cellular-context-semaphore-release
...
Cellular: release _semaphore only once
2020-03-09 07:14:47 +00:00
Simon Butcher
19b208f211
Update the contribution guidelines for Mbed TLS
...
This commit changes the contribution guidelines to refer the user to the
contribution guidelines in the Mbed TLS repo. It also removes the outdated references to the
CLA, and CLA not being required for trivial changes.
Signed-off-by: Simon Butcher <simon.butcher@arm.com>
2020-03-06 17:32:17 +00:00
Anna Bridge
1f2e66dd49
Merge pull request #12560 from Patater/import-mbedcrypto-3.0.1
...
crypto: Update to Mbed Crypto 3.0.1
2020-03-06 13:57:57 +00:00
Devaraj Ranganna
4773a219b8
tls: Remove apache-2.0.txt from importer script
...
Both Mbed TLS and Mbed Crypto libraries doesn't contain
`apache-2.0.txt` anymore. Do not access those files in the importer
script.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-03-06 11:26:45 +00:00
Kevin Bracey
4759e9d667
Remove unnecessary friends of NetworkInterface
2020-03-05 16:45:36 +02:00
Kevin Bracey
70a6701006
Improve nsapi_create_stack
...
Use tag dispatch to better handle both NetworkInterface and NetworkStack
pointers.
The previous design was intended to avoid ambiguities when presented
with a scenario like
class MyDevice : public NetworkInterface, public NetworkStack {
};
TCPSocket(&MyDevice);
// Need NetworkStack *: use NetworkInterface::get_stack or
// cast to NetworkStack?
But the previous solution didn't actually work as intended. The overload
pair
nsapi_create_stack(NetworkStack *);
// versus
template <class IF>
nsapi_create_stack(IF *);
would only select the first form if passed an exact match -
`NetworkStack *`. If passed a derived class pointer, like `MyDevice *`,
it would select the template.
This meant that an ambiguity for MyDevice was at least avoided, but
in the wrong direction, potentially increasing code size.
But in other cases, the system just didn't work at all - you couldn't
pass a `MyStack *` pointer, unless you cast it to `NetworkStack *`.
Quite a few bits of test code do this.
Add a small bit of tag dispatch to prioritise the cast whenever the
supplied pointer is convertible to `NetworkStack *`.
2020-03-05 16:45:36 +02:00
Arun S
19cbfd7c15
Reverting #12312 as it breaking current WiFI
...
connect()->Disconnect() sequence
This reverts commit 18285e1fc1
2020-03-05 16:44:59 +05:30
Martin Kojtal
aa6fd58804
Merge pull request #12558 from jarlamsa/differing_eusize
...
Fix issue when TDBStore has varying erase sizes between areas.
2020-03-04 13:25:51 +00:00
Martin Kojtal
9ec6f5d8fa
Merge pull request #12536 from DavidLin1577/patch-7
...
Fixed typo 'thead' in thread_neighbor_class.h
2020-03-04 13:23:26 +00:00
Martin Kojtal
0542b40f36
Merge pull request #12537 from DavidLin1577/patch-8
...
Minor optimization to improve readability of code
2020-03-04 13:23:08 +00:00
Martin Kojtal
b4034dc547
Merge pull request #12551 from rajkan01/mpm_remove_deprecated
...
Remove mbed power management deprecated API
2020-03-04 08:22:52 +00:00
Martin Kojtal
6137c98d6a
Merge pull request #12543 from kivaisan/remove_deprecated_connect
...
TLSSocket: Remove deprecated connect
2020-03-04 08:20:23 +00:00
jeromecoutant
3a02671028
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-04 09:14:41 +01:00
Martin Kojtal
498e2d2bc8
Merge pull request #12499 from u-blox/ubx_cellular
...
Cellular: For ublox modem, read '@' char first then send data.
2020-03-04 07:58:51 +00:00
Martin Kojtal
804d1e613e
Merge pull request #12489 from kjbracey-arm/override_lwip
...
C++11-ify virtualisation in lwIP classes
2020-03-04 07:58:30 +00:00
Martin Kojtal
6677249a08
Merge pull request #12506 from kivaisan/fix_socketaddress_regression
...
Fix 2 string based IP address removal regressions
2020-03-04 07:52:31 +00:00
Martin Kojtal
b3583f04cf
Merge pull request #12464 from jeromecoutant/PR_ETHERNET
...
STM32 EMAC : add configuration choice and connection check
2020-03-03 16:04:18 +00:00
Martin Kojtal
6e6603f97d
Merge pull request #12534 from rajkan01/callchain_remove_deprecated
...
Remove the deprecated CallChain class and its APIs
2020-03-03 14:57:59 +00:00
Martin Kojtal
eaac84be72
Merge pull request #12467 from kjbracey-arm/nsapics
...
Inline nsapi_create_stack(NetworkStack)
2020-03-03 14:13:28 +00:00
Rajkumar Kanagaraj
df32091c7b
Remove the deprecated RawSerial, UARTSerial, Serial class and SerialBase attach API
2020-03-03 05:19:42 -08:00
Jaeden Amero
9ae0868410
crypto: Update to Mbed Crypto 3.0.1
2020-03-03 12:56:07 +00:00