This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
HI,
There are six gpio modules, among which pin you want to control, take the base address of that and also,
Use struct gpio structure, two members for set and clear the pins,
Ex:
struct gpio gpio_base = (struct gpio *) OMAP34XX_GPIO5_BASE;
configuring gpio to output;
writle(~(GPIO10), &gpio_base->oe); // Enabling the gpio 10 number pin for output
Next now set to 1;
writle(GPIO10, &gpio_base->setdataout);// for set to 1;
and use &gpio_base->cleardataout for making 0;
Try and let me know
Regards,
santosh vastrad
Most of the Community Linux PSP's have an examples directory with GPIO example code as mentioned here:
http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_04.02.00.07_UserGuide#Package_Contents
I have run on other ARM9-based Linux processors but believe the above is similar.
I need to go to u-boot-03.00.00.05\board\ti\am3517evm to configure the detail GPIO,otherwise the GPIO will not work,I do not know if i can make GPIO work only by doing that ,or by some other ways which maybe i do not know ,many thanks