Fast GPIO (output) on i.MX6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fast GPIO (output) on i.MX6

1,270 Views
admin
Specialist II

My application need to respond with a digital pulse to event. The response must come within few microseconds from the event itself.

Therefore I think the /sys/gpio is too slow for me.

Can someone point me to documentation how to do it using physical memory access (using /dev/mem)?

Labels (6)
0 Kudos
3 Replies

408 Views
Yuri
NXP Employee
NXP Employee

Please use memtool utility from unit_tests package as an example.

All available sources of utilites in /unit_tests directory may be found in imx-

test and mxc-misc packages.

To get them under LTIB :

$ /ltib -c

Select

   Package list -> imx-test

or

$ ./ltib -p imx-test -m prep

$ ./ltib -p mxc-misc -m prep

After that, <ltib>/rpm/BUILD/misc/test/  directory will contain the sources.

Note, test images may be found in <rootfs>/unit_tests directory.

408 Views
admin
Specialist II

Thanks Yuri for a quick response,

I am rather new to iMX and I am not familiar with ./ltlib

I did find the memtool under unit_tests but I did not understand you explanation regarding getting the sources.

0 Kudos

408 Views
Yuri
NXP Employee
NXP Employee

Please use the Linux User's Guide, in particular - Chapter 3 (Building the Linux Platform).

https://www.freescale.com/webapp/Download?colCode=L3.0.35_4.1.0_LINUX_DOCS&location=null&fpsp=1&Pare...

0 Kudos