Re: Setting up registers on PXA270?
- From: "Bruce Eitman [eMVP]" <beitman.nospam@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 15:47:01 -0400
A "wad extra" could save you time and money in the long run. Since you
don't have the source, you should open a discussion with the vendor about
your concerns with changing the GPIO settings. Only they have the answers
about their BSP.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
EuroTech Inc.
www.EuroTech.com
"Steve Conner" <connermcsteve@xxxxxxxxxxxxxx> wrote in message
news:282cb8c2-dc6b-4648-8b1c-28bc571554a2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Paul, thanks for the reply, even though I'm not sure I understood
it :-(
I don't believe I own the source code to the BSP. It was developed by
a third party who charge a wad extra for the source. They gave us
stuff that we can build customized OS images from, but I don't know if
I can change the actual code. My driver currently resides as a
subproject in a Platform Builder OS Design project.
I don't use the GPIO as such, but the chip select line I need to use
is an alternate function of a GPIO pin. So I have to reprogram a few
GPIO registers to change the direction and function of this pin. That
only needs done once at startup.
Today I managed to get my driver to actually build with a call to
MmMapIoSpace() in it, which was a start, I suppose. Maybe tomorrow I
can run it and watch it crash without explanation ;-)
steve
On Apr 29, 4:48 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Then that's a characteristics of your Platform/BSP. That's where the
code
to configure the memory region where the DSP will be mapped should
appear.
I'd probably do it in the bootloader myself, but that's not mandatory.
You
could do it in or from a call made in OEMInit() in your platform code.
If you are *also* using GPIO to interface to this hardware, the
initialization of the direction and initial state of those pins should,
to
my way of thinking, also be set up in the same place. Since all of this
stuff is completely specific to your hardware design, you'd never use the
driver anywhere else, but I prefer to have those things set in a central
location where you can document the connection between the schematic for
the
hardware and what you're setting up the processor to do.
.
- References:
- Setting up registers on PXA270?
- From: Steve Conner
- RE: Setting up registers on PXA270?
- From: FoolBlah
- Re: Setting up registers on PXA270?
- From: Steve Conner
- Re: Setting up registers on PXA270?
- From: Paul G. Tobey [eMVP]
- Re: Setting up registers on PXA270?
- From: Steve Conner
- Setting up registers on PXA270?
- Prev by Date: Re: Can't link nk.lib and coredll.lib in kern.exe
- Next by Date: Re: GetVersionEx - dwBuildNumber how to change
- Previous by thread: Re: Setting up registers on PXA270?
- Next by thread: Re: Setting up registers on PXA270?
- Index(es):
Relevant Pages
|