Page 1 of 1

How to configure the timers to generate the interrupts

Posted: Wed Jun 10, 2015 9:26 am
by Capture
My objective is to press the button for 3s (via RF port )after third second Led start blinking in order to do that i want to configure the timers so can anyone suggest me how to configure the timers in order to generate interrupts after 3 sec, i have tried the scheduler but it seems to be more complex, i do aprreciate all your suggestions and it will be really helpful for me

Re: How to configure the timers to generate the interrupts

Posted: Wed Jun 10, 2015 9:39 am
by lcheminade
Hi,

The switch_polling example in the SDK is showing you how to handle a button being pushed without having to create any timer.

Then you can use the libtdtools/td_tools_led.c library to make a led blink also without having to use any timer as well.

Regards.

Loïc

Re: How to configure the timers to generate the interrupts

Posted: Wed Jun 10, 2015 10:07 am
by Capture
how can i see the output of the switch polling example ?can i set the button in RF port(via putty terminal if i press any button on the keyboard for three seconds then it will make the LED glow) what is meany by debounce timer do i have to set or change any values for that?