stm32h7/linum-stm32h753bi: add support to qencoder

Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
This commit is contained in:
Jorge Guzman
2024-07-06 09:11:02 -03:00
committed by Alan Carvalho de Assis
parent 48cf91a7be
commit 738a30a421
8 changed files with 183 additions and 1 deletions
@@ -754,4 +754,18 @@ This configuration is focused on network testing using the ethernet periferal::
56 bytes from 142.251.129.110: icmp_seq=8 time=0.0 ms
56 bytes from 142.251.129.110: icmp_seq=9 time=0.0 ms
10 packets transmitted, 10 received, 0% packet loss, time 10100 ms
rtt min/avg/max/mdev = 0.000/1.000/10.000/3.000 ms
rtt min/avg/max/mdev = 0.000/1.000/10.000/3.000 ms
qencoder
--------
Configures and enables TIM5 on CH1(PA0) and CH2(PH11) to handle Quadrature Encoder:
nsh> qe
qe_main: Hardware initialized. Opening the encoder device: /dev/qe0
qe_main: Number of samples: 0
qe_main: 1. 1
qe_main: 2. 2
qe_main: 3. 3
qe_main: 4. 2
qe_main: 5. 1