How to read&write to a register???

vinoth
hello 

Am using win ce6.0  with the omapl138 as the processor with vs2005. i want
to know how to read and write to a register??
i already tried some steps with MmMapIoSpace but its returning a 0 as the
output. could anybody tell me a simple c program that read and write access
to the register??
I saw the forums listed in this site but when i cant able to run those
codes.

Regards
Vinoth.

domodom
Hello, 
It's not so easy. Under Wince 6.0, it is no more possible to access to a
register from an application without to use a dedicated driver.
You can find some informations here about how to access te registers :
http://www.friendlyarm.net/forum/topic/1004
Domodom

vinoth
Hello Domodom

I can't able to c the simple c or c++ code that i can understand .can you
giv an eg that tells me a how to map to the physical address.

domodom
Everything is explained in the thread. What more do you want to know ?
domodom

vinoth
I cant able to execute as a stand alone program . so is it possible to
check the gpio pins as the separate project . since i can get the .exe and
i ll dump it and i can check easily. so domdon pls provide the simple
coding that execute as the stand alone with the necessary functions.

Regards
vinoth