From 3679d705391bf29fa4d4d6b140cf2bf64d84456c Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Sat, 6 Feb 2016 02:44:52 +0100 Subject: fixed compile time error detection for deltatime --- os/hal/ports/NRF51/NRF51822/st_lld.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os') diff --git a/os/hal/ports/NRF51/NRF51822/st_lld.h b/os/hal/ports/NRF51/NRF51822/st_lld.h index 412f4fd..54f7aae 100644 --- a/os/hal/ports/NRF51/NRF51822/st_lld.h +++ b/os/hal/ports/NRF51/NRF51822/st_lld.h @@ -66,14 +66,14 @@ #error "NRF51_SYSTEM_TICKS illegal value" #endif -#if defined(CH_CFG_ST_TIMEDELTA) && CH_CFG_ST_TIMEDELTA < 5 +#if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING +#if CH_CFG_ST_TIMEDELTA < 5 #error "CH_CFG_ST_TIMEDELTA is too low" #endif - -#if (OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING) && \ - (NRF51_SYSTEM_TICKS == NRF51_SYSTEM_TICKS_AS_TIMER) +#if NRF51_SYSTEM_TICKS == NRF51_SYSTEM_TICKS_AS_TIMER #error "Freeruning (tick-less) mode not supported with TIMER, use RTC" #endif +#endif /*===========================================================================*/ /* Driver data structures and types. */ -- cgit v1.2.3