This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Radio Receiver/Transmitter example and timer/counter

Hi everybody,

I am a beginner and I need your advice to start to modify the example of Radio Receiver/Transmitter. Ultimately my goal is to measure the time between the reception of 2 packets on the Transmitter side. The Receiver will just forward the packets. I might need an nice precision by using the HFCLK.

How should I start a counter ? From my understanding the radio is using the HAL driver which is just initializing and starting the HFCLK but doesn't have any part of the driver layer. Should I use the clock driver ? I am sorry I am getting a bit lost here. If you have any advice on tutorial/example that I can use to understand better it will be welcomed.

As a spare question (maybe it should have been the first one): is using the HFCLK will disturb the radio functions?

Thank you very much.

Fabien.

Related