<?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>Disable bluetooth during GPIO interruption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5319/disable-bluetooth-during-gpio-interruption</link><description>Hi! 
 I&amp;#39;m working with a NRF51822 (not a dev card) and I want to disable and enable BLE by switching a switch.
I&amp;#39;ve been looking at this thread and the functions bluetooth_sleep() and bluetooth_wake() work perfectly when used in the while(1) loop like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Feb 2015 14:29:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5319/disable-bluetooth-during-gpio-interruption" /><item><title>RE: Disable bluetooth during GPIO interruption</title><link>https://devzone.nordicsemi.com/thread/18598?ContentTypeID=1</link><pubDate>Mon, 02 Feb 2015 14:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97d919f2-e29f-4f33-9974-db1f77c82a0a</guid><dc:creator>Enero</dc:creator><description>&lt;p&gt;I&amp;#39;ve been rewriting my code, by configuring my different GPIOTE channels (instead of the PORT and by looking at the values of the different inputs and outputs) and using the Low IRQ priority it worked !
Even though BLE seems to crash from time to time, but I think it&amp;#39;s due to another part of my code.&lt;/p&gt;
&lt;p&gt;Thanks Hung !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable bluetooth during GPIO interruption</title><link>https://devzone.nordicsemi.com/thread/18597?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2015 14:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29909b1-78b3-4ab4-99e7-2463cf176196</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hugo,&lt;/p&gt;
&lt;p&gt;Please make sure you have set the GPIOTE_IRQ interrupt priority to APP_IRQ_PRIORITY_HIGH or APP_IRQ_PRIORITY_LOW (level 1 or 3) . The other 2 levels are reserved for the softdevice.&lt;/p&gt;
&lt;p&gt;If the issue remains, please add a debug and find which error code returned after you call the function. (add the breakpoint after you call sd_ble_gap_adv_stop()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>