Re: regarding wince
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 7 Jan 2009 08:39:16 -0700
Exactly! If you're already building an OS that runs on your hardware, you
already have a BSP. That BSP will have an interrupt handler (the ISR), in
it. On PXA, it's almost certainly a single routine called something like
OEMHandleInterrupt(), found in the appropriate branch under
\wince600\platform\<your bsp name>. If you need to handle a new interrupt,
you will probably, but not certainly, want to simply add the handling of it
to that routine (customizing the BSP). There are other ways to write
pluggable ISRs, if your existing BSP supports them, but we can't know if
that's possible unless we know what BSP you're using.
As for trying to set an interrupt anyway, chances are that this is the wrong
way to accomplish what you want. When you're writing code for an 8051,
there's no operating system, so you just handle the interrupts you want,
turning on a timer and handling it, if you need to schedule something or
whatever. That's *not* generally the way you'd do things in the presence of
a full operating system. If you tell us *what* you're trying to do, we
might be able to suggest an existing, application-accessible, API that will
do exactly what you want without even knowing there are interrupts involved.
Paul T.
"Sheetal" <Sheetal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D3387FF-ED63-46E7-8A41-C13D4590F04A@xxxxxxxxxxxxxxxx
Hi,
You do need a BSP to handle this. You can not access timer registers
directly from applicaiton.
Point is - if you already have a BSP for PXA, it would be taking care of
all
this. If you don't, then there is a significant work to do.
Regards,
-Sheetal.
"kovendan_24 via PocketPCJunkies.com" wrote:
Yes sir :
I am using WINCE 6.0 and Visual studio 2005. I had worked in
microcontrollers like 8051 and pic 16f877a where we would configure the
timer
registers and ISR as our own. Can I do like that or i need BSP for that
also.
PLease help me.
Paul G. Tobey [eMVP] wrote:
We'd need to know what version of Windows CE you're talking about to
really
begin to answer. Also note that you can't use stand-alone VC++ for
software
development targeting Windows CE. You must have Visual Studio. The
version
of VS that you need depends on the version of Windows CE that you are
targeting.
Further, you would generally *NOT* create your own ISR routines for
timer
interrupts. That's the responsibility of the board support package
portion
of the operating system. The BSP contains the low-level support for the
operations of your specific hardware, including interrupt handling.
Paul T.
hi all :[quoted text clipped - 3 lines]
any
sample VC++ code to do this
--
Message posted via http://www.pocketpcjunkies.com
.
- Follow-Ups:
- Re: regarding wince
- From: kovendan_24 via PocketPCJunkies.com
- Re: regarding wince
- References:
- regarding wince
- From: kovendan_24
- Re: regarding wince
- From: Paul G. Tobey [eMVP]
- Re: regarding wince
- From: kovendan_24 via PocketPCJunkies.com
- Re: regarding wince
- From: Sheetal
- regarding wince
- Prev by Date: flush file buffer?
- Next by Date: Re: flush file buffer?
- Previous by thread: Re: regarding wince
- Next by thread: Re: regarding wince
- Index(es):
Relevant Pages
|