Hardware Abstraction Layer for FreeRTOS
accel_prv.h File Reference
#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <hal.h>
Include dependency graph for accel_prv.h:

Go to the source code of this file.

Macros

#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)
 

Functions

int32_t accel_generic_init (struct accel *accel)
 
 HAL_DEFINE_GLOBAL_ARRAY (accel)
 

Macro Definition Documentation

◆ ACCEL_ADDDEV

#define ACCEL_ADDDEV (   ns,
 
)    HAL_ADDDEV(accel, ns, p)

◆ ACCEL_ALREDY_INITED

#define ACCEL_ALREDY_INITED   1

◆ ACCEL_DEINIT

#define ACCEL_DEINIT (   ns,
 
)    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,
 
)    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,
 
)

◆ ACCEL_OPS

#define ACCEL_OPS (   ns)

◆ accel_unlock

#define accel_unlock (   u,
 
)

Function Documentation

◆ accel_generic_init()

int32_t accel_generic_init ( struct accel *  accel)

◆ HAL_DEFINE_GLOBAL_ARRAY()

HAL_DEFINE_GLOBAL_ARRAY ( accel  )