<?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>Question about bsp event handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73262/question-about-bsp-event-handler</link><description>Hi, all 
 I am studying the bsp part while looking at the example of &amp;#39;ble_app_uart&amp;#39;. (pca10056) 
 The difference between &amp;#39;bsp_event_handler&amp;#39; and &amp;#39;bsp_button_event_handler&amp;#39; is confusing. 
 Does the &amp;#39;bsp_button_event_handler&amp;#39; become callback due to &amp;#39;nrf_drv_gpiote_in_event_enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Mar 2021 14:40:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73262/question-about-bsp-event-handler" /><item><title>RE: Question about bsp event handler</title><link>https://devzone.nordicsemi.com/thread/302173?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f5c7a1-655c-4a49-9c24-fbc49a0eebcf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Iyrics,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsp_event_handler is the function for handling events from the&amp;nbsp;&lt;a title="Software Development Kit" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_bsp_btn_ble.html?resultof=%22%42%53%50%22%20%22%62%73%70%22%20%22%42%4c%45%22%20%22%62%6c%65%22%20%22%42%75%74%74%6f%6e%22%20%22%62%75%74%74%6f%6e%22%20%22%4d%6f%64%75%6c%65%22%20%22%6d%6f%64%75%6c%22%20"&gt;&amp;nbsp;BSP BLE Button Module&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsp_button_event_handler is the function for handling button events.&amp;nbsp;If you look at the function bsp_button_event_handler() in bsp.c, this is actually the app_button callback.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""] is the app_timer created by &amp;#39;app_button_init&amp;#39; continuously recognizing the press status of the button?[/quote]
&lt;p&gt;yes.&amp;nbsp;&lt;span&gt;app_button_init() in bsp.c uses the value calculated by APP_TIMER_TICKS to calculate the delay from a GPIOTE event until a button is reported as pushed (detection_delay).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>