-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Stultz
committed
Apr 26, 2011
1 parent
d8b0f5f
commit 45d8f47
Showing
4 changed files
with
407 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 88d19cf37952a7e1e38b2bf87a00f0e857e63180 | ||
refs/heads/master: ff3ead96d17f47ee70c294a5cc2cce9b61e82f0f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef _LINUX_ALARMTIMER_H | ||
#define _LINUX_ALARMTIMER_H | ||
|
||
#include <linux/time.h> | ||
#include <linux/hrtimer.h> | ||
#include <linux/timerqueue.h> | ||
#include <linux/rtc.h> | ||
|
||
enum alarmtimer_type { | ||
ALARM_REALTIME, | ||
ALARM_BOOTTIME, | ||
|
||
ALARM_NUMTYPE, | ||
}; | ||
|
||
struct alarm { | ||
struct timerqueue_node node; | ||
ktime_t period; | ||
void (*function)(struct alarm *); | ||
enum alarmtimer_type type; | ||
char enabled; | ||
void *data; | ||
}; | ||
|
||
void alarm_init(struct alarm *alarm, enum alarmtimer_type type, | ||
void (*function)(struct alarm *)); | ||
void alarm_start(struct alarm *alarm, ktime_t start, ktime_t period); | ||
void alarm_cancel(struct alarm *alarm); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.