zdebanos opened a new pull request, #12081:
URL: https://github.com/apache/nuttx/pull/12081

   The SAMV7's qencoder driver now supports the GETINDEX ioctl call which does 
not reset the internal Timer/Counter and returns the current position, position 
of the last index and the number of captured indexes to a struct qe_index_s 
pointer. Because the SAMV7's timers are 16bit, the extension to 32 bits must be 
done.
   
   Select CONFIG_SAMV7_QENCODER_ENABLE_GETINDEX in the Kconfig to enable this 
functionality.
   
   This driver does not obey the instructions given in the ATSAMV7 2023 
datasheet because the recommended trigger resets the internal counter which is 
not desired. Instead, a capture into capture A and capture B registers is used. 
This way if an event happens (the rising edge of the index signal), the current 
counter's value is captured.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to