From: Michael R. <re...@eu...> - 2005-05-04 10:33:40
|
Hi Julien, >>I think it would be a good idea to support both methods: busy-line >>checking and a fixed delay. We've encountered situations in the past, >>where waiting caused lcd4linux to eat up too much CPU cycles (especially >>on slower systems). > Funny ! It's precisely because of that reason I reverted to the fixed > delay method : The busy-line checking was eating too much CPU.... > But it might come from my crappy MediaGX-based test box. Strange, but may come from the ndelay(200) in the busy-checking loop. You should anyway implement some fallback mechanisms (like, do not wait forever, fall back to normal delay if a certain amount of busy-checks failed, and so on). Take a look at the HD44780 driver, you'll find a very sophisticated busy-checking there. bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |