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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2012-03-26T20:03:31+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=945&amp;mode</id>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2012-03-26T20:03:31+01:00</updated>
<published>2012-03-26T20:03:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4630#p4630</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4630#p4630"/>
<title type="html"><![CDATA[Re: Proszę wytłumaczcie jak to działa]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4630#p4630"><![CDATA[
<div class="quotetitle">fidykg napisał(a):</div><div class="quotecontent"><br />Dziękuję. Nie jest to proste do zrozumienia ale bardzo pomocne.<br /></div><br /><br />Ja tylko może gwoli uzupełnienia powiem tak:<br /><br />w sumie to te makra pokazałem głównie z tego powodu żeby zobaczyć jak działa operator sklejania ## ale także może dla jakiegoś uproszczenia....<br /><br />Z drugiej strony ja osobiście zdecydowanie odchodzę od stosowania takich makr, później trzeba je wszędzie za sobą ciągać - a jak gdzieś ich brak czy coś to zaraz setki warningów itp.... W sumie spokojnie można się bez nich obejść i całkiem wygodnie żyć stosując typowe i prostsze makrodefinicje typu:<br /><br />[syntax=c]//---- tylko tu konfigurujemy pin i port<br />#define LED1 (1&lt;&lt;PA2)<br />#define LED1_PORT PORTB<br />#define LED1_DIR DDRB<br />//--------------------------<br /><br />//---------- tu definiujemy sobie jakieś podstawowe makra ------<br />#define LED1_ON LED1_PORT &amp;= ~LED1<br />#define LED1_OFF LED1_PORT |= LED1<br />#define LED1_TOG LED1_PORT ^= LED1[/syntax]<br /><br />i już <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> przynajmniej tutaj nikt nie ma problemów ze zrozumieniem, zawsze szybko i łatwo się to przygotowuje na początku programu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 26 mar 2012, o 20:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fidykg]]></name></author>
<updated>2012-03-26T19:52:35+01:00</updated>
<published>2012-03-26T19:52:35+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4625#p4625</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4625#p4625"/>
<title type="html"><![CDATA[Re: Proszę wytłumaczcie jak to działa]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4625#p4625"><![CDATA[
Dziękuję. Nie jest to proste do zrozumienia ale bardzo pomocne.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=274">fidykg</a> — 26 mar 2012, o 19:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2012-03-26T19:46:04+01:00</updated>
<published>2012-03-26T19:46:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4623#p4623</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4623#p4623"/>
<title type="html"><![CDATA[Re: Proszę wytłumaczcie jak to działa]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4623#p4623"><![CDATA[
<div class="quotetitle">MichalXY napisał(a):</div><div class="quotecontent"><br />Zobacz ten temat na forum: <!-- l --><a class="postlink-local" href="http://forum.atnel.pl/post974.html#p974">post974.html#p974</a><!-- l --><br /><br />Pozdrawiam!<br /></div><br /><br />Dobra podpowiedź - dziękuję <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 26 mar 2012, o 19:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MichalXY]]></name></author>
<updated>2012-03-26T18:37:01+01:00</updated>
<published>2012-03-26T18:37:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4610#p4610</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4610#p4610"/>
<title type="html"><![CDATA[Re: Proszę wytłumaczcie jak to działa]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4610#p4610"><![CDATA[
Zobacz ten temat na forum: <!-- l --><a class="postlink-local" href="http://forum.atnel.pl/post974.html#p974">post974.html#p974</a><!-- l --><br /><br />Pozdrawiam!<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=226">MichalXY</a> — 26 mar 2012, o 18:37</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fidykg]]></name></author>
<updated>2012-03-26T18:22:26+01:00</updated>
<published>2012-03-26T18:22:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4609#p4609</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4609#p4609"/>
<title type="html"><![CDATA[Proszę wytłumaczcie jak to działa]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=945&amp;p=4609#p4609"><![CDATA[
Panowie za nic nie rozumiem jak działają te makra:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">#define PORT(x) SPORT(x)<br />#define SPORT(x) (PORT##x)<br />// *** PIN<br />#define PIN(x) SPIN(x)<br />#define SPIN(x) (PIN##x)<br />// *** DDR<br />#define DDR(x) SDDR(x)<br />#define SDDR(x) (DDR##x)<br /></div><br /><br />Bardzo proszę o proste wyjaśnienie.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=274">fidykg</a> — 26 mar 2012, o 18:22</p><hr />
]]></content>
</entry>
</feed>