LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 11-01-2013, 05:15 AM   #1
rk1genius
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
Writing User Space Program for AT91SAMA5 to control LEDs


hi,

I am new to embedded linux . I have recently got a board from Atmel SAMA53D3x .
However , no proper documentation is available on how to write applications .

Can anyone tell me how can i write a user space program to modify GPIOs
using buit-in GPIO driver .

Thanks and Regards ,
Rahul
 
Old 11-01-2013, 07:20 AM   #2
elucches
Member
 
Registered: Jan 2011
Posts: 108

Rep: Reputation: 11
For me the easiest way is to enable sysfs in the kernel.
Device Drivers -> GPIO Support -> /sys/class/gpio/... (sysfs interface)
Documentation/gpio.txt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control LEDs from USB Webcam? aurium Linux - Hardware 4 11-30-2016 02:03 PM
Writing a char driver. Sending from user space works, copy_to_user always 0 wedz Linux - Kernel 2 06-11-2013 09:37 PM
how to know which user space process is writing to SD card? sanrio alvares Linux - Newbie 2 09-07-2012 01:03 AM
Help : Process control from Boot loader to User Space vmkaarthik Linux - Newbie 2 06-29-2010 11:23 PM
user need to increase space to run a program its showing not enough space svani Red Hat 4 04-16-2010 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration