Skip to content

Commit 2104d8a

Browse files
author
Cruz Monrreal
authored
Merge pull request #6711 from marcuschangarm/cleanup-nrf5x
Cleanup TARGET_NRF5 and TARGET_NRF5x
2 parents 30e39ee + 1aebdcb commit 2104d8a

File tree

676 files changed

+15
-152135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+15
-152135
lines changed

TESTS/mbed_hal/critical_section/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "greentea-client/test_env.h"
2121
#include "mbed.h"
2222
#include "cmsis.h"
23-
#if defined(TARGET_NRF5) || defined(TARGET_NRF5x) // for all NRF5x targets
23+
#if defined(TARGET_NRF5x) // for all NRF5x targets
2424
#include "nrf_nvic.h" // for __NRF_NVIC_APP_IRQS_0 / __NRF_NVIC_APP_IRQS_1
2525
#endif
2626

@@ -30,11 +30,11 @@ bool test_are_interrupts_enabled(void)
3030
{
3131
// NRF5x targets don't disable interrupts when in critical section, instead they mask application interrupts this is due to BLE stack
3232
// (BLE to be operational requires some interrupts to be always enabled)
33-
#ifdef TARGET_NRF52
34-
// check if APP interrupts are masked for NRF52_DK board
33+
#if defined(TARGET_NRF52)
34+
// check if APP interrupts are masked for NRF52 boards
3535
return (((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0) || ((NVIC->ISER[1] & __NRF_NVIC_APP_IRQS_1) != 0));
36-
#elif TARGET_NRF5
37-
// check if APP interrupts are masked for other NRF5 boards
36+
#elif defined(TARGET_NRF51)
37+
// check if APP interrupts are masked for other NRF51 boards
3838
return ((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0);
3939
#else
4040
#if defined(__CORTEX_A9)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)