Re: Help in getting application to access I/O space
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 1 Aug 2006 09:44:42 -0700
What sort of a processor is it? If it's x86, there's a separate set of
instructions that access it and you could write your own versions of _inp()
and _outp() to read and write. If it's not an x86, then I/O = memory, so
you'll want to use MmMapIoSpace() with appropriate parameters. Based on
that address, I'm guessing x86.
A twist is that it's also possible that your platform uses bus-relative
addresses, in which case BusTransBusAddrToVirtual() would be more
appropriate. Are you sure you shouldn't be doing this in a driver and not
the application?
Paul T.
"Andy Purcell" <Andy_Purcell@xxxxxxxxxxx> wrote in message
news:%23dbEJiYtGHA.1512@xxxxxxxxxxxxxxxxxxxxxxx
I need to write CE app to manipulate my CPU GPIO outputs. The documentation
for the CPU registers that control GPIO signals says that the registers are
mapped as offsets into "I/O Space". The base address is 0xF0.
So the question is - how can my application access these registers?
- can I use WRITE_PORT_ULONG()?
- must I map this space using some API?
.
- Follow-Ups:
- Re: Help in getting application to access I/O space
- From: Andy Purcell
- Re: Help in getting application to access I/O space
- References:
- Help in getting application to access I/O space
- From: Andy Purcell
- Help in getting application to access I/O space
- Prev by Date: Help in getting application to access I/O space
- Next by Date: Re: Help in getting application to access I/O space
- Previous by thread: Help in getting application to access I/O space
- Next by thread: Re: Help in getting application to access I/O space
- Index(es):
Relevant Pages
|