drivers/led/blink.c File Reference

Common LED helper functions. More...

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

Include dependency graph for blink.c:

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.


Detailed Description

Common LED helper functions.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file blink.c.


Function Documentation

void led_blink_init ( struct blinking_led *  blink,
enum board_led_id  led,
unsigned int  period_ms 
)

Initialize LED blinking state.

Parameters:
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().

Here is the call graph for this function:

void led_blink_start ( struct blinking_led *  blink  ) 

Start blinking a LED.

Parameters:
blink LED blinking state

Definition at line 70 of file blink.c.

References led_deactivate(), softirq_disable(), softirq_enable(), and timer_add_task_us().

Here is the call graph for this function:

void led_blink_stop ( struct blinking_led *  blink  ) 

Stop blinking a LED.

Parameters:
blink LED blinking state

Definition at line 89 of file blink.c.

References softirq_disable(), and softirq_enable().

Here is the call graph for this function:


Generated on Tue Sep 15 10:19:34 2009 for libavr32 by  doxygen 1.5.8