<?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>ISR action following wakeup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59710/isr-action-following-wakeup</link><description>Hi, 
 I&amp;#39;m attempting to wake the nrf52480 from it&amp;#39;s sleep mode using a button input and sequentially send the command normally associated with that button without requiring a second press. I am a bit new to ISR usage, so forgive me if this is a rather</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Apr 2020 23:25:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59710/isr-action-following-wakeup" /><item><title>RE: ISR action following wakeup</title><link>https://devzone.nordicsemi.com/thread/247658?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 23:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf6218a6-b9c1-401c-b52e-b26269253855</guid><dc:creator>dr9</dc:creator><description>&lt;p&gt;Thanks, Edvin.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ended up checking all button status within buttons_leds_init(&amp;amp;erase_bonds); and setting a bool flag for the one whose depression resulted in the wake event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Appreciate the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISR action following wakeup</title><link>https://devzone.nordicsemi.com/thread/242702?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 12:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf310ad-3252-437d-8833-0f8d67dc2585</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;if you want to check what button that woke you up, I believe the easiest approach would be to check the button states on startup.&lt;/p&gt;
&lt;p&gt;Some of our BLE examples support something called bonding, but most of our examples have this function in main():&lt;/p&gt;
&lt;p&gt;buttons_leds_init(&amp;amp;erase_bonds);&lt;/p&gt;
&lt;p&gt;What this does is to check whether a certain button is pressed on startup, to decide whether or not to delete bonding information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;E.g. the ble_app_uart example has this functionality implemented. Please check out how it checks the button press and forwards that information to the erase_bonds variable. Perhaps&amp;nbsp;you can use something similar to this in your application?&lt;/p&gt;
&lt;p&gt;NB: By default, there is nothing telling the application what pin that actually woke up the nRF.&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>