#include <led.h>
#include <softirq.h>
#include <app/timer.h>

Go to the source code of this file.
Functions | |
| void | led_blink_start (struct blinking_led *blink) |
| Start blinking a LED. | |
| void | led_blink_stop (struct blinking_led *blink) |
| Stop blinking a LED. | |
| void | led_blink_init (struct blinking_led *blink, enum board_led_id led, unsigned int period_ms) |
| Initialize LED blinking state. | |
Definition in file blink.c.
| void led_blink_init | ( | struct blinking_led * | blink, | |
| enum board_led_id | led, | |||
| unsigned int | period_ms | |||
| ) |
Initialize LED blinking state.
| blink | LED blinking state to be initialized | |
| led | The ID of the blinking LED | |
| period_ms | Time between each toggle in milliseconds |
Definition at line 103 of file blink.c.
References timer_init_task().

| void led_blink_start | ( | struct blinking_led * | blink | ) |
Start blinking a LED.
| blink | LED blinking state |
Definition at line 70 of file blink.c.
References led_deactivate(), softirq_disable(), softirq_enable(), and timer_add_task_us().

| void led_blink_stop | ( | struct blinking_led * | blink | ) |
Stop blinking a LED.
| blink | LED blinking state |
Definition at line 89 of file blink.c.
References softirq_disable(), and softirq_enable().

1.5.8