Commit Graph

29604 Commits (1a6a8495efcaefea0df7dc3b1cd50c8c0984568a)

Author SHA1 Message Date
Darryl Green 1a6a8495ef Define mbedtls_ecc_group_to_psa inline for NS world
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:26 +01:00
Darryl Green 0d16ca4d8a Remove references to mbed-crypto
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:20 +01:00
Darryl Green d64c9e53c8 Move Mbed Crypto Greentea tests to Mbed TLS
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:15 +01:00
Darryl Green 53260ebd77 Use updated ECC curve macros
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:10 +01:00
Darryl Green fc07e5ba93 Update Mbed TLS to latest version
As Mbed Crypto has been remerged into Mbed TLS, remove Mbed Crypto
at the same time.

Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:05 +01:00
Darryl Green b91fe62c96 Adjust Mbed TLS importer and config script
Mbed Crypto has been remerged back into Mbed TLS. Update the
Mbed TLS importer script with the relevant parts of the
Mbed Crypto importer.

Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:27:54 +01:00
Martin Kojtal d1ae0d570c
Merge pull request #12425 from kjbracey-arm/chrono
C++ Chrono support
2020-04-30 11:41:43 +02:00
Martin Kojtal a9cb876b39
Merge pull request #12737 from Patater/psa-breaking-changes
Remove PSA implementation for v8-M and dual CPU targets
2020-04-30 10:42:24 +02:00
Martin Kojtal 4108cd2c8c
Merge pull request #12873 from rajkan01/usb_bare_metal_support
Bare metal profile: USB class device support
2020-04-29 22:17:37 +02:00
Martin Kojtal 6052b4540a
Merge pull request #12872 from rajkan01/kernel_interface_func_doxygen
Add the Doxygen note to non-supported RTOS kernel APIs.
2020-04-29 22:17:14 +02:00
Martin Kojtal 1ddfa59ea7
Merge pull request #12463 from kjbracey-arm/sockstats
Clean up and optimise socket statistics
2020-04-29 22:16:54 +02:00
Martin Kojtal 761b546438
Merge pull request #12853 from hugueskamba/hk_remove_uarm_nxp_board
ARCH_PRO: Remove uARM tooolchain support
2020-04-29 22:16:17 +02:00
Martin Kojtal 3c89556cbd
Merge pull request #12456 from jeromecoutant/PR_COMPONENT_BLUENRG
COMPONENT_BlueNRG_MS creation : ST Bluetooth Low Energy module
2020-04-29 17:36:15 +02:00
Martin Kojtal 4f9d21b16a
Merge pull request #12694 from kivaisan/remove_netsocket_icetea_and_tcpserver
Remove netsocket icetea tests and TCPServer
2020-04-29 13:46:44 +02:00
Martin Kojtal 97a380f292
Merge pull request #12874 from LDong-Arm/nrf52_stack_size
nRF: use Mbed-default boot-stack-size & fix stack_size_unification test
2020-04-28 18:30:43 +02:00
Martin Kojtal 58c0259dd6
Merge pull request #12522 from artokin/network_interface_property_api
Add property API to InternetSocket
2020-04-28 18:10:18 +02:00
Rajkumar Kanagaraj adeae5157f Add the newline 2020-04-28 16:55:58 +01:00
Martin Kojtal c904e2240d
Merge pull request #12866 from teetak01/mbed-coap-v5.1.5
Update mbed-coap to version v5.1.5
2020-04-28 13:09:33 +02:00
Martin Kojtal ed6f81d4eb
Merge pull request #12860 from jeromecoutant/PR_F7_CUBE_1_16
STM32F7 update drivers version to CUBE V1.16.0
2020-04-28 12:07:45 +02:00
Hugues Kamba 58c8d622bb ARCH_PRO: Remove uARM tooolchain support
* Update scatter file for the ARM toolchain to use 2 region memory model.
  The scatter file changes affect the following boards:
    * LPC1768, ARCH_PRO, UBLOX_C027, XBED_LPC1768 (LPC1768.sct)
* Remove the TOOLCHAIN_ARM_MICRO directory.
* Remove release_version as not necessary and as the target can also run
  Mbed OS 6.
* Remove uARM toolchain in the list of supported toolchains for the target.
* Indicate that the target supports the small ARM toolchain C library.
2020-04-28 01:30:30 +01:00
Lingkai Dong 81e676b86b RTOS: use default boot-stack-size for nRF as SoftDevice is no longer used
Previously we overrode nRF targets to have a larger stack
due to memory required by SoftDevice. Having deprecated SoftDevice
in favour of Cordio for BLE (#12674), such requirement does not
apply anymore.
2020-04-27 17:22:49 +01:00
Rajkumar Kanagaraj d4e2d6961a Add MBED_CONF_RTOS_PRESENT guard to enable USBCDC_ECM class device only for MBED OS full profile. 2020-04-27 15:00:33 +01:00
Rajkumar Kanagaraj 57e0063e8d Add the Doxygen note to non-supported RTOS kernel APIs. 2020-04-27 14:38:14 +01:00
Martin Kojtal 28ef7535e3
Merge pull request #12730 from LDong-Arm/gap_deprecation_cleanup
BLE Gap deprecation cleanup/rework
2020-04-27 11:46:12 +02:00
Devaraj Ranganna b79b33219b psa: Remove exporters for TF-M targets
Targets that use TF-M for their PSA implementation are not compatible
with exporters at this time. Explicitly block use of exporters with TF-M
using targets, for better error messages.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-04-27 09:51:14 +01:00
Devaraj Ranganna fd74d678a7 psa: Remove PSA secure binary building tools
The PSA-implementing secure binary is not built using Mbed OS build
tools anymore. Instead, the TrustedFirmware-M (TF-M) build system is
used to produce the secure binary. As such, we remove PSA related hooks
from the build system, remove PSA related scripts from tools/test
folder, and also remove the psa-autogen job from travis which was
running the now unecessary and removed generate_partition_code.py.

Remove the ability to generate new PSA binaries in the old manner, where
Mbed OS implements PSA. We don't yet remove any PSA binaries or break
the currently checked-in Mbed-implemented PSA support. PSA targets
integrated in the old manner will continue working at this point.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:14 +01:00
Jaeden Amero fcf427ac11 psa: Remove S-mode only code
Remove all PSA S-mode only code, as it is unused. Only PSA S targets
would use the code, and we've removed those targets in a previous
commit.

Ensure all tests for S-mode code we are deleting is also removed, even
if that code would run in NS-mode. Keep any tests that also test our PSA
emulation support (for single v7-M targets).

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:13 +01:00
Jaeden Amero 6b3a9cb4fa psa: Remove v8-M S targets
Remove PSA v8-M S target binaries will be built outside of Mbed OS and
added in as binaries which NS targets consume. Mbed OS no longer
implements PSA for v8-M targets, so there is no reason for it to build
PSA S targets.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:09 +01:00
Devaraj Ranganna 493a043528 psa: Remove PSA targets not supported in TF-M
Mbed OS depends on TF-M to implement PSA. Any targets that need to
provide PSA must be supported by TF-M. The following targets are removed
from Mbed OS as they don't yet have TF-M support. We can re-add these
targets to Mbed OS when they have TF-M support in the official upstream
TF-M repository hosted at trustedfirmware.org.

These PSA targets no longer have a PSA implementation and are removed:
- LPC55S69
- LPC55S69_NS
- LPC55S69_S
- NU_PFM_M2351_NS
- NU_PFM_M2351_S
- HANI_IOT

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:43:01 +01:00
Jaeden Amero af1ea31546 psa: Add copyright and #! to tfm tool
Add a copyright header and a shebang to the Mbed OS TrustedFirmware-M
tooling.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:43:01 +01:00
Teemu Takaluoma e254ce9975 Update mbed-coap to version 5.1.5
BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.

The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
2020-04-27 11:11:43 +03:00
Arto Kinnunen f39da5ebaf Remove unnecessary casts from stagger/RTT API 2020-04-27 10:22:25 +03:00
Kevin Bracey b614bd3113 Durations don't always zero init
In a couple of places I assumed that durations and time_points always
zero-initialised. This is incorrect - they act as if they were their
representation, so integer durations only zero-init when static.

You can zero init (like integers) by having `{}` initialisation.
2020-04-27 10:19:08 +03:00
Kevin Bracey 58388b7e5e Out-of-line LowPowerTimeout etc, lock
To match Timer etc, make LowPowerTimer et al out-of-line.

Correct LowPowerTimeout to not lock deep sleep.
2020-04-27 10:19:08 +03:00
Kevin Bracey 8e3e19837a More Chrono test fixes
* Timer test - handle removal of Timer(ticker_data_t *)
* Timer test - use Chrono, don't test deprecated methods
* Kernel tick count test - TEST_ASSERT_WITHIN -> TEST_ASSERT_INT_WITHIN
* Mutex test - fix up Chrono changes
* SysTimer test - adapt to SysTimer Chrono changes
* Thread test - use Chrono
* SysTimer - devirtualize destructor
2020-04-27 10:19:08 +03:00
Kevin Bracey e5e45d83e7 Chrono test fixes
* Remove ambiguity in single-parameter Queue::put and get
* Fix type problems in RTC test - add missing include
* Don't attempt to use TimerEvent default constructor
* Remove references to Timer::read_duration
2020-04-27 10:19:08 +03:00
Rajkumar Kanagaraj a10dafdda8 Fix the CI build issue 2020-04-27 10:19:08 +03:00
Rajkumar Kanagaraj c71c980ccd Fix the CI build and unit test issue 2020-04-27 10:19:08 +03:00
Kevin Bracey 5601a207cc Fix and update tests to use Chronos APIs 2020-04-27 10:19:08 +03:00
Kevin Bracey b17355f588 mstd_mutex: Add missing Chrono bits 2020-04-27 10:19:08 +03:00
Kevin Bracey f0ee31f119 Add RealTimeClock 2020-04-27 10:19:08 +03:00
Kevin Bracey 0eff3340d2 Add Chrono support to Event/EventQueue 2020-04-27 10:19:08 +03:00
Kevin Bracey 8f490f6f24 Use Chrono in LowPowerTickerWrapper 2020-04-27 10:19:08 +03:00
Kevin Bracey a88622527f Add mbed_chrono.h for handy extensions 2020-04-27 10:19:08 +03:00
Kevin Bracey 34428f9d4c Add Chrono support to Ticker et al 2020-04-27 10:19:08 +03:00
Kevin Bracey b9aa69a376 Add HighResClock and LowPowerClock 2020-04-27 10:19:08 +03:00
Kevin Bracey 4575ad3f23 Add Chrono support to Queue,MemoryPool,Mail 2020-04-27 10:19:08 +03:00
Kevin Bracey f6e8ecadec Add Chrono support to EventFlags 2020-04-27 10:19:08 +03:00
Kevin Bracey 4f2fa53b37 Thread: minor space optimisation 2020-04-27 10:19:08 +03:00
Kevin Bracey 2c4e59012f Add Chrono support to Mutex 2020-04-27 10:19:08 +03:00