Re: How handle interrupt notification in a windows ce application
- From: "Bruce Eitman [eMVP]" <bruce.eitman.nospam@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jan 2009 10:18:05 -0500
Okay, so if it is "unattended" -> power state "suspended" then the CPU
typically is not executing instructions.
But, let's say that you are correct (I haven't worked with Windows Mobile
for a while) then you can use InterruptInitialize from your app. You will
need an IRQ value. Only the OEM can give you the IRQ value though. You
could also do this from a driver that you add to the system.
Polling for the keyboard slide will reduce your battery life.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"jackbox" <giacomo.gai@xxxxxxxxx> wrote in message
news:a613d18a-f9c0-4d7a-87df-539fddaf5ca0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 28 Gen, 20:50, "Bruce Eitman [eMVP]"
<bruce.eitman.nos...@xxxxxxxxxxxxxxxxxxx> wrote:
Not to mention, your application isn't running if the device is actually
sleeping. When the device is sleeping, the cpu **stops** running
instructions.
What actually has to happen is that the device needs to be set up with a
wake source. That wake source is whatever input the keyboard provides when
it slides
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOGhttp://geekswithblogs.net/bruceeitman
EuroTech Inc.www.EuroTech.com
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in messagenews:epeIWvXgJHA.4560@xxxxxxxxxxxxxxxxxxxxxxx
You'll have to know a whole lot more about how the hardware and the
board
support package for it works to know what you can, or should, do. What
device is it?
Paul T.
"jackbox" <giacomo....@xxxxxxxxx> wrote in message
news:3df7e71b-2c23-4c45-a32f-09a17332b961@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, i'm newbie in application development for windows ce.
I've developed a little application that wakes up my pda (change power
state to on) when the hardware keyboard has been slided out (I'm able
to check this event by checking the sixth bit on a gpio register).
At this time, my application has a thread that sleep for some time,
then check the register value and change power to on if necessary, and
then go back to sleep. I know this solution is not very efficient, so
i'm looking for a different solution: I would be notified when CPU (a
samsung S3C2440) signals an external interrupt (somewhere i've read
that an external interrupt signal should be raised when keyboard has
been slided out... but i'm not sure of this).
My question is: how can I do this in my application, or I have to
write a driver?
I've read that i should use InterruptInitialize function (but I
suppose that this can be used only in driver's code), but how can I
translate external interrupt (EINT14) to a SYSINTR?
Thaks in advance (... and sorry for my english)
Sorry, I think I've used wrong words. My pda (as other pda's based on
windows mobile) when is on and user do not interact with the system
for some time (and other events like incoming callings don't occurs),
change his power state acording to:
power state "on" -> power state "backlight off" -> power state
"unattended" -> power state "suspended"
and even if, power is in "suspended" state, my application still
running.
So i don't have to really wake up my pda, but just change power state
to "on" when a certain event occurs (keyboard slided out) when the pda
is awake (even if in "suspended" power state).
.
- Follow-Ups:
- References:
- How handle interrupt notification in a windows ce application
- From: jackbox
- Re: How handle interrupt notification in a windows ce application
- From: Paul G. Tobey [eMVP]
- Re: How handle interrupt notification in a windows ce application
- From: Bruce Eitman [eMVP]
- Re: How handle interrupt notification in a windows ce application
- From: jackbox
- How handle interrupt notification in a windows ce application
- Prev by Date: Re: How handle interrupt notification in a windows ce application
- Next by Date: Re: How handle interrupt notification in a windows ce application
- Previous by thread: Re: How handle interrupt notification in a windows ce application
- Next by thread: Re: How handle interrupt notification in a windows ce application
- Index(es):
Relevant Pages
|