aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-07-07 21:25:51 +0200
committerStephane D'Alu <sdalu@sdalu.com>2016-07-07 21:25:51 +0200
commitf75abd1037a5c2eb119533eb2f4c7c16d874abf2 (patch)
tree0c2af621c9380d1cea37df8cdddd55eccd3b6088 /os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c
parent9c88423d66e9b4eafecc658058f25f79e08ff120 (diff)
downloadChibiOS-Contrib-f75abd1037a5c2eb119533eb2f4c7c16d874abf2.tar.gz
ChibiOS-Contrib-f75abd1037a5c2eb119533eb2f4c7c16d874abf2.tar.bz2
ChibiOS-Contrib-f75abd1037a5c2eb119533eb2f4c7c16d874abf2.zip
added qeiAdjustI. added new field and checking in STM32
Diffstat (limited to 'os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c')
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c b/os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c
index ea051f7..ffc4992 100644
--- a/os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c
+++ b/os/hal/ports/STM32/LLD/TIMv1/hal_qei_lld.c
@@ -150,6 +150,8 @@ void qei_lld_init(void) {
* @notapi
*/
void qei_lld_start(QEIDriver *qeip) {
+ osalDbgAssert((qeip->config->min == 0) || (qeip->config->max == 0),
+ "only min/max set to 0 is supported");
if (qeip->state == QEI_STOP) {
/* Clock activation and timer reset.*/