<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/1482" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-05-28T17:28:47+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/1482</id>

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-05-28T17:28:47+02:00</updated>

		<published>2008-05-28T17:28:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1482&amp;p=5457#p5457</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1482&amp;p=5457#p5457"/>
		<title type="html"><![CDATA[How to add a low priority interrupt]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1482&amp;p=5457#p5457"><![CDATA[
I use<br /><div class="codebox"><p>Code: </p><pre><code>#define UTIL_INTERRUPT&#40;signame&#41;                         \<br />    void signame &#40;void&#41; __attribute__ &#40;&#40;interrupt&#41;&#41;;    \<br />    void signame &#40;void&#41;<br /></code></pre></div><br />and declare the interrupt as<br /><div class="codebox"><p>Code: </p><pre><code>UTIL_INTERRUPT&#40;XXX_vect&#41;<br />&#123;<br />    ... interrupt implementation<br />&#125;<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed May 28, 2008 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-05-26T20:35:50+02:00</updated>

		<published>2008-05-26T20:35:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1482&amp;p=5443#p5443</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1482&amp;p=5443#p5443"/>
		<title type="html"><![CDATA[How to add a low priority interrupt]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1482&amp;p=5443#p5443"><![CDATA[
Hello,<br /><br />I have ATmega8 running with AVR-USB and I need to enable a compare match interrupt on Timer1 for a small project.<br /><br />Knowing the interrupt should start with &quot;sei&quot;, I searched and found this paragraph in the AVR Libc 1.6.1 documentation:<br /><br /> <blockquote class="uncited"><div>The compiler can be instructed to insert an SEI instruction right at the beginning of an interrupt handler by declaring the handler the following way:<br /><br />ISR(XXX_vect, ISR_NOBLOCK)<br />{<br />  ...<br />}<br /><br />where XXX_vect is the name of a valid interrupt vector for the MCU type in question, as explained below. </div></blockquote><br /><br />I declared the interrupt that way in the main.c file, but I got the following error message:<br /><br />  <blockquote class="uncited"><div> static declaration of __vector_3 follows non-static declaration </div></blockquote><br /><br />What could be the cause for the compile error? (The USB driver works great without the interrupt addition, but I need the timer interrupt.)<br /><br />Thanks for your help!<p>Statistics: Posted by Guest — Mon May 26, 2008 8:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
