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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-05-13T17:05:11+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15367&amp;mode</id>
<entry>
<author><name><![CDATA[rskup]]></name></author>
<updated>2016-05-13T17:05:11+01:00</updated>
<published>2016-05-13T17:05:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160548#p160548</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160548#p160548"/>
<title type="html"><![CDATA[Re: Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160548#p160548"><![CDATA[
Oraz pod koniec artykułu <!-- m --><a class="postlink" href="http://mirekk36.blogspot.com/2011/08/test.html" >http://mirekk36.blogspot.com/2011/08/test.html</a><!-- m -->.<br /><br />-- <br />Pozdrawiam,<br />Robert<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 3 minutach ]</span></strong><br /><br />Była też na ten temat dyskusja na forum <!-- l --><a class="postlink-local" href="http://forum.atnel.pl/topic8061.html" >topic8061.html</a><!-- l --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3427">rskup</a> — 13 maja 2016, o 17:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[anshar]]></name></author>
<updated>2016-05-13T10:26:52+01:00</updated>
<published>2016-05-13T10:26:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160525#p160525</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160525#p160525"/>
<title type="html"><![CDATA[Re: Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160525#p160525"><![CDATA[
Poczytaj: <a href="http://mirekk36.blogspot.co.uk/2012/10/obsuga-klawiszy-drgania-stykow-cd2.html"  class="postlink">http://mirekk36.blogspot.co.uk/2012/10/obsuga-klawiszy-drgania-stykow-cd2.html</a>, zwróć uwagę na ostatnią wersję kodu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7157">anshar</a> — 13 maja 2016, o 10:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[webcoder5]]></name></author>
<updated>2016-05-13T10:18:41+01:00</updated>
<published>2016-05-13T10:18:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160524#p160524</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160524#p160524"/>
<title type="html"><![CDATA[Re: Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160524#p160524"><![CDATA[
tak też chyba właśnie zrobię chociaż to takie trochę mało &quot;elegancki&quot; sposób<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10143">webcoder5</a> — 13 maja 2016, o 10:18</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jarecki]]></name></author>
<updated>2016-05-13T10:14:25+01:00</updated>
<published>2016-05-13T10:14:25+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160523#p160523</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160523#p160523"/>
<title type="html"><![CDATA[Re: Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160523#p160523"><![CDATA[
To zrób tak że jak odbierzesz argument port, wrzuć go do switcha i tam sobie obsłuż każdy port z osobna A, B, C...itd<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2511">Jarecki</a> — 13 maja 2016, o 10:14</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-05-13T08:50:09+01:00</updated>
<published>2016-05-13T08:50:09+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160520#p160520</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160520#p160520"/>
<title type="html"><![CDATA[Re: Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160520#p160520"><![CDATA[
<span style="color: #FF0000"><br />[ a kolega webcoder5 to od kiedy jest z nami na forum, że nie potrafi wstawić prawidłowo listingu ? hmm ? ... masz instrukcję <!-- l --><a class="postlink-local" href="http://forum.atnel.pl/topic7402.html" >topic7402.html</a><!-- l --> na forum, proszę popraw - jeśli wątek ma istnieć ok? mirekk36 ]</span><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 13 maja 2016, o 08:50</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[HomoChemicus]]></name></author>
<updated>2016-05-13T08:02:37+01:00</updated>
<published>2016-05-13T08:02:37+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160519#p160519</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160519#p160519"/>
<title type="html"><![CDATA[Re: Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160519#p160519"><![CDATA[
Makra są dla preprocesora, a on podczas kompilacji zrobił co mu kazałeś.<br />Masz w kodzie zapis PIN(port), więc zgodnie z makrami zamienił to na PINport.<br />Zerknij w BB w dział o kompilacji i preprocesorze.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10470">HomoChemicus</a> — 13 maja 2016, o 08:02</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[webcoder5]]></name></author>
<updated>2016-05-13T08:55:23+01:00</updated>
<published>2016-05-13T07:46:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160518#p160518</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160518#p160518"/>
<title type="html"><![CDATA[Funkcja do sprawdzania stanu na dowolnym pinie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15367&amp;p=160518#p160518"><![CDATA[
Witam, <br />robię bibliotekę do obsługi klawiatury membranowej, i chce zrobić funkcję do sprawdzenia stanu na dowolnym PIN'ie i problem jest tego typu, że jeżeli chodzi o sprawdzenie na którym PIN'ie jest tzw masa nie jest problemem, jednak przekazana przez argument zmienna z adresem PORT'u już nie działa.<br />Najlepiej zobrazuje to kod.<br /><br /><br />[syntax=c]uint8_t checkKey(uint8_t maska, uint8_t port) {<br />if (!(PIN(port) &amp; maska)) {<br />_delay_ms(TIME1);<br />if (!(PIN(port) &amp; maska)) {<br />_delay_ms(TIME2);<br />return 1;<br />}<br />}<br />return 0;<br />}[/syntax]<br /><br />Opis błedu z Eclipsa:<br />[syntax=c]08:43:42 **** Incremental Build of configuration Release for project Key_pad_4x3_biblioteka ****<br />make all <br />'Building file: ../key_pad.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=8000000UL -MMD -MP -MF&quot;key_pad.d&quot; -MT&quot;key_pad.d&quot; -c -o &quot;key_pad.o&quot; &quot;../key_pad.c&quot;<br />../key_pad.c: In function 'checkKey':<br />../key_pad.c:26:1: error: 'PINport' undeclared (first use in this function)<br />../key_pad.c:26:1: note: each undeclared identifier is reported only once for each function it appears in<br />make: *** &#91;key_pad.o&#93; Błąd 1<br /><br />08:43:42 Build Finished (took 181ms)[/syntax]<br /><br />Dodam jeszcze, żę używam takich makr (zresztą z BB)<br />[syntax=c]// Makra upraszczające dostęp do portów<br />// *** PORT<br />#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)[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10143">webcoder5</a> — 13 maja 2016, o 07:46</p><hr />
]]></content>
</entry>
</feed>