Go to the documentation of this file.
34 #ifndef LINUX_TIMER_H_
35 #define LINUX_TIMER_H_
47 #endif //LINUX_TIMER_H_
uint16_t id
Definition: no_os_timer.h:85
int linux_timer_init(struct no_os_timer_desc **desc, const struct no_os_timer_init_param *param)
Timer driver init function.
Definition: linux_timer.c:69
const struct no_os_timer_platform_ops linux_timer_ops
Linux specific timer platform ops.
Definition: linux_timer.c:258
int linux_timer_get_elapsed_time_nsec(struct no_os_timer_desc *desc, uint64_t *elapsed_time)
Not implemented.
Definition: linux_timer.c:238
Linux platform specific timer descriptor.
Definition: linux_timer.c:53
int linux_timer_start(struct no_os_timer_desc *desc)
Timer count start function.
Definition: linux_timer.c:117
Timer control module header.
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
int linux_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Function to set the timer frequency.
Definition: linux_timer.c:226
uint32_t ticks_count
Definition: no_os_timer.h:89
uint32_t freq_hz
Definition: no_os_timer.h:87
int linux_timer_remove(struct no_os_timer_desc *desc)
Timer driver remove function.
Definition: linux_timer.c:104
const struct no_os_timer_platform_ops linux_timer_ops
linux platform specific timer platform ops structure
Definition: linux_timer.c:258
uint32_t ticks_count
Definition: no_os_timer.h:65
uint16_t id
Definition: no_os_timer.h:61
int linux_timer_stop(struct no_os_timer_desc *desc)
Timer count stop function.
Definition: linux_timer.c:134
int linux_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Function to get the timer frequency.
Definition: linux_timer.c:212
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:83
uint32_t freq_hz
Definition: no_os_timer.h:63
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
bool enable
Definition: linux_timer.c:55
void * extra
Definition: no_os_timer.h:69
int linux_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Function to get the current timer counter value.
Definition: linux_timer.c:151
Structure holding timer descriptor.
Definition: no_os_timer.h:57
int linux_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Function to set the timer counter value.
Definition: linux_timer.c:185
timer_t timer_id
Definition: linux_timer.c:54
struct timespec start_time
Definition: linux_timer.c:56