Gpio mapping with the banks

Started by akhil, December 18, 2018, 02:40:09 PM

Previous topic - Next topic

akhil

Hello,

     I was trying a header file that maps the gpio pins. Below is the link from where i got the gpio-mmap.h file.
https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/iMX233/gpio-mmap.h

Could someone please help me with the mapping of the banks?
In this, the parameter to the gpio_output is bank and bit numbers and I am not sure where to find it. Any help is greatly appreciated!
Thank you
Akhil

lambda

Search the web for "i.MX23 Applications Processor Reference Manual" or IMX23RM.pdf

Do you bare metal or linux based programming? If you are on linux, I'd strongly recommend to use a kernel driver instead of writing to the registers directly.

HTH,
Harald