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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-12-05T03:45:35+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=10282&amp;mode</id>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2015-12-05T03:45:35+01:00</updated>
<published>2015-12-05T03:45:35+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=147095#p147095</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=147095#p147095"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=147095#p147095"><![CDATA[
Na forum masz to niejednokrotnie dodatkowo wyjaśniane<br /><!-- l --><a class="postlink-local" href="http://forum.atnel.pl/post974.html#p974" >post974.html#p974</a><!-- l --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 5 gru 2015, o 03:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[iwi]]></name></author>
<updated>2015-12-05T02:42:09+01:00</updated>
<published>2015-12-05T02:42:09+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=147094#p147094</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=147094#p147094"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=147094#p147094"><![CDATA[
Witajcie.<br /><br />Mam prośbę może ktoś mi wytłumaczyć po co taki zapis.<br />[syntax=c]#define PORT(x) XPORT(x)<br />#define XPORT(x) (PORT##x)<br />// *** PIN<br />#define PIN(x) XPIN(x)<br />#define XPIN(x) (PIN##x)<br />// *** DDR<br />#define DDR(x) XDDR(x)<br />#define XDDR(x) (DDR##x)[/syntax]<br /><br />co on nam daje poza tym, że zagmatwane to jest totalnie - godzinę próbuję to rozwikłać, w niebieskiej jest opisane, ale dalej nie rozumiem.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1988">iwi</a> — 5 gru 2015, o 02:42</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-02-01T19:24:20+01:00</updated>
<published>2015-02-01T19:24:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116804#p116804</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116804#p116804"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116804#p116804"><![CDATA[
TAK,TAK,TAK !!<br />Już tak właśnie jest, bo wcześniej były bascomy,  notatniki i takie tam a teraz jest ECLIPSE.<br />A co do tego, że się &quot;sam&quot; wstawił to taki sarkazm - moja i tylko moja wina/niedopatrzenie jak wyskoczyły jakieś errory. <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 1 lut 2015, o 19:24</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2015-02-01T19:18:26+01:00</updated>
<published>2015-02-01T19:18:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116802#p116802</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116802#p116802"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116802#p116802"><![CDATA[
<div class="quotetitle">JVC napisał(a):</div><div class="quotecontent"><br />Mirku, no to takie, to jest &quot;cholerstwo&quot;, że zawsze i samo się ustawi nie tam gdzie człek by chciał<br /></div><br />Mówię ci - spróbuj na spokojnie podziałać i poklikać - zobaczyć jaka jest zasada wstawiania automatycznie tych nawiasów. Zobaczysz, że jak zrozumiesz, zaskoczysz - to nie będziesz mówił że to &quot;cholerstwo&quot; a przyzwyczaisz się do tego tak mocno, że jak sięgniesz po inny koci edytor, który nie będzie miał takiej opcji - to wtedy powiesz - dopiero co za &quot;cholerstwo&quot; że nie ma tej opcji automatycznych nawiasów jak w eclipse <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> — 1 lut 2015, o 19:18</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-02-01T19:15:49+01:00</updated>
<published>2015-02-01T19:15:49+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116801#p116801</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116801#p116801"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116801#p116801"><![CDATA[
Mirku, no to takie, to jest &quot;cholerstwo&quot;, że zawsze i samo się ustawi nie tam gdzie człek by chciał.<br />Ale była to dla mnie niezła szkółka, bo od niedawna bije się z avr-ami i jeszcze za Twoja nieświadomą namową w Eclipsie,<br />za co jeszcze raz dziękuję. Uważam, że robisz dobrą robotę tworząc różnej maści bardzo wartościowe poradniki, które to mnie naprowadziły na właściwy trop. Dobra chyba wystarczy.<br /><br />Pozdrawiam JVC<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 1 lut 2015, o 19:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2015-02-01T18:08:23+01:00</updated>
<published>2015-02-01T18:08:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116794#p116794</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116794#p116794"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116794#p116794"><![CDATA[
<div class="quotetitle">JVC napisał(a):</div><div class="quotecontent"><br />się sam wziął i ustawił<br /></div><br />o żesz w mordkę ... to coś strasznego ... jakieś inteligentne nawiasy klamrowe się u ciebie narodziły ? i same się rozmnażają ? <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />nie ma to jak zwalać winę na wszystko i wszystkich wokoło - tylko nie na samego siebie <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> — 1 lut 2015, o 18:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-02-01T18:06:01+01:00</updated>
<published>2015-02-01T18:06:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116793#p116793</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116793#p116793"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116793#p116793"><![CDATA[
Temat już chyba definitywnie rozwiązany. Nawias klamrowy nie w tym miejscu &quot;się sam wziął i ustawił&quot;.<br />Dziękuję Wszystkim zainteresowanym.<br /><br />Pozdrawiam JVC<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 1 lut 2015, o 18:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-01-31T15:17:59+01:00</updated>
<published>2015-01-31T15:17:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116653#p116653</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116653#p116653"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=116653#p116653"><![CDATA[
Poradziłem sobie z większością problemów ale został mi jeden z timerem: <br />// procedura obsługi przerwania ICP1<br />ISR(TIMER1_CAPT_vect)<br />wywala mi błąd   &quot;previous declaration of '__vector_11' was here&quot; w(przykład przeklepany z BB):<br />[syntax=c]/* IR_test_1<br /> * ir_decode.c<br />  */<br />#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &quot;ir_decode.h&quot;<br /><br />volatile uint8_t address; // adres RC5<br />volatile uint8_t command; // komenda RC5<br />volatile uint8_t toggle_bit; //bit TOGGLE<br /><br />// flaga = 1 - informuje, że został odebrany nowy kod z pilota IR<br />// po odczytaniu danych ze zmiennech należy wyzerować flabę aby<br />// zostały przyjęte nowy kody z pilota<br />volatile uint8_t Ir_key_press_flag;<br /><br />volatile uint8_t rc5cnt;<br /><br />int main(void) {<br />DDRB |= (1&lt;&lt;PB0);<br />PORTB |= (1&lt;&lt;PB0);<br />void ir_init(){//;<br /><br />DDR(IR_PORT) &amp;= ~IR_IN;  // pin jako wejscie<br />PORT(IR_PORT) |= IR_IN;     // podciąg do plusa<br />#if TIMER1_PRESCALER == 1<br />TCCR1B |= (1&lt;&lt;CS10);// TIMER1 / 1<br />#endif<br />#if TIMER1_PRESCALER == 8<br />TCCR1B |= (1&lt;&lt;CS11);// TIMER1 / 8<br />#endif<br />#if TIMER1_PRESCALER == 64<br />TCCR1B |= (1&lt;&lt;CS11)|(1&lt;&lt;CS10);// TIMER1 / 64<br />#endif<br />#if TIMER1_PRESCALER == 256<br />TCCR1B |= (1&lt;&lt;CS12);// TIMER1 / 256<br />#endif<br /><br />TCCR1B &amp;= ~(1&lt;&lt;ICES1);//Zbocze opadające na ICP<br />rc5cnt = 0;// zerowanie licznika wystepujących zboczy<br />TIMSK1  |= (1&lt;&lt;ICIE1);// przerwanie od ICP<br /><br />Ir_key_press_flag =0;// zerowanie flagi otrzymania kodu RC5<br />}<br /><br />// procedura obsługi przerwania ICP1<br />ISR(TIMER1_CAPT_vect) {/* &lt;&lt; TUTAJ WYWALA KROPĘ Z BŁĘDEM:Multiple markers at this line<br />                           *      - previous declaration of '__vector_10' was here<br />                           *      - static declaration of '__vector_10' follows non-static <br />                           *       declaration<br />                                   */<br />#define FRAME_RESTART 0<br />#define FRAME_OK 1<br />#define FRAME_END 2<br />#define FRAME_ERROR 3<br /><br />static uint16_t LastCapture;<br />uint16_t PulseWidth;<br />static uint8_t IrPulseCount;<br />static uint16_t IrData;<br />static uint8_t frame_status;<br /><br />PulseWidth = ICR1 - LastCapture;<br />LastCapture = ICR1;<br /><br />TCCR1B &amp;= (1&lt;&lt;ICES1); //zmiana zbocza wyzalającego na przeciwny<br /><br />if (PulseWidth &gt; MAX_BIT) rc5cnt = 0;<br />if (rc5cnt &gt; 0 ) frame_status = FRAME_OK;<br />if (rc5cnt== 0 ) {<br />IrData = 0;<br />IrPulseCount = 0;<br />TCCR1B |= (1&lt;&lt;ICES1);<br />rc5cnt++;<br />frame_status = FRAME_END;<br />}<br /><br />if(frame_status == FRAME_OK) {<br />// gdy zakłucenia (szpilki) - RESTART<br />if(PulseWidth&lt;MIN_HALF_BIT) frame_status = FRAME_RESTART;<br />// gdy błąd ramki danych(może inny standard niż RC5) - RESTART<br />if(PulseWidth &gt; MAX_BIT) frame_status = FRAME_RESTART;<br /><br />if(frame_status == FRAME_OK) {<br />if(PulseWidth &gt; MAX_HALF_BIT) rc5cnt++;<br /><br />if(rc5cnt &gt; 1)<br />if((rc5cnt%2) == 0) {<br />IrData = IrData &lt;&lt; 1;<br />if((TCCR1B &amp;(1&lt;&lt;ICES1))) IrData |= 0x0001;<br />IrPulseCount++;\<br /><br />if(IrPulseCount &gt; 12) {<br />if(Ir_key_press_flag == 0) {<br />command = IrData &amp; 0b0000000000111111;<br />address = (IrData &amp; 0b0000011111000000) &gt;&gt; 6;<br />toggle_bit = (IrData &amp; 0b0000100000000000) &gt;&gt; 11;<br />}<br />frame_status = FRAME_RESTART;<br />Ir_key_press_flag = 1;<br />}<br />}<br />rc5cnt++;<br />}<br />}<br /><br />if (frame_status == FRAME_RESTART) {<br />rc5cnt = 0;<br />TCCR1B &amp;= ~ (1&lt;&lt;ICES1);<br />}<br /><br />}<br />}[/syntax]<br /><br />Proszę o jakieś podpowiedzi.<br /><br />P.S. Jak zakomentuje przerwanie to program kompiluje się poprawnie i po wgraniu do procesora wyświetla poprawnie &quot;Odebrane&quot;.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 31 sty 2015, o 15:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-01-18T14:20:39+01:00</updated>
<published>2015-01-18T14:20:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114738#p114738</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114738#p114738"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114738#p114738"><![CDATA[
Mam jeszcze problem z lcd44780.c - dużo &quot;robaków&quot;<br />np.:<br />[syntax=c]DDR(LCD_D7PORT)|= (1&lt;&lt;LCD_D7);<br />DDR(LCD_D6PORT)|= (1&lt;&lt;LCD_D6);<br />DDR(LCD_D5PORT)|= (1&lt;&lt;LCD_D5);<br />DDR(LCD_D4PORT)|= (1&lt;&lt;LCD_D4);[/syntax]<br /><br />przerobiłem lcd44780.h tak:<br />[syntax=c]//-----------------------------------------------------------------------------------------------------------<br />    // *** Obsługa wyświetlaczy alfanumerycznych zgodnych z HD44780 ***<br />    //<br />    // - Sterowanie: tryb 4-bitowy<br />    // - Dowolne przypisanie każdego sygnału sterującego do dowolnego pinu mikrokontrolera<br />    // - Praca z pinem RW podłączonym do GND lub do mikrokontrolera (sprawdzanie BusyFLAG - szybkie operacje LCD)<br />    //<br />    // Pliki                        : lcd44780.c , lcd44780.h<br />    // Mikrokontrolery      : Atmel AVR<br />    // Kompilator           : avr-gcc<br />    // Źródło                    : http://www.atnel.pl<br />    // Data                         : marzec 2010<br />    // Autor                        : Mirosław Kardaś<br />    //----------------------------------------------------------------------------------------------------------<br />    // Rozmiar kodu z załączonymi tylko funkcjami: lcd_init(), lcd_cls(), lcd_str()                               (RW&lt;--&gt;GND)<br />    // dla procesorów AVR: 240 bajtów !!!<br />    // Rozmiar kodu z załączonymi tylko funkcjami: lcd_init(), lcd_cls(), lcd_str(), lcd_locate() (RW&lt;--&gt;GND)<br />    // dla procesorów AVR: 254 bajty<br />    // Rozmiar kodu z załączonymi tylko funkcjami: lcd_init(), lcd_cls(), lcd_str()                               (RW&lt;--&gt;uC)<br />    // dla procesorów AVR: 326 bajtów !!!<br />    // Rozmiar kodu z załączonymi tylko funkcjami: lcd_init(), lcd_cls(), lcd_str(), lcd_locate() (RW&lt;--&gt;uC)<br />    // dla procesorów AVR: 340 bajtów<br />    //-----------------------------------------------------------------------------------------------------------<br />    #ifndef LCD_H_<br />    #define LCD_H_<br />    //----------------------------------------------------------------------------------------<br />    //<br />    //              Parametry pracy sterownika<br />    //<br />    //----------------------------------------------------------------------------------------<br />    // rozdzielczość wyświetlacza LCD (wiersze/kolumny)<br />    #define LCD_Y 2         // ilość wierszy wyświetlacza LCD<br />    #define LCD_X 16        // ilość kolumn wyświetlacza LCD<br /><br />    // tu ustalamy za pomocą zera lub jedynki czy sterujemy pinem RW<br />    //      0 - pin RW podłączony na stałe do GND<br />    //      1 - pin RW podłączony do mikrokontrolera<br />    #define USE_RW 0<br /><br />    //----------------------------------------------------------------------------------------<br />    //<br />    //              Ustawienia sprzętowe połączeń sterownika z mikrokontrolerem<br />    //<br />    //----------------------------------------------------------------------------------------<br />//PD6 &quot;RW&quot; nc<br />//PD7 LED LCD<br />//PD5 PD&quot;E&quot;<br />//PD4 &quot;RS&quot;<br />//PD0 &quot;D04&quot;<br />//PD1 &quot;D05&quot;<br />//PD2 &quot;D06&quot;<br />//PD3 &quot;D07&quot;<br />// tu konfigurujemy port i piny do jakich podłączymy linie D7..D4 LCD<br />    #define LCD_D7PORT  D<br />    #define LCD_D7 3<br />    #define LCD_D6PORT  D<br />    #define LCD_D6 2<br />    #define LCD_D5PORT  D<br />    #define LCD_D5 1<br />    #define LCD_D4PORT  D<br />    #define LCD_D4 0<br /><br /><br />    // tu definiujemy piny procesora do których podłączamy sygnały RS,RW, E<br />    #define LCD_RSPORT D<br />    #define LCD_RS 4<br /><br />    #define LCD_RWPORT D<br />    #define LCD_RW 6<br /><br />    #define LCD_EPORT D<br />    #define LCD_E 5<br />    //------------------------------------------------  koniec ustawień sprzętowych ---------------<br /><br /><br /><br />    #endif /* LCD_H_ */[/syntax] <br /><br />Co znowu skopałem?<br />Ustawienia Eclipasa jak powinny, zmieniałem model klocka, przełaczałem workspace, szukam miejsca gdzie może być jakiś zonk i nic.<br />Nadal &quot;...undeclared (first use in this function)&quot;<br />[syntax=c]../lcd44780.c: In function 'data_dir_out':<br />../lcd44780.c:51: warning: implicit declaration of function 'DDR'<br />../lcd44780.c:51: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:51: error: (Each undeclared identifier is reported only once<br />../lcd44780.c:51: error: for each function it appears in.)<br />../lcd44780.c:51: error: lvalue required as left operand of assignment<br />../lcd44780.c:52: error: lvalue required as left operand of assignment<br />../lcd44780.c:53: error: lvalue required as left operand of assignment<br />../lcd44780.c:54: error: lvalue required as left operand of assignment<br />../lcd44780.c: In function 'data_dir_in':<br />../lcd44780.c:64: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:64: error: lvalue required as left operand of assignment<br />../lcd44780.c:65: error: lvalue required as left operand of assignment<br />../lcd44780.c:66: error: lvalue required as left operand of assignment<br />../lcd44780.c:67: error: lvalue required as left operand of assignment<br />../lcd44780.c: In function 'lcd_sendHalf':<br />../lcd44780.c:77: warning: implicit declaration of function 'PORT'<br />../lcd44780.c:77: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:77: error: lvalue required as left operand of assignment<br />../lcd44780.c:77: error: lvalue required as left operand of assignment<br />../lcd44780.c:78: error: lvalue required as left operand of assignment<br />../lcd44780.c:78: error: lvalue required as left operand of assignment<br />../lcd44780.c:79: error: lvalue required as left operand of assignment<br />../lcd44780.c:79: error: lvalue required as left operand of assignment<br />../lcd44780.c:80: error: lvalue required as left operand of assignment<br />../lcd44780.c:80: error: lvalue required as left operand of assignment<br />../lcd44780.c: In function '_lcd_write_byte':<br />../lcd44780.c:116: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:116: error: lvalue required as left operand of assignment<br />../lcd44780.c:118: error: lvalue required as left operand of assignment<br />../lcd44780.c:120: error: lvalue required as left operand of assignment<br />../lcd44780.c:122: error: lvalue required as left operand of assignment<br />../lcd44780.c: In function 'lcd_write_cmd':<br />../lcd44780.c:179: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:179: error: lvalue required as left operand of assignment<br />../lcd44780.c: In function 'lcd_write_data':<br />../lcd44780.c:190: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:190: error: lvalue required as left operand of assignment<br />../lcd44780.c: In function 'lcd_cls':<br />../lcd44780.c:404: error: 'LCDC_CLS' undeclared (first use in this function)<br />../lcd44780.c: In function 'lcd_init':<br />../lcd44780.c:486: error: 'D' undeclared (first use in this function)<br />../lcd44780.c:486: error: lvalue required as left operand of assignment<br />../lcd44780.c:487: error: lvalue required as left operand of assignment<br />../lcd44780.c:492: error: lvalue required as left operand of assignment<br />../lcd44780.c:493: error: lvalue required as left operand of assignment<br />../lcd44780.c:499: error: lvalue required as left operand of assignment<br />../lcd44780.c:500: error: lvalue required as left operand of assignment<br />../lcd44780.c:506: error: lvalue required as left operand of assignment<br />../lcd44780.c:508: error: lvalue required as left operand of assignment<br />../lcd44780.c:511: error: lvalue required as left operand of assignment<br />../lcd44780.c:513: error: lvalue required as left operand of assignment<br />../lcd44780.c:516: error: lvalue required as left operand of assignment<br />../lcd44780.c:518: error: lvalue required as left operand of assignment<br />../lcd44780.c:521: error: lvalue required as left operand of assignment<br />../lcd44780.c:523: error: lvalue required as left operand of assignment<br />../lcd44780.c:528: error: 'LCDC_FUNC' undeclared (first use in this function)<br />../lcd44780.c:528: error: 'LCDC_FUNC4B' undeclared (first use in this function)<br />../lcd44780.c:528: error: 'LCDC_FUNC2L' undeclared (first use in this function)<br />../lcd44780.c:528: error: 'LCDC_FUNC5x7' undeclared (first use in this function)<br />../lcd44780.c:530: error: 'LCDC_ONOFF' undeclared (first use in this function)<br />../lcd44780.c:530: error: 'LCDC_CURSOROFF' undeclared (first use in this function)<br />../lcd44780.c:532: error: 'LCDC_DISPLAYON' undeclared (first use in this function)<br />../lcd44780.c:534: error: 'LCDC_ENTRY' undeclared (first use in this function)<br />../lcd44780.c:534: error: 'LCDC_ENTRYR' undeclared (first use in this function)<br />make: *** &#91;lcd44780.o&#93; Error 1[/syntax]<br />JVC<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 18 sty 2015, o 14:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-01-18T13:11:57+01:00</updated>
<published>2015-01-18T13:11:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114734#p114734</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114734#p114734"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114734#p114734"><![CDATA[
<div class="quotetitle">Elektronik napisał(a):</div><div class="quotecontent"><br />Witam<br /><br />Czegoś nie rozumiem, chcesz używać biblioteki z BB do obsługi podczerwieni. Więc powinieneś wiedzieć, że odbiornik musi być połączony z pinem który ma możliwość pracy jako ICP, wiec powinieneś go podłączyć do pinu PB0, a ty go podłączasz do pinu PD6.<br /><br />Pozdrawiam<br />Elektronik<br /></div><br /><br />Powstało jakieś niezrozumienie bo ja mam tak:<br />[syntax=c]/* ustawienia HARDWARE */<br />#define IR_PORT B<br />#define IR_PIN 0<br />#define IR_IN (1&lt;&lt;IR_PIN)<br />/* ustawienia HARDWARE */[/syntax]<br />Używam &quot;plików&quot; z BB ale rzecz jasna po modyfikacjach do mojego klocka(bo taki się trafił).<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 18 sty 2015, o 13:11</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Elektronik]]></name></author>
<updated>2015-01-18T12:58:46+01:00</updated>
<published>2015-01-18T12:58:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114732#p114732</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114732#p114732"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114732#p114732"><![CDATA[
Witam<br /><br />Czegoś nie rozumiem, chcesz używać biblioteki z BB do obsługi podczerwieni. Więc powinieneś wiedzieć, że odbiornik musi być połączony z pinem który ma możliwość pracy jako ICP, wiec powinieneś go podłączyć do pinu PB0, a ty go podłączasz do pinu PD6.<br /><br />Pozdrawiam<br />Elektronik<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=858">Elektronik</a> — 18 sty 2015, o 12:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-01-18T12:53:26+01:00</updated>
<published>2015-01-18T12:53:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114731#p114731</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114731#p114731"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114731#p114731"><![CDATA[
Pozmieniane raczej wszystko jak trzeba dla m168. Błąd był spowodowany literówką. Dziękuję za zainteresowanie i sugestie.<br />Zostało jeszcze kilka problemów zgłoszonych przez Eclipsa w main ale to chyba zaraz przewalczę.<br /><br />Dziękuję jeszcze raz Wszystkim.<br /><br />Pozdrawiam JVC<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 18 sty 2015, o 12:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Elektronik]]></name></author>
<updated>2015-01-18T12:44:33+01:00</updated>
<published>2015-01-18T12:44:33+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114728#p114728</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114728#p114728"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114728#p114728"><![CDATA[
Witam<br /><br />Proponuję przepiąć odbiornik podczerwieni do pinu PB0. Oraz wprowadzić stosowne zmiany w programie.<br /><br />Pozdrawiam<br />Elektronik<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=858">Elektronik</a> — 18 sty 2015, o 12:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2015-01-18T12:43:00+01:00</updated>
<published>2015-01-18T12:43:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114727#p114727</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114727#p114727"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114727#p114727"><![CDATA[
A czytał kolega w tejże książce o tym jak się buduje ... jak się KOFIGURUJE tę bibliotekę ? bo to pytanie tak trochę pokazuje, że działasz jakby w oderwaniu od książki. Masz tam to opisane .... i stety czy niestety - ale warto to przeczytać, jak działa i dokładnie JAKI pin procka jest odpowiedzialny za odbiór, mając na uwadze, że test z DVD był robiony na m32 a ty bierzesz przecież m168 .... no to chyba trzeba coś zmienić ? hmmm ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 18 sty 2015, o 12:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matw]]></name></author>
<updated>2015-01-18T12:46:56+01:00</updated>
<published>2015-01-18T12:39:47+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114725#p114725</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114725#p114725"/>
<title type="html"><![CDATA[Re: 'DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114725#p114725"><![CDATA[
Jesli działasz na kodzie z książki fabrycznie dla Atmegi32 masz definicje:<br />[syntax=c]#define IR_PORT D<br />#define IR_PIN 6<br />#define IR_IN (1&lt;&lt;IR_PIN)[/syntax]<br /><span style="color: #FFBFFF">A twoja Atmega168 nie posiada w ogóle portu D, więc.... chyba już wiesz dlaczego kompilator zgłasza błąd przy próbie ustawienia rejestru kierunku DDRD.</span><br /><br /><br />Edit: Oczywiście mój błąd, nie wiem co mi strzeliło do głowy z tym portem D, który oczywiście jest w twojej Atmedze. Przepraszam za wprowadzenie w błąd.<br />I widzę już, że @Mirekk36 podał rozwiązanie <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2394">matw</a> — 18 sty 2015, o 12:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JVC]]></name></author>
<updated>2015-01-18T12:46:01+01:00</updated>
<published>2015-01-18T12:29:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114722#p114722</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114722#p114722"/>
<title type="html"><![CDATA['DDRx' undeclared (first use in this function)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10282&amp;p=114722#p114722"><![CDATA[
Witam wszystkich na forum - to jest mój pierwszy post.<br /><br />Zaczynam zabawę z AVR-ami i za namową Guru przesiadłem się na Eclipsa oraz staram się wykonywać  programiki z poradników - kilka już działa.<br />Obecnie chciałem zrobić przykład z BB Odbiór kodów RC5.<br />Wklepałem wszystko chyba jak trzeba, przerobiłem na m168 i został mi jeden błąd którego nie wiem jak się pozbyć.<br />Problem to:<br />[syntax=c]DDR(IR_PORT) &amp;= ~IR_IN;  // pin jako wejcie[/syntax]<br />[syntax=c]make all <br />Building file: ../ir_decode.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=atmega168 -DF_CPU=1000000UL -MMD -MP -MF&quot;ir_decode.d&quot; -MT&quot;ir_decode.d&quot; -c -o &quot;ir_decode.o&quot; &quot;../ir_decode.c&quot;<br />../ir_decode.c: In function 'ir_init':<br />../ir_decode.c:31: error: 'DDRx' undeclared (first use in this function)<br />../ir_decode.c:31: error: (Each undeclared identifier is reported only once<br />../ir_decode.c:31: error: for each function it appears in.)<br />make: *** &#91;ir_decode.o&#93; Error 1[/syntax]<br />Proszę o jakieś podpowiedzi.<br /><br />Problem rozwiązany - literówka w pliku ir_decode.h<br />było:<br />#define DDR(X) XDDR(x)<br />#define XDDR(X) (DDR##x)<br />a powinno tak:<br />#define DDR(x) XDDR(x)<br />#define XDDR(x) (DDR##x)<br /><br /><img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7779">JVC</a> — 18 sty 2015, o 12:29</p><hr />
]]></content>
</entry>
</feed>