mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Renamed NRF52 targets for HAL critical section test
							parent
							
								
									5c3e494a7e
								
							
						
					
					
						commit
						60397c527e
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue