Skip to content

Commit

Permalink
Reorganize TARGET_MCU_NRF51822_UNIFIED directories
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Marcus Chang committed May 8, 2018
1 parent 1360920 commit 1aebdcb
Show file tree
Hide file tree
Showing 356 changed files with 15 additions and 1,290 deletions.
10 changes: 5 additions & 5 deletions TESTS/mbed_hal/critical_section/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "greentea-client/test_env.h"
#include "mbed.h"
#include "cmsis.h"
#if defined(TARGET_NRF5) || defined(TARGET_NRF5x) // for all NRF5x targets
#if defined(TARGET_NRF5x) // for all NRF5x targets
#include "nrf_nvic.h" // for __NRF_NVIC_APP_IRQS_0 / __NRF_NVIC_APP_IRQS_1
#endif

Expand All @@ -30,11 +30,11 @@ 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
// check if APP interrupts are masked for NRF52_DK board
#if defined(TARGET_NRF52)
// check if APP interrupts are masked for NRF52 boards
return (((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0) || ((NVIC->ISER[1] & __NRF_NVIC_APP_IRQS_1) != 0));
#elif TARGET_NRF5
// check if APP interrupts are masked for other NRF5 boards
#elif defined(TARGET_NRF51)
// check if APP interrupts are masked for other NRF51 boards
return ((NVIC->ISER[0] & __NRF_NVIC_APP_IRQS_0) != 0);
#else
#if defined(__CORTEX_A9)
Expand Down
97 changes: 0 additions & 97 deletions targets/TARGET_NORDIC/TARGET_NRF5/LF_Clock_config.md

This file was deleted.

265 changes: 0 additions & 265 deletions targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c

This file was deleted.

Loading

0 comments on commit 1aebdcb

Please sign in to comment.