acassis commented on issue #16762:
URL: https://github.com/apache/nuttx/issues/16762#issuecomment-3139664118

   @comejv so you are trying to measure the pulse length using an ordinary GPIO 
pin instead of using the timer capture? Well, I think the best approach is 
figuring out how to get the timer capture working, maybe @raiden00pl have found 
his example. Or you can study esp32 capture driver/app and adapt it to stm32. 
BTW, if you want to go this way using GPIO, you can use a free running timer to 
count the time, like I did in the HC-SR04: 
https://acassis.wordpress.com/2017/08/19/creating-hc-sr04-driver-for-nuttx/


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to