Skip to content

Commit 1019cb0

Browse files
committed
Fixing a macro to detect when RTOS was in use for the NRF52840_DK
1 parent 35a5612 commit 1019cb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/sdk/libraries/timer/app_timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*
3737
*/
38-
#ifndef __MBED_CMSIS_RTOS_CM
38+
#ifndef MBED_CONF_RTOS_PRESENT
3939

4040
#include "sdk_common.h"
4141
#if NRF_MODULE_ENABLED(APP_TIMER)
@@ -1076,4 +1076,4 @@ uint8_t app_timer_op_queue_utilization_get(void)
10761076
}
10771077
#endif
10781078
#endif //NRF_MODULE_ENABLED(APP_TIMER)
1079-
#endif // __MBED_CMSIS_RTOS_CM
1079+
#endif // MBED_CONF_RTOS_PRESENT

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/sdk/libraries/timer/app_timer_rtx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*
3737
*/
38-
#ifdef __MBED_CMSIS_RTOS_CM
38+
#ifdef MBED_CONF_RTOS_PRESENT
3939

4040
#include "sdk_common.h"
4141
#if NRF_MODULE_ENABLED(APP_TIMER)
@@ -282,4 +282,4 @@ uint32_t app_timer_cnt_diff_compute(uint32_t ticks_to,
282282
}
283283
#endif //NRF_MODULE_ENABLED(APP_TIMER)
284284

285-
#endif // __MBED_CMSIS_RTOS_CM
285+
#endif // MBED_CONF_RTOS_PRESENT

0 commit comments

Comments
 (0)