LinuxQuestions.org
Visit Jeremy's Blog.
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 06-05-2010, 04:23 AM   #1
ligang
LQ Newbie
 
Registered: Apr 2010
Posts: 13

Rep: Reputation: 1
Unhappy Where is the GPIO function?


Where is the macro? or header file, if i want to call
write_gpio_bit_clear(),
write_gpio_bit_set() and
read_gpio_bit()?
Thanks!!!
 
Old 06-05-2010, 04:34 AM   #2
fruttenboel
Member
 
Registered: Jul 2008
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by ligang View Post
Where is the macro? or header file, if i want to call
write_gpio_bit_clear(),
write_gpio_bit_set() and
read_gpio_bit()?
Thanks!!!
you mean something like this: http://fruttenboel.verhoeven272.nl/mocka/iowrd.html ?

Copy mine or create your own...
 
0 members found this post helpful.
Old 06-08-2010, 12:46 AM   #3
ligang
LQ Newbie
 
Registered: Apr 2010
Posts: 13

Original Poster
Rep: Reputation: 1
Wink

In my Linux 2.6.24.4/asm-arm/arch-s3c2410/gpio.h, i found the functions
gpio_get_value(port),
gpio_set_value(port,value)
which are the same with read_gpio_bit and write_gpio_bit_clear/set .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GPIO interfacing tomas632 Programming 1 01-13-2010 07:25 PM
Using GPIO (from kernel GPIO support) in MY application DannyGilbert Linux - Kernel 2 03-16-2009 08:52 AM
gpio board FrollyC Linux - General 4 02-09-2008 09:38 AM
Gpio rash_f Linux - Newbie 1 08-31-2006 02:14 PM
GPIO testing rash_f Linux - Hardware 0 08-31-2006 03:22 AM


All times are GMT -5. The time now is 04:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration