Re: wince gpio

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Are the PXA270 Alternate Function registers set up correctly?

"MBuehrer" <MBuehrer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:14F861C3-D326-4297-93AA-33999622F953@xxxxxxxxxxxxxxxx
We simply want to toggle a GPIO pin on a PXA270 platform with WinCE5.0.
Can
anybody tell us whats wrong with this Code?

PHYSICAL_ADDRESS paGpio={BULVERDE_BASE_REG_PA_GPIO};
pReg=(BULVERDE_GPIO *)MmMapIoSpace(paGpio,sizeof(BULVERDE_GPIO),FALSE);
pReg->gpsr2=1<<27; // set GPIO91
if (pReg->gplr2&(1<<27)) val=1;
else val=0;


The port is configured as output and current low. Writing to GPSR2 should
toggle this to high, but a readback via GPLR2 never shows the expected
value
(nor does the connected LED blink).

Thanks in advance for any hint on this

Michael Buehrer



.



Relevant Pages

  • Re: Mesa port
    ... On Tue, 11 Nov 2003, Lutz Kittler wrote: ... > whats going on with ... > depend on this port. ... > So portupgrade brings up many errors. ...
    (freebsd-questions)
  • Re: problem with KDE 3.4.3
    ... > ner. ... > Any ideas whats wrong? ... The clean build machine isn't seeing any problems: ... Make sure to clean out the port ...
    (freebsd-questions)
  • Re: Serial port and XP
    ... > When I initialise a port for a GPS handset I use the following code> that works fine under 9x versions of windows, but fails with a 'can't> initialise communications port' with NT versions. ... 2K and XP are quit different from 9x and ME abaout the serial interface. ... I like to suggest that You look into a running Application and see whats going on there an than remove/replace unwanted code. ...
    (comp.lang.pascal.delphi.misc)
  • multiple receive locations
    ... whats the concept of receive port with several locations? ... I tried to add several locations to single port, but is seems that only the ... but I must create port for each queue with its own primary location if I ... exception if Biztalk suspends it and starts next location...). ...
    (microsoft.public.biztalk.server)
  • multiple receive locations
    ... whats the concept of receive port with several locations? ... I tried to add several locations to single port, but is seems that only the ... but I must create port for each queue with its own primary location if I ... exception if Biztalk suspends it and starts next location...). ...
    (microsoft.public.biztalk.general)