Hardware Abstraction Layer for FreeRTOS
timer.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <hal.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  timer_generic
 

Functions

struct timer * timer_init (uint32_t index, uint32_t prescaler, uint64_t basetime, int64_t adjust)
 
int32_t timer_deinit (struct timer *timer)
 
int32_t timer_setOverflowCallback (struct timer *timer, bool(*callback)(struct timer *timer, void *data), void *data)
 
int32_t timer_start (struct timer *timer)
 
int32_t timer_stop (struct timer *timer)
 
int32_t timer_oneshot (struct timer *timer, uint64_t us)
 
int32_t timer_periodic (struct timer *timer, uint64_t us)
 
uint64_t timer_getTime (struct timer *timer)