<?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>radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26285/radio-notification-sdk-12-3</link><description>I&amp;#39;m working with LEDs in a ble example
I&amp;#39;m calling ble_notification_init() and activate the LED in the callback handler.
I get sd_nvic_ClearPendingIRQ, sd_nvic_SetPriority and sd_nvic_EnableIRQ undefined.
I did: 
 #include &amp;quot;nrf_nvic.h&amp;quot;
#include </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Oct 2017 20:29:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26285/radio-notification-sdk-12-3" /><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103461?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 20:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4dc6bd-be4d-42c8-80f6-e47b9d8891ae</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Many thx. That was the issue.  I had too much faith that ble_radio_notification.c was correct.  All compiles fine now without moving up to a later SDK :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103460?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 20:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c051b4af-a1e7-4f80-bb5b-dffe619df07e</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Also, I notice in ble_radio_notification.c they failed to put the #include for the nvic. You need to put this there it won&amp;#39;t follow it if you just put it in main.c
So add to it:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;quot;nrf_nvic.h&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103459?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 19:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e4060a-c544-4186-8252-74eb6cf1a1d9</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I use Keil uVision but the same is true for all compilers.  The only thing that you likely did wrong was to not include the path for nvic in the C paths in the compiler settings. \components\softdevice\s132\headers&lt;br /&gt;
Double check that and also that you included the radio notification path.
Even then sometimes Keil complains about missing pieces and then I also will include the actual files in the project. Then do a rebuild all target files and you should be good to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103458?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 19:40:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a45f88-6dd8-41c8-8b87-734addbeb3b8</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Oh, I think I get what you are saying.  You haven&amp;#39;t included those API&amp;#39;s it&amp;#39;s just giving an error on compile. Sorry for the misunderstanding.  Looking into it now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103457?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 19:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4001445b-ac8d-4f7f-aa5d-a2422021b0d9</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There is no need to call any of those API&amp;#39;s for radio notfication. It is literally what I put in the answer.&lt;/p&gt;
&lt;p&gt;The (ble_radio_notification_init) api call sets the priority, and the SD enables any irq functionality in the nvic and points the vector to your handler. Also I see no mention of the radio notification IRQ number in the SoC library.  So, I think that is private and not public.  So there would be no way to use those API&amp;#39;s anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103456?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 19:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4490ec4f-6c9a-48ba-a7d1-6e8f1e1a892c</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx ambystomalabs.  That is the code I have but I am still getting sd_nvic_ClearPendingIRQ, sd_nvic_SetPriority and sd_nvic_EnableIRQ undefined when I compile it.&lt;/p&gt;
&lt;p&gt;I did try #include &amp;quot;nrf_nvic.h&amp;quot; but this does not fix it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103453?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 18:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be5f2cab-b77c-4597-932b-46ee3033ed36</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I just checked the 12.3 API reference and everything is the same in 12.3.  So, just use what I put in the answer below. There is no need to clear pending, or assign the IRQ level as you noted above.  That stuff is all part of the API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103455?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 16:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26d2c0da-33d2-483d-9c64-73db9e073123</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I should point out that was done in SDK11, but the API for radio notification hasn&amp;#39;t changed in a while. So should be the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: radio notification sdk 12.3</title><link>https://devzone.nordicsemi.com/thread/103454?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 16:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c67414a5-41c6-4f1e-8bed-9522a47de4e5</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Not sure about which aspect of radio notification you are having trouble with, but here is everything you need.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;       #include &amp;quot;ble_radio_notification.h&amp;quot;

       #define RADIO_NOTIFICATION_IRQ_PRIORITY 2
       #define RADIO_NOTIFICATION_DISTANCE NRF_RADIO_NOTIFICATION_DISTANCE_5500US //There are many options on distance.  Just look in spec
//This is the interrupt handler
    void radio_notification_evt_handler(bool radio_evt)
{

    if (radio_evt)
    {
//This is where radio is about to start. ie, notification distance before
			
} else
{
//This indicates radio has just finished.  No delay here occurs right after radio stops.
}		
}

//This bit goes in main AFTER you have started the SD.
		err_code=ble_radio_notification_init(RADIO_NOTIFICATION_IRQ_PRIORITY,RADIO_NOTIFICATION_DISTANCE,radio_notification_evt_handler);
    APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>