<?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>Taiyo EYSGCNZWY problem with timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30152/taiyo-eysgcnzwy-problem-with-timers</link><description>Hi!, 
 I&amp;#39;ve made a custom board using Taiyo EYSGCNZWY bluetooth module, to be used as central in a project. To use this module, several changes have to be made in the clock configuration, because it uses 32MHz, instead of 16MHz of EVBoards and other modules</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Feb 2018 12:44:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30152/taiyo-eysgcnzwy-problem-with-timers" /><item><title>RE: Taiyo EYSGCNZWY problem with timers</title><link>https://devzone.nordicsemi.com/thread/120104?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 12:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5aa318c-e45f-4aec-af55-857822f23668</guid><dc:creator>Diego Garc&amp;#237;a</dc:creator><description>&lt;p&gt;Thanks &lt;span&gt;H&amp;aring;kon!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve used a&amp;nbsp;timer to check&amp;nbsp;the release event and now it&amp;#39;s working fine. I think I&amp;#39;ll keep using BSP, because I&amp;#39;m using the startup_event functionality and it&amp;#39;s working as expected.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Taiyo EYSGCNZWY problem with timers</title><link>https://devzone.nordicsemi.com/thread/120087?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 11:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dcb71fa-8dd2-4b4b-bea3-7b58401bf87d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Great to hear that the timer issue is solved.&lt;/p&gt;
&lt;p&gt;Regarding your GPIO-issue: If you are using BSP, I&amp;#39;d recommend moving over to using app_button instead. BSP cannot give multiple events on one button (like _PUSH and _RELEASE), unfortunately.&lt;/p&gt;
&lt;p&gt;The example ble_app_multilink_central in SDK v12 uses the app_button, and you can have a look at that as a starting point.&lt;/p&gt;
&lt;p&gt;Example of init function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void buttons_init(void)
{
   //The array must be static because a pointer to it will be saved in the button handler module.
    static app_button_cfg_t buttons[] =
    {
        {BUTTON_1, false, BUTTON_PULL, button_event_handler},
        {BUTTON_2, false, BUTTON_PULL, button_event_handler},
        /* Add entries here if required */
    };

    uint32_t err_code = app_button_init(buttons, sizeof(buttons) / sizeof(buttons[0]),
                                        BUTTON_DETECTION_DELAY);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how to make the button handler for checking both push and release:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void button_event_handler(uint8_t pin_no, uint8_t button_action)
{
    switch (pin_no)
    {
        case LEDBUTTON_BUTTON_PIN:
            if (button_action == APP_BUTTON_PUSH)
            {
            }
            else if (button_action == APP_BUTTON_RELASE)
            {
            }
            break;

        default:
            APP_ERROR_HANDLER(pin_no);
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Taiyo EYSGCNZWY problem with timers</title><link>https://devzone.nordicsemi.com/thread/119679?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 08:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:965d4706-cbe4-442c-8aad-a1a26d59afca</guid><dc:creator>Diego Garc&amp;#237;a</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve solved this following the timers usage from another example (ble_peripheral/hrs) and now it works. I had not used the macro&amp;nbsp;APP_TIMER_DEF, and I had enabled the timers in sdk_config. Now the timers are working, but I can not get the button release event in the BSP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>