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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-11-07T17:39:06+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=9049&amp;mode</id>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2014-11-07T17:39:06+01:00</updated>
<published>2014-11-07T17:39:06+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=102833#p102833</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=102833#p102833"/>
<title type="html"><![CDATA[Re: eeprom struktura i]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=102833#p102833"><![CDATA[
Kompilator wyraźnie pisze: deklaracje są sprzeczne.<br />Spróbuj zmodyfikować tę linię w common.h:<br /><div class="quotetitle">jacekr napisał(a):</div><div class="quotecontent"><br />[syntax=c]extern TCFG pgm_cfg PROGMEM;            // dane w pamięci FLASH[/syntax]<br /></div><br />tak:<br /><br />[syntax=c]extern const TCFG pgm_cfg PROGMEM;            // dane w pamięci FLASH[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 7 lis 2014, o 17:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jacekr]]></name></author>
<updated>2014-11-07T15:39:50+01:00</updated>
<published>2014-11-07T15:39:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=102825#p102825</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=102825#p102825"/>
<title type="html"><![CDATA[Re: eeprom struktura i]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=102825#p102825"><![CDATA[
dziękuje za odpowiedzi - pomogły <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br /><br />mam jeszcze 1 problem<br /><br /><br />w common.c<br />[syntax=cpp]void copy_pgm_to_ram( void ) {<br />memcpy_P( &amp;ram_cfg, &amp;pgm_cfg, sizeof(ram_cfg) );<br />}[/syntax]<br />w common.h<br />[syntax=cpp]extern TCFG pgm_cfg PROGMEM;// dane w pamięci FLASH[/syntax]<br /><br />w main.c<br />[syntax=cpp]const TCFG pgm_cfg __attribute__((__progmem__)) = { (cos tu jest) }[/syntax]<br /><br />eclipse w common.h i main podkreśla mi na czerwono pisząc :<br /><br />../main.c:25: error: conflicting type qualifiers for 'pgm_cfg'<br />../common.h:40: error: previous declaration of 'pgm_cfg' was here<br /><br />ale jeżeli wpisze w main.c<br />[syntax=cpp]TCFG pgm_cfg PROGMEM = {[/syntax]<br />to nie mam błędów<br />i gdzie szukać &quot;dziury w całym&quot;<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2339">jacekr</a> — 7 lis 2014, o 15:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[doman89]]></name></author>
<updated>2014-11-01T14:58:03+01:00</updated>
<published>2014-11-01T14:58:03+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101813#p101813</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101813#p101813"/>
<title type="html"><![CDATA[Re: eeprom struktura i]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101813#p101813"><![CDATA[
Dokładnie.<br /><br />Zapamiętaj, że makrodefinicja #define TEKST NOWY_TEKST<br /><br />Podczas kompilacji wszędzie gdzie spotka w Twoim kodzie TEKST, czyli identyczny łańcuch znaków to zamieni go na tekst który masz w miejscu NOWY_TEKST.<br /><br /><span style="color: #0000FF">z Niebieskim pozdRowieniem,<br />Doman89</span><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3271">doman89</a> — 1 lis 2014, o 14:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gumeni]]></name></author>
<updated>2014-11-01T13:21:32+01:00</updated>
<published>2014-11-01T13:21:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101809#p101809</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101809#p101809"/>
<title type="html"><![CDATA[Re: eeprom struktura i]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101809#p101809"><![CDATA[
To:<br />[syntax=c]const TCFG pgm_cfg __attribute__((__progmem__)) = {<br />                    pip&#91;&#93;,<br />                    IR_BACKLIGHT,<br />    };[/syntax]  <br />po zamianie przez preprocesor będzie wyglądać tak:<br />[syntax=c]const TCFG pgm_cfg __attribute__((__progmem__)) = {<br />                    = {17,17,17,15};,<br />                    IR_BACKLIGHT,<br />    };[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3088">gumeni</a> — 1 lis 2014, o 13:21</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jacekr]]></name></author>
<updated>2014-11-01T13:16:32+01:00</updated>
<published>2014-11-01T13:16:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101808#p101808</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101808#p101808"/>
<title type="html"><![CDATA[eeprom struktura i]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9049&amp;p=101808#p101808"><![CDATA[
witam<br /><br />mam problem z strukturami po lekcji avr-eeprom---struktury-w-c.html<br />wiem ze coś robię źle ale nie wiem co ?<br />chodzi o zmienna &quot;pip&quot; która musi być w tablicy<br /><br />w main.c mam :<br />[syntax=cpp]const TCFG pgm_cfg __attribute__((__progmem__)) = {<br />pip&#91;&#93;,<br />IR_BACKLIGHT,<br />};[/syntax]<br />w common.h mam<br />[syntax=cpp]typedef struct {<br />uint8_t pip&#91;4&#93; ;<br />uint8_t ir_backlight;<br />} TCFG;<br /><br />// ustawienia domylne (fabryczne)<br /><br />#define pip&#91;&#93; = {17,17,17,15};<br />#define IR_BACKLIGHT 10[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2339">jacekr</a> — 1 lis 2014, o 13:16</p><hr />
]]></content>
</entry>
</feed>