Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have compiled and installed the 2.6 kernel on an ARM board. I am using the ARM mini2440 board.

I would like to know if there is already a way to access the General Purpose I/O port pins?

Or will I have to do ioctl() and access them directly from the memory?

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

Use the sysfs control files in /sys/class/gpio. The following links will hopefully be useful to helping you get started:

http://www.avrfreaks.net/wiki/index.php/Documentation:Linux/GPIO

Have seen reports of this article on the Beagle Board also working with the mini2440: http://blog.makezine.com/archive/2009/02/blinking_leds_with_the_beagle_board.html

In your Linux kernel documentation, look at Documentation/gpio.txt too.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.