Skip to content

Commit 1aebdcb

Browse files
author
Marcus Chang
committed
Reorganize TARGET_MCU_NRF51822_UNIFIED directories
The unified NRF51 target and feature BLE directories have been reorganized to follow the naming and directory structure of the NRF52 implementation. This reorganization does not include TARGET_MCU_NRF51822 and derived targets.
1 parent 1360920 commit 1aebdcb

File tree

356 files changed

+15
-1290
lines changed

Some content is hidden

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

356 files changed

+15
-1290
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)