<?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>Headers to include for Timer SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11236/headers-to-include-for-timer-sdk</link><description>I&amp;#39;m trying to compile a program on mbed for a BLE Nano, which uses the nRF51822. I&amp;#39;ve included the nRF51822 library by Team Nordic that&amp;#39;s listed on mbed&amp;#39;s library wizard and have gotten GPIO working by including &amp;quot;nrf_gpio.h&amp;quot;. I want to use the application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jan 2016 15:31:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11236/headers-to-include-for-timer-sdk" /><item><title>RE: Headers to include for Timer SDK</title><link>https://devzone.nordicsemi.com/thread/42185?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 15:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aae6e1ff-f3b3-409b-bfc8-b681fa0d6363</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;You can use mBed standard libraries for things like this.&lt;/p&gt;
&lt;p&gt;The &amp;quot;&lt;a href="https://developer.mbed.org/handbook/Ticker"&gt;Ticker&lt;/a&gt;&amp;quot; Library till give you what you need. Here is a quick example i tried out.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;quot;mbed.h&amp;quot;

DigitalOut myled(LED1);
Ticker timer;

void toggle(){
    myled = !myled;
}
int main(){
    timer.attach(&amp;amp;toggle, 1.0);
    while(1){
        }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This toggles led 1 every second.&lt;/p&gt;
&lt;p&gt;-Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Headers to include for Timer SDK</title><link>https://devzone.nordicsemi.com/thread/42184?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 14:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65ce0ea-1217-4157-8193-aa6d554a3291</guid><dc:creator>cccc</dc:creator><description>&lt;p&gt;I&amp;#39;m compiling online. Is there separate documentation for the mbed SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Headers to include for Timer SDK</title><link>https://devzone.nordicsemi.com/thread/42183?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 13:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4760e357-9ddd-4cae-b91a-c546fe50664e</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Are you compiling online with the mBed compiler, or have you exported the project to an offline compiler like Keil? The library you linked to is a part of our normal SDK, not the Mbed SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>