#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <hal.h>
Go to the source code of this file.
|
#define | ACCEL_ALREDY_INITED 1 |
|
#define | accel_lock(u, w, e) |
|
#define | accel_unlock(u, e) |
|
#define | ACCEL_ADDDEV(ns, p) HAL_ADDDEV(accel, ns, p) |
|
#define | ACCEL_GET_DEV(index) HAL_GET_DEV(accel, index) |
|
#define | ACCEL_OPS(ns) |
|
#define | ACCEL_INIT_DEV(ns) |
|
#define | ACCEL_INIT(ns, index) struct accel *accel_init(uint32_t index) |
|
#define | ACCEL_DEINIT(ns, a) int32_t accel_deinit(struct accel *a) |
|
#define | ACCEL_GET(ns, a, v, waittime) int32_t accel_get(struct accel *a, struct vector *v, TickType_t waittime) |
|
#define | ACCEL_GET_ISR(ns, a, v) int32_t accel_getISR(struct accel *a, struct vector *v) |
|
◆ ACCEL_ADDDEV
#define ACCEL_ADDDEV |
( |
|
ns, |
|
|
|
p |
|
) |
| HAL_ADDDEV(accel, ns, p) |
◆ ACCEL_ALREDY_INITED
#define ACCEL_ALREDY_INITED 1 |
◆ ACCEL_DEINIT
#define ACCEL_DEINIT |
( |
|
ns, |
|
|
|
a |
|
) |
| int32_t accel_deinit(struct accel *a) |
◆ ACCEL_GET
#define ACCEL_GET |
( |
|
ns, |
|
|
|
a, |
|
|
|
v, |
|
|
|
waittime |
|
) |
| int32_t accel_get(struct accel *a, struct vector *v, TickType_t waittime) |
◆ ACCEL_GET_DEV
#define ACCEL_GET_DEV |
( |
|
index | ) |
HAL_GET_DEV(accel, index) |
◆ ACCEL_GET_ISR
#define ACCEL_GET_ISR |
( |
|
ns, |
|
|
|
a, |
|
|
|
v |
|
) |
| int32_t accel_getISR(struct accel *a, struct vector *v) |
◆ ACCEL_INIT
#define ACCEL_INIT |
( |
|
ns, |
|
|
|
index |
|
) |
| struct accel *accel_init(uint32_t index) |
◆ ACCEL_INIT_DEV
#define ACCEL_INIT_DEV |
( |
|
ns | ) |
|
◆ accel_lock
#define accel_lock |
( |
|
u, |
|
|
|
w, |
|
|
|
e |
|
) |
| |
◆ ACCEL_OPS
◆ accel_unlock
#define accel_unlock |
( |
|
u, |
|
|
|
e |
|
) |
| |
◆ accel_generic_init()
int32_t accel_generic_init |
( |
struct accel * |
accel | ) |
|
◆ HAL_DEFINE_GLOBAL_ARRAY()
HAL_DEFINE_GLOBAL_ARRAY |
( |
accel |
| ) |
|