<?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>nrf_drv_timer_ms_to_ticks() does check for overflow, (Timer1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80292/nrf_drv_timer_ms_to_ticks-does-check-for-overflow-timer1</link><description>hi, 
 I&amp;#39;m working on the Ble_app_uart example where i need to enable, TWI, PWM, and Ble, as a transceiver. with s12 SD and nrf52832. 
 Issue 
 I need to detect the button sequence, for example, single press, double press, long press, etc. I use timer1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Oct 2021 13:02:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80292/nrf_drv_timer_ms_to_ticks-does-check-for-overflow-timer1" /><item><title>RE: nrf_drv_timer_ms_to_ticks() does check for overflow, (Timer1)</title><link>https://devzone.nordicsemi.com/thread/332634?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97410fde-0108-4f81-84a1-43f8542890a4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]the function does not hold for a specific period and enables the flag.[/quote]
&lt;p&gt;Could you explain this some more? What do you mean by does not hold?&lt;/p&gt;
[quote user=""]I need to detect the button sequence, for example, single press, double press, long press, etc[/quote]
&lt;p&gt;You might want to take a look at the bsp library, it supports single press/push and long press/push.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>