#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <hal.h>
Go to the source code of this file.
|
| #define | TIMER_ALREDY_INITED 1 |
| |
| #define | TIMER_ADDDEV(ns, p) HAL_ADDDEV(timer, ns, p) |
| |
| #define | TIMER_GET_DEV(index) HAL_GET_DEV(timer, index) |
| |
| #define | TIMER_OPS(ns) |
| |
| #define | TIMER_INIT_DEV(ns) |
| |
| #define | TIMER_INIT(ns, index, prescaler, basetime, adjust) struct timer *timer_init(uint32_t index, uint32_t prescaler, uint64_t basetime, int64_t adjust) |
| |
| #define | TIMER_DEINIT(ns, t) int32_t timer_deinit(struct timer *t) |
| |
| #define | TIMER_SET_OVERFLOW_CALLBACK(ns, t, callback, data) int32_t timer_setOverflowCallback(struct timer *t, bool (*callback)(struct timer *timer, void *d), void * data) |
| |
| #define | TIMER_START(ns, t) int32_t timer_start(struct timer *t) |
| |
| #define | TIMER_STOP(ns, t) int32_t timer_stop(struct timer *t) |
| |
| #define | TIMER_ONESHOT(ns, t, us) int32_t timer_oneshot(struct timer *t, uint64_t us) |
| |
| #define | TIMER_PERIODIC(ns, t, us) int32_t timer_periodic(struct timer *t, uint64_t us) |
| |
| #define | TIMER_GET_TIME(ns, t) uint64_t timer_getTime(struct timer *t) |
| |
◆ TIMER_ADDDEV
| #define TIMER_ADDDEV |
( |
|
ns, |
|
|
|
p |
|
) |
| HAL_ADDDEV(timer, ns, p) |
◆ TIMER_ALREDY_INITED
| #define TIMER_ALREDY_INITED 1 |
◆ TIMER_DEINIT
| #define TIMER_DEINIT |
( |
|
ns, |
|
|
|
t |
|
) |
| int32_t timer_deinit(struct timer *t) |
◆ TIMER_GET_DEV
| #define TIMER_GET_DEV |
( |
|
index | ) |
HAL_GET_DEV(timer, index) |
◆ TIMER_GET_TIME
| #define TIMER_GET_TIME |
( |
|
ns, |
|
|
|
t |
|
) |
| uint64_t timer_getTime(struct timer *t) |
◆ TIMER_INIT
| #define TIMER_INIT |
( |
|
ns, |
|
|
|
index, |
|
|
|
prescaler, |
|
|
|
basetime, |
|
|
|
adjust |
|
) |
| struct timer *timer_init(uint32_t index, uint32_t prescaler, uint64_t basetime, int64_t adjust) |
◆ TIMER_INIT_DEV
| #define TIMER_INIT_DEV |
( |
|
ns | ) |
|
◆ TIMER_ONESHOT
| #define TIMER_ONESHOT |
( |
|
ns, |
|
|
|
t, |
|
|
|
us |
|
) |
| int32_t timer_oneshot(struct timer *t, uint64_t us) |
◆ TIMER_OPS
◆ TIMER_PERIODIC
| #define TIMER_PERIODIC |
( |
|
ns, |
|
|
|
t, |
|
|
|
us |
|
) |
| int32_t timer_periodic(struct timer *t, uint64_t us) |
◆ TIMER_SET_OVERFLOW_CALLBACK
| #define TIMER_SET_OVERFLOW_CALLBACK |
( |
|
ns, |
|
|
|
t, |
|
|
|
callback, |
|
|
|
data |
|
) |
| int32_t timer_setOverflowCallback(struct timer *t, bool (*callback)(struct timer *timer, void *d), void * data) |
◆ TIMER_START
| #define TIMER_START |
( |
|
ns, |
|
|
|
t |
|
) |
| int32_t timer_start(struct timer *t) |
◆ TIMER_STOP
| #define TIMER_STOP |
( |
|
ns, |
|
|
|
t |
|
) |
| int32_t timer_stop(struct timer *t) |
◆ HAL_DEFINE_GLOBAL_ARRAY()
| HAL_DEFINE_GLOBAL_ARRAY |
( |
timer |
| ) |
|
◆ timer_generic_init()
| int32_t timer_generic_init |
( |
struct timer * |
timer | ) |
|