fixed compile time error detection for deltatime

This commit is contained in:
Stephane D'Alu 2016-02-06 02:44:52 +01:00
parent f35c8058ef
commit 3679d70539
1 changed files with 4 additions and 4 deletions

View File

@ -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. */