Renamed NRF52 targets for HAL critical section test

pull/6547/head
Marcus Chang 2018-01-31 11:38:46 -08:00
parent 5c3e494a7e
commit 60397c527e
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include "greentea-client/test_env.h"
#include "mbed.h"
#include "cmsis.h"
#ifdef TARGET_NRF5 // for all NRF5x targets
#if defined(TARGET_NRF5) || defined(TARGET_NRF5x) // for all NRF5x targets
#include "nrf_nvic.h" // for __NRF_NVIC_APP_IRQS_0 / __NRF_NVIC_APP_IRQS_1
#endif
@ -30,7 +30,7 @@ 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
// (BLE to be operational requires some interrupts to be always enabled)
#ifdef TARGET_NRF52_DK
#ifdef TARGET_NRF52
// check if APP interrupts are masked for NRF52_DK board
return (((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0) || ((NVIC->ISER[1] & __NRF_NVIC_APP_IRQS_1) != 0));
#elif TARGET_NRF5