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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-07-24T20:34:53+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=5504&amp;mode</id>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2014-07-24T20:34:53+01:00</updated>
<published>2014-07-24T20:34:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=88782#p88782</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=88782#p88782"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=88782#p88782"><![CDATA[
przeczytaj to dokładnie:<br /><br /><!-- m --><a class="postlink" href="http://mirekk36.blogspot.com/2012/08/eclipse-kopot-z-pstr-przeczytaj.html" >http://mirekk36.blogspot.com/2012/08/ec ... zytaj.html</a><!-- m --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 24 lip 2014, o 20:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[HCOOH]]></name></author>
<updated>2014-07-24T18:42:54+01:00</updated>
<published>2014-07-24T18:42:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=88763#p88763</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=88763#p88763"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=88763#p88763"><![CDATA[
Że tak spytam przy okazji tego tematu... (coby kolejnego nie zakładać)<br /><br />prog_char X jest po prostu odpowiednikiem const char X PROGMEM<br />a na przykład<br />prog_uint16_t Y odpowiednikiem const uint16_t Y PROGMEM ?<br /><br /><br />czy coś podobnego jest z EEMEM?<br /><br /><br /><br />-- --<br /><br />Kiedy zedytuję coś według powyższego schematu dostaję warninga dotyczącego zmiennej powołanej do życia wewnątrz funkcji...<br /><br />Warning1'__progmem__' attribute ignored [-Wattributes]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2954">HCOOH</a> — 24 lip 2014, o 18:42</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ixxl]]></name></author>
<updated>2014-01-12T22:40:21+01:00</updated>
<published>2014-01-12T22:40:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64854#p64854</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64854#p64854"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64854#p64854"><![CDATA[
Powiem ci, ze sie poddalem. W kompilacji w nowym toolchainie nie dość, ze pojawiło się sporo warningów, to po adaptacji kodu, przestała mi działać komunikacja SPI. Stojąc przed wyborem instalacja starego toolchaina 30s czy adaptacja i sprawdzenie kodu pod kątem nowego X godz. wybrałem pierwszą opcje i to była decyzja na miarę szóstki w totka <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=67">ixxl</a> — 12 sty 2014, o 22:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Krauser]]></name></author>
<updated>2014-01-12T19:44:15+01:00</updated>
<published>2014-01-12T19:44:15+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64819#p64819</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64819#p64819"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64819#p64819"><![CDATA[
<div class="quotetitle">ixxl napisał(a):</div><div class="quotecontent"><br />a przecież parse_fun nie jest zmienną<br /></div><br />Dziwnie to wygląda  <img src="https://forum.atnel.pl/images/smilies/icon_mrgreen.gif" alt=":mrgreen:" title="Pan Zielony" /> <br />Tak może dopytam co to jest send_temp czy nie czasem nazwą funkcji wtedy coś takiego się nadaje:<br />[syntax=c]#define ILOSC_KOMEND 12<br />void fun1(char *buf){<br /><br />}<br />void fun2(char *buf){<br /><br />}<br />typedef void (*FunctionPtr) (char *buf);<br />const FunctionPtr parse_fun&#91;ILOSC_KOMEND&#93; PROGMEM = {fun1, fun2};[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=465">Krauser</a> — 12 sty 2014, o 19:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ixxl]]></name></author>
<updated>2014-01-11T20:19:30+01:00</updated>
<published>2014-01-11T20:19:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64656#p64656</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64656#p64656"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64656#p64656"><![CDATA[
Po zmianie i tak utkwilem na problemie z poprzedniego postu <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=67">ixxl</a> — 11 sty 2014, o 20:19</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2014-01-11T18:04:51+01:00</updated>
<published>2014-01-11T18:04:51+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64630#p64630</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64630#p64630"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64630#p64630"><![CDATA[
<div class="quotetitle">ixxl napisał(a):</div><div class="quotecontent"><br />CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologues -Wno-deprecated-declarations -D__PROG_TYPES_COMPAT__Pytanie, gdzie w Eclipsie mogę dokonać tej modyfikacji ? Boje się grzebać &quot;na pałę&quot; , żeby uniknąć kłopotów.<br /></div><br /><br />Piszę z głowy czyli &quot;z niczego&quot; więc może coś pomylę ale ustawia się to jakoś tak:<br />Project/Preferences/C/C++/Settings gdzieś tam będzie zakładka czy coś o nazwie Symbols, dodajesz nowy symbol i tam to wpisujesz ale bez początkowego -D, czyli tylko __PROG_TYPES_COMPAT__<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 11 sty 2014, o 18:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ixxl]]></name></author>
<updated>2014-01-11T17:34:36+01:00</updated>
<published>2014-01-11T17:34:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64619#p64619</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64619#p64619"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64619#p64619"><![CDATA[
Ok, a jak Const zastosować do funkcji:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">void (*parse_fun&#91;ILOSC_KOMEND&#93;) (char *buf) PROGMEM = {<br />      send_temp,<br />};</div><br /><br />bo przy kompilacji wyskakuje:<br /><br />../main.c:86:8: error: variable 'parse_fun' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br /><br />a przecież parse_fun nie jest zmienną.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=67">ixxl</a> — 11 sty 2014, o 17:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2014-01-11T17:10:54+01:00</updated>
<published>2014-01-11T17:10:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64616#p64616</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64616#p64616"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64616#p64616"><![CDATA[
toż ja mówiłem o DEFINICJI zmiennej a nie o argumencie funkcji, jeśli argument funkcji to wystarczy const char<br /><br />[syntax=c]uint16_t fill_tcp_data_p(uint8_t *buf,uint16_t pos, const char *progmem_s )[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 11 sty 2014, o 17:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ixxl]]></name></author>
<updated>2014-01-11T17:08:54+01:00</updated>
<published>2014-01-11T17:08:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64615#p64615</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64615#p64615"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64615#p64615"><![CDATA[
Próbowałem wcześniej, ale chyba coś do mnie nie dociera:<br /><br />linię:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">uint16_t fill_tcp_data_p(uint8_t *buf,uint16_t pos, const prog_char *progmem_s)</div><br /><br />zamieniłem na:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">uint16_t fill_tcp_data_p(uint8_t *buf,uint16_t pos, const char *progmem_s PROGMEM)</div><br /><br />i dostaje warrning:<br /><br />../ip_arp_udp_tcp.c:457:1: warning: '__progmem__' attribute ignored [-Wattributes]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=67">ixxl</a> — 11 sty 2014, o 17:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2014-01-11T16:58:04+01:00</updated>
<published>2014-01-11T16:58:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64610#p64610</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64610#p64610"/>
<title type="html"><![CDATA[Re: prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64610#p64610"><![CDATA[
a co za problem zmienić sobie to na<br /><br />const char zmienna PROGMEM; <br /><br />???<br /><br /><!-- m --><a class="postlink" href="http://mirekk36.blogspot.com/2012/08/eclipse-kopot-z-pstr-przeczytaj.html" >http://mirekk36.blogspot.com/2012/08/ec ... zytaj.html</a><!-- m --><br /><br />i mieć problem z głowy - zamiast sobie wyłączać w makefile i przez to w końcu kiedyś mieć już takiego ZONKA że włosy sobie powyrywasz zanim dojdziesz co jest nie halo <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 11 sty 2014, o 16:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ixxl]]></name></author>
<updated>2014-01-11T16:50:52+01:00</updated>
<published>2014-01-11T16:50:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64609#p64609</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64609#p64609"/>
<title type="html"><![CDATA[prog_char i nowy toolchain]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5504&amp;p=64609#p64609"><![CDATA[
Jakiś czas temu zrobiłem sterownik oparty na stosie TCPIP z Bluebooka. Dzisiaj coś tam w nim zmieniłem i przy kompilacji zonk<br /><br />../ip_arp_udp_tcp.c:457:1: error: unknown type name 'prog_char'<br /><br />Na stronie tuxgraphics znalazłem, że żeby zachować kompatybilność kodu z nowym toolchainem trzeba w pliku<br />Makefile dodać linię:<br /><br />CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologues -Wno-deprecated-declarations -D__PROG_TYPES_COMPAT__<br /><br />Pytanie, gdzie w Eclipsie mogę dokonać tej modyfikacji ? Boje się grzebać &quot;na pałę&quot; , żeby uniknąć kłopotów.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=67">ixxl</a> — 11 sty 2014, o 16:50</p><hr />
]]></content>
</entry>
</feed>