aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF51
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-02-06 13:32:45 +0100
committerStephane D'Alu <sdalu@sdalu.com>2016-02-06 13:32:45 +0100
commitbc3392813c17492dc848fff798283a677cf5b495 (patch)
tree377fee9da6a037b0ffc2d21abbf699e8f79cea0b /os/hal/ports/NRF51
parent3679d705391bf29fa4d4d6b140cf2bf64d84456c (diff)
downloadChibiOS-Contrib-bc3392813c17492dc848fff798283a677cf5b495.tar.gz
ChibiOS-Contrib-bc3392813c17492dc848fff798283a677cf5b495.tar.bz2
ChibiOS-Contrib-bc3392813c17492dc848fff798283a677cf5b495.zip
protect ChibiOS specific sanity check
Diffstat (limited to 'os/hal/ports/NRF51')
-rw-r--r--os/hal/ports/NRF51/NRF51822/st_lld.h2
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