<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=21218&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-09-02T20:30:20+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=21218&amp;mode</id>
<entry>
<author><name><![CDATA[wiktor14]]></name></author>
<updated>2018-09-02T20:30:20+01:00</updated>
<published>2018-09-02T20:30:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211260#p211260</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211260#p211260"/>
<title type="html"><![CDATA[Re: Czujnik światła - BH_1750]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211260#p211260"><![CDATA[
Dla Atmegi 8 jest coś takiego:<br />[syntax=c]#define ATMEGA_USART<br /> #define UART0_RECEIVE_INTERRUPT   SIG_UART_RECV<br /> #define UART0_TRANSMIT_INTERRUPT  SIG_UART_DATA<br /> #define UART0_STATUS   UCSRA<br /> #define UART0_CONTROL  UCSRB<br /> #define UART0_DATA     UDR<br /> #define UART0_UDRIE    UDRIE[/syntax]<br />W linii 2 i 3 pojawiają się błędy:<br /><ol style="list-style-type: decimal"><li>attempt to use poisoned &quot;SIG_UART_RECV&quot;</li><li>attempt to use poisoned &quot;SIG_UART_DATA&quot;</li></ol> <br /><br />Znalazłem już rozwiązanie. Należy zamienić nazwy starych wektorów nowymi, czyli <br />SIG_UART_RECV -&gt;USART_RXC_vect<br />SIG_UART_DATA -&gt;USART_UDRE_vect<br /><br />Nie wiem, czy był już o tym jakiś temat, ale przydatne informacje można znaleźć tutaj:<br /><a href="http://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html"  class="postlink">http://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html</a><br /><br />ps. W sumie to znalazłem rozwiązanie, ale dzięki za pomoc.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=19852">wiktor14</a> — 2 wrz 2018, o 20:30</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JarekB]]></name></author>
<updated>2018-09-02T20:01:51+01:00</updated>
<published>2018-09-02T20:01:51+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211258#p211258</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211258#p211258"/>
<title type="html"><![CDATA[Re: Czujnik światła - BH_1750]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211258#p211258"><![CDATA[
Na stronce poniżej w tabelce masz zamieszczone stare nazwy wektorów przerwań  i odpowiadające im nowe.<br /><br /><a href="https://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html"  class="postlink">https://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html</a><br /><br />Zamierzchłe cywilizacje które pisały mojego Bradley-a używały starego nazewnictwa.<br />(był to rok 2004 i stare było wtedy jak najbardziej nowe)<br />Stąd często muszę sięgać do tej tabeli żeby skompilować to i owo z zamierzchłego projektu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18188">JarekB</a> — 2 wrz 2018, o 20:01</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wiktor14]]></name></author>
<updated>2018-09-02T18:07:16+01:00</updated>
<published>2018-09-02T18:07:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211254#p211254</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211254#p211254"/>
<title type="html"><![CDATA[Czujnik światła - BH_1750]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21218&amp;p=211254#p211254"><![CDATA[
Część, zakupiłem sobie ostatnio czujnik wymieniony w temacie i chciałem go uruchomić. Wykorzystałem w tym celu gotowy projekt widoczny pod tym linkiem <a href="http://davidegironi.blogspot.com/2013/02/light-intensity-lux-measure-using.html"  class="postlink">http://davidegironi.blogspot.com/2013/02/light-intensity-lux-measure-using.html</a> . Niestety dostałem  dwa błędy i warningi w pliku uart.c(86 i 87 linia). Te dwa błędy to:<br /> error: attempt to use poisoned &quot;SIG_UART_RECV&quot; ,<br />error: attempt to use poisoned &quot;SIG_UART_DATA&quot;.<br />Korzystam z Windows 10 i ecipse photon.<br /> Z tego co znalazłem w internecie to informacja, jakoby &quot;standard&quot; SIG system jest przestarzaly i &quot;zatruty&quot; przez programistów/deweloperów.<br />&quot;The SIG system is obsoleted - and poisoned by the developers&quot;. <br />Rozumiem z tego, że musiałbym użyć jakiś innych &quot;standardów&quot;(tak to sobie roboczo nazwałem).<br />Z tego co doczytałem należałoby użyć zapisów systemu ISC_VECT, ale nie chcę za bardzo kombinować.(tzn. robić coś nie wiedząc co robię).<br />Czy moglibyście mi pomóc zrozumieć o co chodzi z tymi zmianami?(tzn. SIG -&gt; ISC_VECT) i jak się nimi posługiwać?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=19852">wiktor14</a> — 2 wrz 2018, o 18:07</p><hr />
]]></content>
</entry>
</feed>