File tree Expand file tree Collapse file tree 4 files changed +20
-16
lines changed
TESTS/mbed_hal/critical_section
features/FEATURE_BLE/targets
TARGET_CORDIO/TESTS/cordio_hci/transport
TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/stack/sources Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,9 @@ using utest::v1::Case;
28
28
29
29
bool test_are_interrupts_enabled (void )
30
30
{
31
- // NRF5x targets don't disable interrupts when in critical section, instead they mask application interrupts this is due to BLE stack
32
- // (BLE to be operational requires some interrupts to be always enabled)
33
- #if defined(TARGET_NRF52)
34
- // check if APP interrupts are masked for NRF52 boards
35
- return (((NVIC->ISER [0 ] & __NRF_NVIC_APP_IRQS_0) != 0 ) || ((NVIC->ISER [1 ] & __NRF_NVIC_APP_IRQS_1) != 0 ));
36
- #elif defined(TARGET_NRF51)
31
+ // NRF51 targets don't disable interrupts when in critical section, instead they mask application interrupts.
32
+ // This is due to SoftDevice BLE stack (BLE to be operational requires some interrupts to be always enabled)
33
+ #if defined(TARGET_NRF51)
37
34
// check if APP interrupts are masked for other NRF51 boards
38
35
return ((NVIC->ISER [0 ] & __NRF_NVIC_APP_IRQS_0) != 0 );
39
36
#else
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ using ble::vendor::cordio::CordioHCITransportDriver;
33
33
34
34
extern ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver ();
35
35
36
+ #if CORDIO_ZERO_COPY_HCI
37
+ #error [NOT_SUPPORTED] Test not relevant for zero copy hci.
38
+ #endif
39
+
36
40
namespace ble {
37
41
namespace vendor {
38
42
namespace cordio {
Original file line number Diff line number Diff line change 23
23
24
24
#include "pal_types.h"
25
25
#include "pal_bb_ble.h"
26
- #if defined(NRF52840_XXAA ) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
26
+ #if defined(NRF52840_XXAA ) && defined( FEATURE_CRYPTOCELL310 ) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
27
27
#include "crys_rsa_kg.h"
28
28
#include "crys_dh.h"
29
29
#include "ssi_pal_types.h"
34
34
/* Nordic specific definitions. */
35
35
#include "nrf_ecb.h"
36
36
#include "nrf.h"
37
- #if defined(NRF52840_XXAA ) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
37
+ #if defined(NRF52840_XXAA ) && defined( FEATURE_CRYPTOCELL310 ) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
38
38
#include "nrf52840.h"
39
39
#endif
40
40
#include <string.h>
@@ -690,7 +690,7 @@ bool_t PalCryptoAesCcmDecrypt(PalCryptoEnc_t *pEnc, uint8_t *pBuf)
690
690
return TRUE;
691
691
}
692
692
693
- #if defined(NRF52840_XXAA ) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
693
+ #if defined(NRF52840_XXAA ) && defined( FEATURE_CRYPTOCELL310 ) && MBED_CONF_CORDIO_LL_NRF52840_CRYPTOCELL310_ACCELERATION
694
694
/*************************************************************************************************/
695
695
/*!
696
696
* \brief Execute the CCM-Mode encryption algorithm.
Original file line number Diff line number Diff line change 7088
7088
" MBED_TICKLESS" ,
7089
7089
" MBED_MPU_CUSTOM"
7090
7090
],
7091
+ "features" : [" BLE" ],
7091
7092
"device_has" : [
7092
7093
" ANALOGIN" ,
7093
7094
" FLASH" ,
7115
7116
" NRF5x" ,
7116
7117
" NRF52" ,
7117
7118
" SDK_15_0" ,
7118
- " NORDIC_SOFTDEVICE" ,
7119
- " SOFTDEVICE_COMMON" ,
7120
- " SOFTDEVICE_S132_FULL"
7119
+ " CORDIO" ,
7120
+ " CORDIO_LL" ,
7121
+ " SOFTDEVICE_NONE" ,
7122
+ " NORDIC_CORDIO"
7121
7123
],
7122
7124
"config" : {
7123
7125
"lf_clock_src" : {
7213
7215
" WSF_MAX_HANDLERS=10" ,
7214
7216
" MBED_MPU_CUSTOM"
7215
7217
],
7216
- "features" : [" CRYPTOCELL310" ],
7218
+ "features" : [" CRYPTOCELL310" , " BLE " ],
7217
7219
"device_has" : [
7218
7220
" ANALOGIN" ,
7219
7221
" FLASH" ,
7242
7244
" NRF5x" ,
7243
7245
" NRF52" ,
7244
7246
" SDK_15_0" ,
7245
- " NORDIC_SOFTDEVICE" ,
7246
- " SOFTDEVICE_COMMON" ,
7247
- " SOFTDEVICE_S140_FULL"
7247
+ " CORDIO" ,
7248
+ " CORDIO_LL" ,
7249
+ " SOFTDEVICE_NONE" ,
7250
+ " NORDIC_CORDIO"
7248
7251
],
7249
7252
"config" : {
7250
7253
"lf_clock_src" : {
You can’t perform that action at this time.
0 commit comments