Go to the documentation of this file.
39 #ifndef _PICO_TIMER_H_
40 #define _PICO_TIMER_H_
72 #endif // _PICO_TIMER_H_
const struct no_os_timer_platform_ops pico_timer_ops
pico platform specific timer platform ops structure
Definition: pico_timer.c:288
int32_t pico_timer_get_elapsed_time_nsec(struct no_os_timer_desc *desc, uint64_t *elapsed_time)
Get the elapsed time in nsec for the timer.
Definition: pico_timer.c:277
uint16_t id
Definition: no_os_timer.h:83
pico platform specific timer descriptor
Definition: pico_timer.h:62
int32_t pico_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Get the timer clock frequency.
Definition: pico_timer.c:227
uint64_t period
Definition: pico_timer.h:64
Timer control module header.
void * no_os_calloc(size_t nitems, size_t size)
const struct no_os_timer_platform_ops pico_timer_ops
pico specific timer platform ops structure
Definition: pico_timer.c:288
uint32_t ticks_count
Definition: no_os_timer.h:87
struct no_os_timer_desc * pico_alarm_desc[PICO_ALARM_MAX_NB]
Definition: pico_timer.c:62
int32_t pico_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Set the timer counter register value.
Definition: pico_timer.c:214
uint32_t freq_hz
Definition: no_os_timer.h:85
int32_t pico_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Set the timer clock frequency.
Definition: pico_timer.c:243
uint32_t ticks_count
Definition: no_os_timer.h:63
uint16_t id
Definition: no_os_timer.h:59
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:81
int32_t pico_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Get the value of the counter register for the timer.
Definition: pico_timer.c:198
uint32_t freq_hz
Definition: no_os_timer.h:61
void no_os_free(void *ptr)
#define NULL
Definition: wrapper.h:64
struct no_os_timer_desc * pico_alarm_desc[]
Definition: pico_timer.c:62
int32_t pico_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: pico_timer.c:156
Header file for the pico timer driver.
void * extra
Definition: no_os_timer.h:67
#define PICO_ALARM_MAX_NB
Definition: pico_timer.c:56
int32_t pico_timer_init(struct no_os_timer_desc **desc, const struct no_os_timer_init_param *param)
Initialize the timer peripheral.
Definition: pico_timer.c:74
int32_t pico_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition: pico_timer.c:178
Structure holding timer descriptor.
Definition: no_os_timer.h:57
Header file of utility functions.
int32_t pico_timer_remove(struct no_os_timer_desc *desc)
Free the resources allocated by no_os_timer_init().
Definition: pico_timer.c:138