From: mandeepsandhu.chd@gmail.com (Mandeep Sandhu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Putting artificial delays in a char driver
Date: Fri, 20 May 2011 12:10:50 +0530 [thread overview]
Message-ID: <BANLkTim7JP=tvCo4VL-04ODuAK8U9X9UsA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTinCSF-4WP40JPv_NuXCtZrj+twpZw@mail.gmail.com>
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 <felixv1986@gmail.com> 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.
>
next prev parent reply other threads:[~2011-05-20 6:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 11:30 Putting artificial delays in a char driver Mandeep Sandhu
2011-05-19 11:51 ` Felix Varghese
2011-05-20 6:40 ` Mandeep Sandhu [this message]
2011-05-19 12:30 ` Joachim Holst
2011-05-20 6:43 ` Mandeep Sandhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTim7JP=tvCo4VL-04ODuAK8U9X9UsA@mail.gmail.com' \
--to=mandeepsandhu.chd@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).