This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I would like to use ERAD and GPIO for profiling. For ERAD, I would be following the procedure given in the example. For GPIO, I intend to set GPIO, call the function to be profiled, reset the GPIO and then observe the pulse on a DSO. In the case of O2 optimization, will there be any effect on the order of execution (as otherwise the profiling result will not be accurate)?
Ganesh,
The driver functions treat the GPIO data registers as volatile, so optimization should not affect the order of execution as you intend it.
Ibukun