diff options
author | Stephane D'Alu <sdalu@sdalu.com> | 2016-02-06 13:32:45 +0100 |
---|---|---|
committer | Stephane D'Alu <sdalu@sdalu.com> | 2016-02-06 13:32:45 +0100 |
commit | bc3392813c17492dc848fff798283a677cf5b495 (patch) | |
tree | 377fee9da6a037b0ffc2d21abbf699e8f79cea0b | |
parent | 3679d705391bf29fa4d4d6b140cf2bf64d84456c (diff) | |
download | ChibiOS-Contrib-bc3392813c17492dc848fff798283a677cf5b495.tar.gz ChibiOS-Contrib-bc3392813c17492dc848fff798283a677cf5b495.tar.bz2 ChibiOS-Contrib-bc3392813c17492dc848fff798283a677cf5b495.zip |
protect ChibiOS specific sanity check
-rw-r--r-- | os/hal/ports/NRF51/NRF51822/st_lld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/NRF51/NRF51822/st_lld.h b/os/hal/ports/NRF51/NRF51822/st_lld.h index 54f7aae..c6cf201 100644 --- a/os/hal/ports/NRF51/NRF51822/st_lld.h +++ b/os/hal/ports/NRF51/NRF51822/st_lld.h @@ -67,7 +67,7 @@ #endif
#if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING
-#if CH_CFG_ST_TIMEDELTA < 5
+#if defined(CH_CFG_ST_TIMEDELTA) && (CH_CFG_ST_TIMEDELTA < 5)
#error "CH_CFG_ST_TIMEDELTA is too low"
#endif
#if NRF51_SYSTEM_TICKS == NRF51_SYSTEM_TICKS_AS_TIMER
|