MicrOS
|
#include "timer.h"
Functions | |
void | timer_init () |
uint16_t | timer_get_reload_value () |
uint32_t | timer_get_expected_clock_fraction () |
uint32_t | timer_get_system_clock () |
bool | timer_interrupt () |
void | timer_sleep (uint32_t time) |
Function makes sleep by checking how much time elapsed. More... | |
bool | timer_does_elapsed (uint32_t start_time, uint32_t time_to_elapsed) |
Measures if enought time elapsed from start. More... | |
Variables | |
uint32_t | system_clock = 0 |
uint32_t | system_clock_fractions = 0 |
uint16_t | reload_time = 0 |
uint32_t | expected_clock_fraction = 0 |
Measures if enought time elapsed from start.
start_time | Time from which we start count in miliseconds. |
time_to_elapsed | Time in miliseonds that should elapsed since start_time. |
uint32_t timer_get_expected_clock_fraction | ( | ) |
uint16_t timer_get_reload_value | ( | ) |
uint32_t timer_get_system_clock | ( | ) |
void timer_init | ( | ) |
bool timer_interrupt | ( | ) |
void timer_sleep | ( | uint32_t | time | ) |
Function makes sleep by checking how much time elapsed.
time | Time for sleep in miliseonds. |
uint32_t expected_clock_fraction = 0 |
uint16_t reload_time = 0 |
uint32_t system_clock = 0 |
uint32_t system_clock_fractions = 0 |