From 881b33d2193c1acf5afb416cd1bda3c38d4c8365 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 6 Oct 2017 13:02:27 +0700 Subject: [PATCH] clean up --- cores/nRF5/SDK/components/drivers_nrf/delay/nrf_delay.h | 2 +- cores/nRF5/SDK/components/libraries/util/app_util_platform.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/nRF5/SDK/components/drivers_nrf/delay/nrf_delay.h b/cores/nRF5/SDK/components/drivers_nrf/delay/nrf_delay.h index 42d5beb1..a30c9695 100644 --- a/cores/nRF5/SDK/components/drivers_nrf/delay/nrf_delay.h +++ b/cores/nRF5/SDK/components/drivers_nrf/delay/nrf_delay.h @@ -154,7 +154,7 @@ cond: } } -#elif defined ( _WIN32 ) || defined ( __unix ) || defined( __APPLE__ ) +#elif defined ( _WIN32 ) /*|| defined ( __unix )*/ || defined( __APPLE__ ) #ifndef CUSTOM_NRF_DELAY_US diff --git a/cores/nRF5/SDK/components/libraries/util/app_util_platform.c b/cores/nRF5/SDK/components/libraries/util/app_util_platform.c index bbe5856a..ad6b1090 100644 --- a/cores/nRF5/SDK/components/libraries/util/app_util_platform.c +++ b/cores/nRF5/SDK/components/libraries/util/app_util_platform.c @@ -92,7 +92,7 @@ void app_util_critical_region_exit(uint8_t nested) uint8_t privilege_level_get(void) { -#if __CORTEX_M == (0x00U) || defined(_WIN32) || defined(__unix) || defined(__APPLE__) +#if __CORTEX_M == (0x00U) || defined(_WIN32) /*|| defined(__unix)*/ || defined(__APPLE__) /* the Cortex-M0 has no concept of privilege */ return APP_LEVEL_PRIVILEGED; #elif __CORTEX_M == (0x04U)