<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF5 SDK ATOMIC FIFO SECOND EXAMPLE ISSUE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58846/nrf5-sdk-atomic-fifo-second-example-issue</link><description>Hi , 
 I can not understand or there is something wrong in this example here ; 
 He defined &amp;quot; point_fifo&amp;quot; but initialized &amp;quot;my_fifo&amp;quot; , How does this work ? 
 https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_atfifo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Mar 2020 14:00:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58846/nrf5-sdk-atomic-fifo-second-example-issue" /><item><title>RE: NRF5 SDK ATOMIC FIFO SECOND EXAMPLE ISSUE</title><link>https://devzone.nordicsemi.com/thread/238855?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 14:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2661e010-5350-42f6-898b-9e547a4af7e7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This looks like typo in the guide.&lt;/p&gt;
&lt;p&gt;You can look at the ble_app_uart example in the SDK:&lt;/p&gt;
&lt;p&gt;SDK\examples\ble_peripheral\ble_app_uart.&lt;/p&gt;
&lt;p&gt;NRF_ATFIFO_DEF() is used in nrf_fstorage_sd.c for fstorage (writing to flash). I don&amp;#39;t think this is actually much used, but you can see what it looks like when you initialize it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe that the guide should say:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;struct point
{
     int x, y;
}point_t;
NRF_ATFIFO_DEF(point_fifo, point_t, 16);
int main(void)
{
    NRF_ATFIFO_INIT(point_fifo);
    nrf_atfifo_context_t context;
    point_t * point;
    if(NULL != (point = nrf_atfifo_item_alloc(point_fifo, &amp;amp;context)))
    {&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll report this internally. Thank you for reporting to us!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>