Hi,
We're using a Zoom EVM for the OMAP-L138, WinCE 6.0. I see from gpio.h and gpiodefs.h how to set/get a gpio pin for direction and level, but I don't see how to configure a pin to be gpio when that particular pin could be one of several things from the schematic. From the GPIO User's Guide:
2.9 Initialization
The following steps are required to configure the GPIO module after a hardware reset:
1. Perform the necessary device pin multiplexing setup (see your device-specific data manual).
2. Program the Power and Sleep Controller (PSC) to enable the GPIO module. For details on the PSC,
see see your device-specific System Reference Guide.
3. Program the direction, data, and interrupt control registers to set the configuration of the desired GPIO
pins (described in this document).
The GPIO module is now ready to perform data transactions.
************
My Platform Builder is configured for GPIO, and there were no pinmux issues on build.
The PSC Manual is confusing in that I can't tell how to "program" it to enable the GPIO module. It looks like it's always ON, can't tell.
I can set direction and level, and see those with the get functions, so I think the registers are working. When I use a scope, I get high when it should be low. So there seems to be a disconnect between the registers and the hardware. Something isn't turned ON.
What am I missing here? How to turn the hardware ON?
Thanks, DM