LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-30-2014, 08:36 AM   #1
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
How to set GPIO output in/during AT91bootstrap?


Hi everyone,


I'm using Arm9 Atmel Sam9G25 with this Startup sequence : RomBOOT -> At91Boostrap -> U-Boot-> Linux

Because i want to measure the startup time I'd like to set a GPIO output when entering Bootstrap to 1 and setting the same Pin to 0 when entering the userspace.

I already implemented the sserspace setting but unfortunately I can't figure out, how to set those GPIO Pins in Bootstrap. Can anyone help me where to have an eye on ? Those search engines didn't help.

thank you
 
Old 01-31-2014, 02:35 AM   #2
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Original Poster
Rep: Reputation: Disabled
I've found out putting the pio_set_value(< pin name >, < output level >); as first in the hw_init function in the boards .C file sets the output successfully.
 
  


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 set Emacs default for Python output blastradius Programming 1 03-15-2013 03:44 PM
set variable from output of apg takayama Programming 1 12-11-2011 05:27 AM
GPIO access on a Fujitsu Mini-ITX Industrial Mainboard, PCI Driver for GPIO mechatrix Linux - Embedded & Single-board computer 3 11-20-2011 03:57 PM
[SOLVED] redirecting output of set -x xerox Linux - Newbie 7 03-21-2011 02:03 AM
Using GPIO (from kernel GPIO support) in MY application DannyGilbert Linux - Kernel 2 03-16-2009 07:52 AM

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

All times are GMT -5. The time now is 03:40 PM.

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