<?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=11920&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-06-06T22:39:13+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=11920&amp;mode</id>
<entry>
<author><name><![CDATA[Federerer]]></name></author>
<updated>2015-06-06T22:39:13+01:00</updated>
<published>2015-06-06T22:39:13+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131113#p131113</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131113#p131113"/>
<title type="html"><![CDATA[Re: Funkcja nieblokująca]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131113#p131113"><![CDATA[
Ja jeszcze stosowałem wariant z przekazywaniem oprócz czasu wskaźnika na funkcję, która ma się wykonać po danym czasie.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4440">Federerer</a> — 6 cze 2015, o 22:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RafPe]]></name></author>
<updated>2015-06-06T20:16:11+01:00</updated>
<published>2015-06-06T20:16:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131095#p131095</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131095#p131095"/>
<title type="html"><![CDATA[Re: Funkcja nieblokująca]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131095#p131095"><![CDATA[
<div class="quotetitle">multitask napisał(a):</div><div class="quotecontent"><br />muszę poczekać na odpowiedz 2sek(nie blokująco)<br /></div><br /><br />Musisz poczekac 2 sek czy musisz poczekac i zobaczyc czy dostales &quot;ok&quot; ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4344">RafPe</a> — 6 cze 2015, o 20:16</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[icer_cmg]]></name></author>
<updated>2015-06-05T20:33:56+01:00</updated>
<published>2015-06-05T20:33:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131035#p131035</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131035#p131035"/>
<title type="html"><![CDATA[Re: Funkcja nieblokująca]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131035#p131035"><![CDATA[
Ustaw sobie <strong>timer programowy</strong> cykający co 100ms (może być co 10ms), powołaj cobie zmienną<br /> [syntax=c]uint8_t timer_2s = 0)[/syntax]. <br />W timerze wpisz<br /> [syntax=c]if (timer_2s) { timer_2s++;}[/syntax] <br /> W programie głównym:<br />  - Wysyłasz po uart 'ab'<br />  - timer_2s ustawiasz na 1<br />  -sprawdzasz timer_2s i jeśli jest osiągnięty to zerujesz: [syntax=c]if (timer_2s&gt;20) //lub &gt;200{  //wykonywane operacje<br />timer_2s=0}[/syntax]<br /><br /><br />Tak więc jeśli timer_2s == 0 to nie pracuje, jeśli ustawisz go na &quot;1&quot;, to ruszy. W pętli głównej sprawdzasz czy timer_2s odliczył minimalny czas odczekania. Timer_2s trzeba czasem ustawić na &quot;0&quot;, by nie pracował cały czas (co dwie sekundy wykonywał się warunek timera_2s), lecz by użyć go tylko wtedy, kiedy potrzebujemy.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1636">icer_cmg</a> — 5 cze 2015, o 20:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[icer_cmg]]></name></author>
<updated>2015-06-05T20:11:52+01:00</updated>
<published>2015-06-05T20:11:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131031#p131031</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131031#p131031"/>
<title type="html"><![CDATA[Re: Funkcja nieblokująca]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131031#p131031"><![CDATA[
Ustaw sobie <strong>timer programowy</strong> cykający co 100ms (może być co 10ms), powołaj cobie zmienną [syntax=c]uint8_t timer_2s = 20 //(200 dla timera 10ms)[/syntax]. W timerze wpisz [syntax=c]if (timer_2s) { timer_2s--;}[/syntax]  W programie głównym ustaw [syntax=c]if (!timer_2s){  //wykonywane operacje<br />timer_2s=20 //lub 200}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1636">icer_cmg</a> — 5 cze 2015, o 20:11</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[morswin]]></name></author>
<updated>2015-06-05T20:08:41+01:00</updated>
<published>2015-06-05T20:08:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131028#p131028</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131028#p131028"/>
<title type="html"><![CDATA[Re: Funkcja nieblokująca]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11920&amp;p=131028#p131028"><![CDATA[
Timer programowy i flagi.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=964">morswin</a> — 5 cze 2015, o 20:08</p><hr />
]]></content>
</entry>
</feed>