git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: striped more arch-related code from the kernel code base
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
timer.h
diff --git
a/lunaix-os/includes/lunaix/timer.h
b/lunaix-os/includes/lunaix/timer.h
index b499f3fb70402dcd75af5e419a2897b440f885f9..5ab38644c24cf4b615dcc8760c31750f11f0a7a9 100644
(file)
--- a/
lunaix-os/includes/lunaix/timer.h
+++ b/
lunaix-os/includes/lunaix/timer.h
@@
-8,7
+8,7
@@
#define TIMER_MODE_PERIODIC 0x1
#define TIMER_MODE_PERIODIC 0x1
-typedef u
int
32_t ticks_t;
+typedef u32_t ticks_t;
struct lx_timer_context
{
struct lx_timer_context
{
@@
-22,7
+22,7
@@
struct lx_timer_context
* @brief Desired system running frequency
*
*/
* @brief Desired system running frequency
*
*/
- u
int
32_t running_frequency;
+ u32_t running_frequency;
/**
* @brief Ticks per hertz
*
/**
* @brief Ticks per hertz
*
@@
-37,7
+37,7
@@
struct lx_timer
ticks_t counter;
void* payload;
void (*callback)(void*);
ticks_t counter;
void* payload;
void (*callback)(void*);
- u
int
8_t flags;
+ u8_t flags;
};
/**
};
/**
@@
-46,22
+46,22
@@
struct lx_timer
* @param frequency The frequency that timer should run in Hz.
*/
void
* @param frequency The frequency that timer should run in Hz.
*/
void
-timer_init(u
int
32_t frequency);
+timer_init(u32_t frequency);
struct lx_timer*
struct lx_timer*
-timer_run_second(u
int
32_t second,
+timer_run_second(u32_t second,
void (*callback)(void*),
void* payload,
void (*callback)(void*),
void* payload,
- u
int
8_t flags);
+ u8_t flags);
struct lx_timer*
struct lx_timer*
-timer_run_ms(u
int
32_t millisecond,
+timer_run_ms(u32_t millisecond,
void (*callback)(void*),
void* payload,
void (*callback)(void*),
void* payload,
- u
int
8_t flags);
+ u8_t flags);
struct lx_timer*
struct lx_timer*
-timer_run(ticks_t ticks, void (*callback)(void*), void* payload, u
int
8_t flags);
+timer_run(ticks_t ticks, void (*callback)(void*), void* payload, u8_t flags);
struct lx_timer_context*
timer_context();
struct lx_timer_context*
timer_context();