aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal_community.c
diff options
context:
space:
mode:
authorNicolas Reinecke <nr@das-labor.org>2016-04-30 16:03:33 +0200
committerNicolas Reinecke <nr@das-labor.org>2016-05-08 18:27:11 +0200
commit6f67aa78c3061654bb50ed86dc5f104ca49e87b8 (patch)
treec263cbbc5d551292b03a83dc0ec9390451e55895 /os/hal/src/hal_community.c
parentcf02c79b5aa7209542cbf1b0cefe703a2c0c60be (diff)
downloadChibiOS-Contrib-6f67aa78c3061654bb50ed86dc5f104ca49e87b8.tar.gz
ChibiOS-Contrib-6f67aa78c3061654bb50ed86dc5f104ca49e87b8.tar.bz2
ChibiOS-Contrib-6f67aa78c3061654bb50ed86dc5f104ca49e87b8.zip
add STM32 qei (quadrature encoder interface) driver
Code from tinito in forum thread: http://forum.chibios.org/phpbb/viewtopic.php?f=14&t=685 Updated to chibios trunk.
Diffstat (limited to 'os/hal/src/hal_community.c')
-rw-r--r--os/hal/src/hal_community.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/src/hal_community.c b/os/hal/src/hal_community.c
index 981aa25..8a39bf1 100644
--- a/os/hal/src/hal_community.c
+++ b/os/hal/src/hal_community.c
@@ -76,6 +76,10 @@ void halCommunityInit(void) {
#if HAL_USE_TIMCAP || defined(__DOXYGEN__)
timcapInit();
#endif
+
+#if HAL_USE_QEI || defined(__DOXYGEN__)
+ qeiInit();
+#endif
}
#endif /* HAL_USE_COMMUNITY */