|
but it's not a realTime problem
Hi,
I don’t need a real time performance. But I have to understand the delay reason for the following simple flow :
1)set GPIO to “1”
2) printf(“GPIO value == 1\r\n”)
3)sleep(20) - sleep for 20second
4)set GPIO to “0”
5) printf(“GPIO value == 0\r\n”)
6)sleep(20) - sleep for 20second
5)goto 1)
>> printf message is after GPIO setting !!!
Monitor result:
GPIO value == 1
After few seconds (~4 ) the signal is “1”
….here is the sleep delay
GPIO value == 0
After few seconds (~4 ) the signal is “0”
….here is the sleep delay
so why the GPIO signal is delayed after the printf message ?
Thanks,
|