File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
TESTS/mbed_hal/critical_section Expand file tree Collapse file tree 1 file changed +3
-6
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
You can’t perform that action at this time.
0 commit comments