Commit Graph

30173 Commits (86dad5cda90f452b0d30af0c1d1530bd31ecc5d0)

Author SHA1 Message Date
Hugues Kamba 992133be50 NRF: fix implicit declarations
As a result removes warnings
2020-06-01 10:26:51 +01:00
Mika Tervonen ad6ed89e10 Allowed to set Wi-SUN certificates in DISCONNECTED state
Before certificates were able to set only once.
Now after disconnect those can be set Again

Also those can be set when stack is active
2020-06-01 11:47:12 +03:00
Kyle Kearney 7ad94db586 CYESKIT_064B0S2_4343W: Remove parentheses from arduino pins
Avoid build failures when arduino pin names collide with C++ template
argument names.
Addresses issue #13027
2020-05-29 17:17:05 -07:00
Hugues Kamba f6d6d44346 NRF serial: Use nrf_uarte_event_t enum to avoid implicit conversion 2020-05-29 20:20:12 +01:00
Hugues Kamba 4d939ccdbe Cordio: put parentheses to correct order of precedence in ternary expressions
Also remove extraneous parentheses in comparison.
2020-05-29 19:11:25 +01:00
Vincent Coubard 2bbc8a0bae BLE: remove limitation in the Cordio to update adv payload
Nothing in the Bluetooth standard prevents update of advertising payload while advertising is active.
This limitation wasn't present in previous version of the stack and is not present for extended advertising.
2020-05-29 17:52:05 +01:00
Vincent Coubard 23e39a1dbd Fix capacity check when service data are added to BLE advertising payload. 2020-05-29 15:06:38 +01:00
Darryl Green e5f8dd8798 Move import to after TARGET_PSA define check
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green a62b3591d9 Fix astyle issues
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green fcf60ec683 Move frameworks/TARGET_PSA to TARGET_EXPERIMENTAL_API 2020-05-29 13:19:12 +01:00
Darryl Green 0e07dff0a4 Move TARGET_MBED_PSA_SRV to FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green 5fa5176727 Move mbedtls/platform/TARGET_PSA to FEATURE_EXPERIMENTAL_API/TARGET_PSA
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Darryl Green ccdb76d34f Move components/TARGET_PSA under FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Darryl Green 10e9946b16 Move FEATURE_PSA under FEATURE_EXPERIMENTAL_API
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero aa7a02f0a9 musca: Mark Musca targets as experimental
TF-M and PSA have experimental APIs. Musca targets must initialize the
tfm_ns_lock, via the experimental API tfm_ns_lock_init(), as part of
their ordinary initialization procedure. Therefore, Musca targets must
have experimental APIs present in order to function. Add the
experimental API feature to Musca targets by default to ease usability
of the Musca targets, rather than requiring all users and CI to manually
enable experimental APIs when using these targets.
2020-05-29 13:19:11 +01:00
Darryl Green 7aadee9ab7 Add experimental feature folder
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero b44a263729 psa: Put Mbed PSA implementation into MBED_PSA_SRV
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero 8b5a2ff2d9 psa: Fix style in psa_hrng.c 2020-05-29 13:19:11 +01:00
Jaeden Amero 5d6ec71171 crypto: Move PSA Crypto headers to MBED_PSA_SRV
TF-M provides its own PSA headers for TF-M targets. Single v7-M targets
need to get PSA crypto from Mbed Crypto.

Note that we don't yet move crypto_struct.h to its new location. This is
to avoid breaking v8-M targets for the time being. When TF-M provides
the PSA implementation on v8-M, we will add crypto_struct.h to the
correct place.

Likewise, none of the PSA-implementing source is moved out of
COMPONENT_PSA_SRV_IMPL yet, as still must not be built for PSA NS
targets. When PSA NS targets switch to using TF-M provided
implementations rather than MBED_PSA_SRV, we can take the source out of
COMPONENT_PSA_SRV_IMPL.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Jaeden Amero 295ff531a4 psa: Pick up code from MBED_PSA_SRV
Make single Armv7-M PSA targets pick up files under TARGET_MBED_PSA_SRV.
We'll be moving the Mbed implementation of PSA to TARGET_MBED_PSA_SRV
folders soon.

Targets (dual-core and Armv8-M) that expect to use TF-M for their PSA
implementation also have MBED_PSA_SRV labels added to them so that they
continue working with the Mbed PSA implementation for the time being.
2020-05-29 13:19:11 +01:00
Darryl Green cf17d7a178 Change unrecognised features to a warning, rather than error
Give a warning rather than error if an unrecognised feature is used.
This will help compatibility when new features are added.

Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:11 +01:00
Kevin Bracey 922b656d39 Fix ThisThread::get_name definition 2020-05-29 11:46:58 +03:00
Rajkumar Kanagaraj 7229e64381 Documentation update about MBRBlockDevice::partition type parameter 2020-05-28 14:04:12 +01:00
Jaeden Amero 4e47c38701 tools: Fix grammar in feature error message
Use "not a supported feature" instead of "not a supported features".
2020-05-27 16:37:59 +01:00
jeromecoutant 76135d0820 STM32: add weak TargetBSP_Init function 2020-05-27 16:49:54 +02:00
Martin Kojtal c7759fe505
Merge pull request #13008 from Patater/armc5-usage-warning-compat
tools: Warn when ARMC5 is no longer supported
2020-05-27 10:57:36 +02:00
Martin Kojtal a802ab89e8
Merge pull request #13007 from Patater/default-lib-c-compat
tools: Support default_lib and c_lib
2020-05-27 10:57:23 +02:00
Jaeden Amero 5e65cf7f4d tools: Support default_lib and c_lib
For backwards compatibility reasons, since the latest Mbed OS tools must
be able to build any previous online-compiler-supported version of Mbed
OS, allow targets to use `default_lib` or `c_lib`. This should enable
the tools to work with Mbed OS 5 style targets.json.
2020-05-26 10:47:13 +01:00
jeromecoutant ccfb099255 tests-mbed_hal-rtc patch to match IAR compilation issue 2020-05-26 10:26:45 +02:00
jeromecoutant d8fc1e9121 Force callback non-trivial for IAR 2020-05-25 15:29:27 +02:00
jeromecoutant 876125ad49 DISCO_H747I_CM4 is supporting now hex format
- minimum STLink version: V3J7M2
2020-05-25 11:34:40 +02:00
Ari Parkkila de765a41f0 Cellular: Fix packet data registration after CREG 2020-05-25 11:17:59 +03:00
pea-pod 77a1a72c46 Add enum class flag definition to platform 2020-05-24 00:23:06 -05:00
Jaeden Amero a5a544408d tools: Warn when ARMC5 is no longer supported
Update the warning when ARMC5 is used to specify the conditions under
which ARMC5 is no longer supported.
2020-05-22 15:39:01 +01:00
Jaeden Amero 64f19281d3 Revert "Add the exception in Mbed OS build tool for Arm Compiler 5 toolchain."
For backwards compatibility reasons, as the Mbed tools must be able to
build any online-compiler-supported version of Mbed, revert back to
emitting a warning when ARMC5 is used. This will enable ARMC5 to
continue working in the online compiler for Mbed OS 5 and other previous
versions. ARMC5 remains unsupported in Mbed 6.

This reverts commit 03d57b7ba2.
2020-05-22 15:39:01 +01:00
Jaeden Amero 8be07a4906 tools: Fix typo in comment 2020-05-22 14:51:58 +01:00
George Beckstein 28e221da18 Update NUCLEO_G474RE target definition to inherit from renamed MCU_STM32 2020-05-20 07:30:18 -04:00
George Beckstein 658d89be8c Apply linker fix as in #12690 to new NUCLEO_G474RE target 2020-05-20 06:39:17 -04:00
George Beckstein 6e2fa616c7 Added spi_api.c implementation 2020-05-20 06:39:17 -04:00
George Beckstein eb8d128a24 Updated system clock settings to run at 170MHz (max for this target). Affects both HSI and HSE modes. 2020-05-20 06:39:17 -04:00
George Beckstein f391718a6d Updated detect code for NUCLEO_G474RE 2020-05-20 06:39:17 -04:00
George Beckstein 44ca862af3 Changed us_ticker configuration to use TIM5 instead of TIM2 to be consistent with the allowed PWM peripheral pins. 2020-05-20 06:39:17 -04:00
George Beckstein 2297e1b91e Updated clock configuration settings for NUCLEO_G474RE 2020-05-20 06:39:17 -04:00
George Beckstein c687ae312f Added missing analogin_device.c file and configured for STM32G4xx series 2020-05-20 06:39:17 -04:00
George Beckstein 613af0f604 Added support for ANALOGOUT 2020-05-20 06:39:17 -04:00
George Beckstein 934d60e63d Added support for FLASH API 2020-05-20 06:39:17 -04:00
George Beckstein 7f19c8ac6e Added support for SPI API 2020-05-20 06:39:17 -04:00
George Beckstein 06d74aa37a Added support for PWMOUT 2020-05-20 06:39:17 -04:00
George Beckstein e38dfc78b6 Added support for PORT APIs 2020-05-20 06:39:17 -04:00
George Beckstein f59ec66710 Added support for INTERRUPTIN 2020-05-20 06:39:17 -04:00