drivers: qdec_sam: disable index signal
`qdec_sam` driver supports currently only position measurement and does not support reading of the index signal. Unfortunately, the index signal was internally enabled in the driver. If the pin to which the index signal was connected was used by another driver it could lead to a false detection of the signal change. Detection of the index signal change resets the position measurement. Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
d6f150e97b
commit
a922fd1b2f
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ static void qdec_sam_configure(const struct device *dev)
|
|||
|
||||
/* Clock, Trigger Edge, Trigger and Mode Selection */
|
||||
tc_ch0->TC_CMR = TC_CMR_TCCLKS_XC0
|
||||
| TC_CMR_ETRGEDG_RISING
|
||||
| TC_CMR_ETRGEDG_NONE
|
||||
| TC_CMR_ABETRG;
|
||||
|
||||
/* Enable QDEC in Position Mode*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue