X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1fe5f5eb5378a47bf0f3451762743c162e40faad..084eac3d5fa7deeab2296cf20653f4f7b3f75cd0:/lunaix-os/includes/lunaix/timer.h diff --git a/lunaix-os/includes/lunaix/timer.h b/lunaix-os/includes/lunaix/timer.h index d1b7845..fbbe2b7 100644 --- a/lunaix-os/includes/lunaix/timer.h +++ b/lunaix-os/includes/lunaix/timer.h @@ -3,38 +3,12 @@ #include #include -#include +#include -#define SYS_TIMER_FREQUENCY_HZ 1024 +#define SYS_TIMER_FREQUENCY_HZ 1000 #define TIMER_MODE_PERIODIC 0x1 -struct lx_timer_context -{ - struct lx_timer* active_timers; - /** - * @brief timer hardware base frequency (ticks per seconds) - * - */ - ticks_t base_frequency; - /** - * @brief Desired system running frequency - * - */ - ticks_t running_frequency; - /** - * @brief Ticks per hertz - * - */ - ticks_t tphz; -}; - -struct timer_init_param -{ - struct lx_timer_context* context; - void* timer_update_isr; -}; - struct lx_timer { struct llist_header link; @@ -68,7 +42,4 @@ timer_run_ms(u32_t millisecond, struct lx_timer* timer_run(ticks_t ticks, void (*callback)(void*), void* payload, u8_t flags); -struct lx_timer_context* -timer_context(); - #endif /* __LUNAIX_TIMER_H */