Larry Finger larry.finger@gmail.com wrote:
On 4/10/24 9:13 PM, Ping-Ke Shih wrote:
Larry Finger Larry.Finger@gmail.com wrote:
mdelay(500);
Will it better to use sleep function?
My thoughts were that a sleep function would tie up a CPU, whereas the delay would not. Initially, we tested an msleep(150) statement, but that only gave a 60% success rate, whereas mdelay(500) worked 20 straight tries.
Sorry, I didn't consider the experimental results of msleep(150) and mdelay(500).
My point was busy waiting of mdelay(). I just want to say if msleep(500) is better than mdelay(500).