diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-22 21:12:49 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-22 21:12:49 +0300 |
| commit | ae2843b3999f619da3cd4d6a37e488527dc481ac (patch) | |
| tree | 24e1514362e93e9c08986bbaccb5e9afeed88a65 /include | |
| parent | c633c81ed598a4c895ffe74084d0f774ce7a8397 (diff) | |
| download | kmi-ae2843b3999f619da3cd4d6a37e488527dc481ac.tar.gz kmi-ae2843b3999f619da3cd4d6a37e488527dc481ac.zip | |
start testing out doxygen
Diffstat (limited to 'include')
| -rw-r--r-- | include/apos/timer.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/include/apos/timer.h b/include/apos/timer.h index b506c45..85cd5bc 100644 --- a/include/apos/timer.h +++ b/include/apos/timer.h @@ -1,6 +1,11 @@ #ifndef APOS_TIMER_H #define APOS_TIMER_H +/** + * @file timer.h + * Timer handling. + */ + #include <apos/types.h> /* GCC will compile uint64_t even on 32bit platforms, just with some runtime @@ -17,11 +22,29 @@ struct timer { ticks_t ticks; }; +/** + * Initialize timers. + * + * @param fdt Pointer to global FDT + */ void init_timer(const void *fdt); -/* set up timer interrupt ticks from now */ +/** + * Set up timer interrupt ticks from now. + * + * @param tid Thread id for callback. + * @param ticks Ticks from \ref current_ticks(). + * @return Id of created timer. + */ id_t new_rel_timer(id_t tid, ticks_t ticks); -/* set up timer interrupt at ticks (from startup I suppose) */ + +/** + * Set up timer interrupt at ticks. + * + * @param tid Thread id for callback. + * @param ticks Ticks from \ref current_ticks(). + * @return Id of created timer. + */ id_t new_abs_timer(id_t tid, ticks_t ticks); struct timer *newest_timer(); |
