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


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. | |
Delayed work abstraction using timer to schedule an item on a timeout and add specified work to a workqueue on timeout.
Definition in file delayed_work.h.
| void delayed_work_init | ( | struct delayed_work * | dw, | |
| struct timer * | timer, | |||
| struct workqueue * | wq | |||
| ) |
Initialize delayed work structure.
| 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().

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

1.5.8