2018-12-12 02:10 PM
2018-12-12 09:28 PM
You can refer https://github.com/lukdut/HC-SR04-Stm32 and just do the conversion based on your board.
Hope this may help you!