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

Go to the source code of this file.

Macros

#define GYRO_ALREDY_INITED   1
 
#define gyro_lock(u, w, e)
 
#define gyro_unlock(u, e)
 
#define GYRO_ADDDEV(ns, p)   HAL_ADDDEV(gyro, ns, p)
 
#define GYRO_GET_DEV(index)   HAL_GET_DEV(gyro, index)
 
#define GYRO_OPS(ns)
 
#define GYRO_INIT_DEV(ns)
 
#define GYRO_INIT(ns, index)   struct gyro *gyro_init(uint32_t index)
 
#define GYRO_DEINIT(ns, a)   int32_t gyro_deinit(struct gyro *a)
 
#define GYRO_GET(ns, a, v, waittime)   int32_t gyro_get(struct gyro *a, struct vector *v, TickType_t waittime)
 
#define GYRO_GET_ISR(ns, a, v)   int32_t gyro_getISR(struct gyro *a, struct vector *v)
 

Functions

int32_t gyro_generic_init (struct gyro *gyro)
 
 HAL_DEFINE_GLOBAL_ARRAY (gyro)
 

Macro Definition Documentation

◆ GYRO_ADDDEV

#define GYRO_ADDDEV (   ns,
 
)    HAL_ADDDEV(gyro, ns, p)

◆ GYRO_ALREDY_INITED

#define GYRO_ALREDY_INITED   1

◆ GYRO_DEINIT

#define GYRO_DEINIT (   ns,
 
)    int32_t gyro_deinit(struct gyro *a)

◆ GYRO_GET

#define GYRO_GET (   ns,
  a,
  v,
  waittime 
)    int32_t gyro_get(struct gyro *a, struct vector *v, TickType_t waittime)

◆ GYRO_GET_DEV

#define GYRO_GET_DEV (   index)    HAL_GET_DEV(gyro, index)

◆ GYRO_GET_ISR

#define GYRO_GET_ISR (   ns,
  a,
 
)    int32_t gyro_getISR(struct gyro *a, struct vector *v)

◆ GYRO_INIT

#define GYRO_INIT (   ns,
  index 
)    struct gyro *gyro_init(uint32_t index)

◆ GYRO_INIT_DEV

#define GYRO_INIT_DEV (   ns)

◆ gyro_lock

#define gyro_lock (   u,
  w,
 
)

◆ GYRO_OPS

#define GYRO_OPS (   ns)

◆ gyro_unlock

#define gyro_unlock (   u,
 
)

Function Documentation

◆ gyro_generic_init()

int32_t gyro_generic_init ( struct gyro *  gyro)

◆ HAL_DEFINE_GLOBAL_ARRAY()

HAL_DEFINE_GLOBAL_ARRAY ( gyro  )