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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-08-02T12:03:45+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15916&amp;mode</id>
<entry>
<author><name><![CDATA[Mellanogaster]]></name></author>
<updated>2016-08-02T12:03:45+01:00</updated>
<published>2016-08-02T12:03:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165268#p165268</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165268#p165268"/>
<title type="html"><![CDATA[Re: Problem ze strukturą w pamięci flash]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165268#p165268"><![CDATA[
O rety!<br />Jakoś mi ten wpis na blogu całkowicie umknął!!! :O<br />Lecę czytać!<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2911">Mellanogaster</a> — 2 sie 2016, o 12:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-08-02T11:58:14+01:00</updated>
<published>2016-08-02T11:58:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165266#p165266</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165266#p165266"/>
<title type="html"><![CDATA[Re: Problem ze strukturą w pamięci flash]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165266#p165266"><![CDATA[
<div class="quotetitle">Mellanogaster napisał(a):</div><div class="quotecontent"><br />. Tylko nie bardzo wiem gdzie<br /></div><br />To nie zaglądasz na mojego bloga ? .... noooo paaanie <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />Poczytaj najpierw to:<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 popróbuj sam zamiast pisać, że nie jesteś pewien <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> mówię ci sporo się nauczysz ... a jeśli dalej będziesz miał problemy to już inne i zadasz kolejne pytanie <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> wtedy łatwiej będzie cię naprowadzić dalej<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 2 sie 2016, o 11:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Mellanogaster]]></name></author>
<updated>2016-08-02T11:52:01+01:00</updated>
<published>2016-08-02T11:52:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165265#p165265</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165265#p165265"/>
<title type="html"><![CDATA[Problem ze strukturą w pamięci flash]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15916&amp;p=165265#p165265"><![CDATA[
Chciałem się zapytać jak rozwiązać następujący problem:<br /><br />[syntax=c]//----------- tablica z poleceniami AT i wskaźnikami funkcji do ich obsługi --------------------<br />TATCMD polecenia_at&#91;AT_CNT&#93; PROGMEM = {<br />        // { at_cmd } , { wskaźnik do funkcji obsługi at },<br />                {&quot;AT&quot;,          at_service},<br />                {&quot;ATI&quot;,         ati_service},<br />                {&quot;AT+RST&quot;,      at_rst_service},<br />                {&quot;AT+IR&quot;,       at_ir_service},<br />                {&quot;AT+LED&quot;,      at_led_service},<br />                {&quot;AT+LCD&quot;,      at_lcd_service},<br />};[/syntax]<br /><br /><br />oraz w pliku &quot;.h&quot;, taką definicję i deklarację:<br /><br /><br />[syntax=c]// definicja typu strukturalnego<br />typedef struct {<br />        char polecenie_at&#91;8&#93;;<br />        int8_t (* at_service)(uint8_t inout, char * params);<br />} TATCMD;<br /> <br /> <br />// deklaracje zmiennych zewnętrznych<br />extern TATCMD polecenia_at&#91;&#93; PROGMEM;[/syntax]<br /><br /><span style="color: #0000FF">In file included from ../komendy_at.c:19:0:<br />../komendy_at.h:29:15: error: variable 'polecenia_at' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br /> extern TATCMD polecenia_at[] PROGMEM;<br />               ^<br />../komendy_at.c:24:14: error: conflicting types for 'polecenia_at'<br /> TATCMD const polecenia_at[AT_CNT] PROGMEM = {<br />              ^<br />In file included from ../komendy_at.c:19:0:<br />../komendy_at.h:29:15: note: previous declaration of 'polecenia_at' was here<br /> extern TATCMD polecenia_at[] PROGMEM;</span><br /><br /><span style="color: #FF0000">[ proszę nie stosować czerwonego koloru w postach - zarezerwowany on jest tylko dla moderatorów ok? <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> - mirekk36 ]</span><br /><br />To się nowszemu toolchain'owi nie podoba i trzeba mu chyba dodać specyfikator <strong>const</strong>. Tylko nie bardzo wiem gdzie i czy to załatwi sprawę <img src="https://forum.atnel.pl/images/smilies/icon_e_confused.gif" alt=":?" title="Boi się" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2911">Mellanogaster</a> — 2 sie 2016, o 11:52</p><hr />
]]></content>
</entry>
</feed>