From mboxrd@z Thu Jan 1 00:00:00 1970 From: mandeepsandhu.chd@gmail.com (Mandeep Sandhu) Date: Fri, 20 May 2011 12:10:50 +0530 Subject: Putting artificial delays in a char driver In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Thanks Felix. This looks better than putting a delay in the ISR's execution path. I've implemented a simple fxn to be called by a timer after 10ms and it looks fine..as in I can see the LED blink! :) Thanks, -mandeep On Thu, May 19, 2011 at 5:21 PM, Felix Varghese wrote: > Hi, > > I can't say I have understood your scenario completely. Maybe you > could turn your LED on when you want to (say in the ISR) and then > start a kernel timer of sufficient duration. In the timer expiry > handler, you could switch it off. By adjusting the duration, you could > make sure that the LED stays on long enough to be visible. > > Regards, > Felix. >