Go to the documentation of this file.
40 #ifndef MAXIM_TIMER_H_
41 #define MAXIM_TIMER_H_
53 #define SOURCE_CLOCK_FREQ PeripheralClock
64 #endif //MAXIM_TIMER_H_
Header file for Maxim timer platform driver.
int max_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Function to get the current timer counter value.
Definition: maxim_timer.c:211
Header file for Maxim timer platform driver.
const struct no_os_timer_platform_ops max_timer_ops
maxim platform specific timer platform ops structure
Definition: maxim_timer.c:310
uint16_t id
Definition: no_os_timer.h:91
int max_get_elapsed_nsec(struct no_os_timer_desc *desc, uint64_t *elapsed_time)
Not implemented.
Definition: maxim_timer.c:302
Header file for Maxim timer platform driver.
int max_timer_init(struct no_os_timer_desc **desc, const struct no_os_timer_init_param *param)
Timer driver init function.
Definition: maxim_timer.c:102
Header file for Maxim timer platform driver.
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:60
int max_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Function to set the timer counter value.
Definition: maxim_timer.c:227
int max_timer_start(struct no_os_timer_desc *desc)
Timer count start function.
Definition: maxim_timer.c:180
uint32_t ticks_count
Definition: no_os_timer.h:95
int max_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Function to get the timer frequency.
Definition: maxim_timer.c:243
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
int max_timer_stop(struct no_os_timer_desc *desc)
Timer count stop function.
Definition: maxim_timer.c:195
uint32_t freq_hz
Definition: no_os_timer.h:93
uint32_t ticks_count
Definition: no_os_timer.h:71
uint16_t id
Definition: no_os_timer.h:67
const struct no_os_timer_platform_ops max_timer_ops
Maxim specific timer platform ops.
Definition: maxim_timer.c:310
Header file for Maxim timer platform driver.
Header file for Maxim timer platform driver.
int32_t no_os_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Get the value of the counter register for the timer.
Definition: no_os_timer.c:144
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:89
uint32_t freq_hz
Definition: no_os_timer.h:69
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
int max_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Function to set the timer frequency.
Definition: maxim_timer.c:259
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:75
int max_timer_remove(struct no_os_timer_desc *desc)
Timer driver remove function.
Definition: maxim_timer.c:163
void * extra
Definition: no_os_timer.h:75
Structure holding timer descriptor.
Definition: no_os_timer.h:63
Header file of utility functions.
#define SOURCE_CLOCK_FREQ
Definition: maxim_timer.h:53
Header file for Maxim timer platform driver.