mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10709 from LDong-Arm/nrf52_cordio
Default to Cordio BLE stack for NRF52* targetspull/10776/head
commit
dc77c40fe9
|
@ -28,12 +28,9 @@ using utest::v1::Case;
|
||||||
|
|
||||||
bool test_are_interrupts_enabled(void)
|
bool test_are_interrupts_enabled(void)
|
||||||
{
|
{
|
||||||
// NRF5x targets don't disable interrupts when in critical section, instead they mask application interrupts this is due to BLE stack
|
// NRF51 targets don't disable interrupts when in critical section, instead they mask application interrupts.
|
||||||
// (BLE to be operational requires some interrupts to be always enabled)
|
// This is due to SoftDevice BLE stack (BLE to be operational requires some interrupts to be always enabled)
|
||||||
#if defined(TARGET_NRF52)
|
#if defined(TARGET_NRF51)
|
||||||
// check if APP interrupts are masked for NRF52 boards
|
|
||||||
return (((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0) || ((NVIC->ISER[1] & __NRF_NVIC_APP_IRQS_1) != 0));
|
|
||||||
#elif defined(TARGET_NRF51)
|
|
||||||
// check if APP interrupts are masked for other NRF51 boards
|
// check if APP interrupts are masked for other NRF51 boards
|
||||||
return ((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0);
|
return ((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -33,6 +33,10 @@ using ble::vendor::cordio::CordioHCITransportDriver;
|
||||||
|
|
||||||
extern ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver();
|
extern ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver();
|
||||||
|
|
||||||
|
#if CORDIO_ZERO_COPY_HCI
|
||||||
|
#error [NOT_SUPPORTED] Test not relevant for zero copy hci.
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ble {
|
namespace ble {
|
||||||
namespace vendor {
|
namespace vendor {
|
||||||
namespace cordio {
|
namespace cordio {
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include "pal_types.h"
|
#include "pal_types.h"
|
||||||
#include "pal_bb_ble.h"
|
#include "pal_bb_ble.h"
|
||||||
#if defined(NRF52840_XXAA) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
|
#if defined(NRF52840_XXAA) && defined(FEATURE_CRYPTOCELL310) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
|
||||||
#include "crys_rsa_kg.h"
|
#include "crys_rsa_kg.h"
|
||||||
#include "crys_dh.h"
|
#include "crys_dh.h"
|
||||||
#include "ssi_pal_types.h"
|
#include "ssi_pal_types.h"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
/* Nordic specific definitions. */
|
/* Nordic specific definitions. */
|
||||||
#include "nrf_ecb.h"
|
#include "nrf_ecb.h"
|
||||||
#include "nrf.h"
|
#include "nrf.h"
|
||||||
#if defined(NRF52840_XXAA) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
|
#if defined(NRF52840_XXAA) && defined(FEATURE_CRYPTOCELL310) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
|
||||||
#include "nrf52840.h"
|
#include "nrf52840.h"
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -690,7 +690,7 @@ bool_t PalCryptoAesCcmDecrypt(PalCryptoEnc_t *pEnc, uint8_t *pBuf)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(NRF52840_XXAA) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
|
#if defined(NRF52840_XXAA) && defined(FEATURE_CRYPTOCELL310) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
|
||||||
/*************************************************************************************************/
|
/*************************************************************************************************/
|
||||||
/*!
|
/*!
|
||||||
* \brief Execute the CCM-Mode encryption algorithm.
|
* \brief Execute the CCM-Mode encryption algorithm.
|
||||||
|
|
|
@ -7088,6 +7088,7 @@
|
||||||
"MBED_TICKLESS",
|
"MBED_TICKLESS",
|
||||||
"MBED_MPU_CUSTOM"
|
"MBED_MPU_CUSTOM"
|
||||||
],
|
],
|
||||||
|
"features": ["BLE"],
|
||||||
"device_has": [
|
"device_has": [
|
||||||
"ANALOGIN",
|
"ANALOGIN",
|
||||||
"FLASH",
|
"FLASH",
|
||||||
|
@ -7115,9 +7116,10 @@
|
||||||
"NRF5x",
|
"NRF5x",
|
||||||
"NRF52",
|
"NRF52",
|
||||||
"SDK_15_0",
|
"SDK_15_0",
|
||||||
"NORDIC_SOFTDEVICE",
|
"CORDIO",
|
||||||
"SOFTDEVICE_COMMON",
|
"CORDIO_LL",
|
||||||
"SOFTDEVICE_S132_FULL"
|
"SOFTDEVICE_NONE",
|
||||||
|
"NORDIC_CORDIO"
|
||||||
],
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"lf_clock_src": {
|
"lf_clock_src": {
|
||||||
|
@ -7213,7 +7215,7 @@
|
||||||
"WSF_MAX_HANDLERS=10",
|
"WSF_MAX_HANDLERS=10",
|
||||||
"MBED_MPU_CUSTOM"
|
"MBED_MPU_CUSTOM"
|
||||||
],
|
],
|
||||||
"features": ["CRYPTOCELL310"],
|
"features": ["CRYPTOCELL310", "BLE"],
|
||||||
"device_has": [
|
"device_has": [
|
||||||
"ANALOGIN",
|
"ANALOGIN",
|
||||||
"FLASH",
|
"FLASH",
|
||||||
|
@ -7242,9 +7244,10 @@
|
||||||
"NRF5x",
|
"NRF5x",
|
||||||
"NRF52",
|
"NRF52",
|
||||||
"SDK_15_0",
|
"SDK_15_0",
|
||||||
"NORDIC_SOFTDEVICE",
|
"CORDIO",
|
||||||
"SOFTDEVICE_COMMON",
|
"CORDIO_LL",
|
||||||
"SOFTDEVICE_S140_FULL"
|
"SOFTDEVICE_NONE",
|
||||||
|
"NORDIC_CORDIO"
|
||||||
],
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"lf_clock_src": {
|
"lf_clock_src": {
|
||||||
|
|
Loading…
Reference in New Issue