include/delayed_work.h File Reference

Delayed work abstraction. More...

#include <timer_tc.h>
#include <workqueue.h>

Include dependency graph for delayed_work.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  delayed_work
 Delayed work structure. More...

Functions

static void delayed_work_run_us (struct delayed_work *dw, struct workqueue_item *work, uint32_t delay_us)
 Run delayed work in specified amount of us.
void delayed_work_init (struct delayed_work *dw, struct timer *timer, struct workqueue *wq)
 Initialize delayed work structure.


Detailed Description

Delayed work abstraction.

Delayed work abstraction using timer to schedule an item on a timeout and add specified work to a workqueue on timeout.

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

Definition in file delayed_work.h.


Function Documentation

void delayed_work_init ( struct delayed_work dw,
struct timer *  timer,
struct workqueue wq 
)

Initialize delayed work structure.

Parameters:
dw Delayed wortk structure
timer Timer to use for delay
wq Workqueue to add work to

Definition at line 54 of file delayed_work.c.

References delayed_work::timer, timer_init_task(), delayed_work::timer_task, and delayed_work::wq.

Referenced by sdmmc_cd_init(), sdmmc_mcihost_init(), and sdmmc_probe_init().

Here is the call graph for this function:

static void delayed_work_run_us ( struct delayed_work dw,
struct workqueue_item work,
uint32_t  delay_us 
) [inline, static]

Run delayed work in specified amount of us.

Parameters:
dw Delayed work structure
work Workqueue item ro add to workqueue after timeout
delay_us Delay before work is added to workqueue

Definition at line 69 of file delayed_work.h.

References delayed_work::timer, timer_add_task_us(), delayed_work::timer_task, and delayed_work::work.

Referenced by sdmmc_cd_enable().

Here is the call graph for this function:


Generated on Tue Sep 15 10:21:06 2009 for libavr32 by  doxygen 1.5.8