LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-28-2012, 05:00 AM   #1
elico
Member
 
Registered: Dec 2011
Posts: 115

Rep: Reputation: Disabled
interrupt service routine


interrupt service routine what are the rules of writing
the code for this ?

does the compiler HELP decribe this ?

In case I am writing c code for a specific embedded
system , how do i know how to write the code for
interrupt service routine ?

Yhanks
elico
 
Old 09-28-2012, 03:37 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,607

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Best source of info for writing any kernel code is:
http://lwn.net/Kernel/LDD3/

See chapter 10 for ISRs. The only special compiler setting is that you can't use any floating point registers in the kernel, since they aren't saved on system calls.
 
1 members found this post helpful.
Old 09-30-2012, 03:17 AM   #3
elico
Member
 
Registered: Dec 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
Many thanks
Elico
 
  


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
[SOLVED] Coding an Interrupt Service Routine for the serial port in Linux !! TheIndependentAquarius Programming 12 01-01-2013 12:36 AM
How to register my interrupt service routine with kernel john_crichton Programming 1 04-09-2007 01:39 PM
Driver interrupt routine problem in Gentoo Linux briek Linux - Kernel 0 08-31-2006 11:57 AM
Interrupt routine... Elric of Grans Programming 2 07-05-2005 07:11 PM
Unable to hit my serial port interrupt routine hguts Linux - Software 1 07-15-2003 07:45 AM


All times are GMT -5. The time now is 04:47 AM.

Main Menu
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