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

Go to the source code of this file.

Macros

#define DAC_ALREDY_INITED   1
 
#define dac_lock(u, w, r)
 
#define dac_unlock(u, r)
 
#define DAC_ADDDEV(ns, p)   HAL_ADDDEV(dac, ns, p)
 
#define DAC_GET_DEV(index)   HAL_GET_DEV(dac, index)
 
#define DAC_OPS(ns)
 
#define DAC_INIT_DEV(ns)
 
#define DAC_INIT(ns, index, bits)   struct dac *dac_init(uint32_t index, uint8_t bits)
 
#define DAC_DEINIT(ns, a)   int32_t dac_deinit(struct dac *a)
 
#define DAC_SET(ns, a, d, waittime)   int32_t dac_set(struct dac *a, uint32_t d, TickType_t waittime)
 
#define DAC_SET_ISR(ns, a, d)   int32_t dac_setISR(struct dac *a, uint32_t d)
 

Functions

int32_t dac_generic_init (struct dac *dac)
 
 HAL_DEFINE_GLOBAL_ARRAY (dac)
 

Macro Definition Documentation

◆ DAC_ADDDEV

#define DAC_ADDDEV (   ns,
 
)    HAL_ADDDEV(dac, ns, p)

◆ DAC_ALREDY_INITED

#define DAC_ALREDY_INITED   1

◆ DAC_DEINIT

#define DAC_DEINIT (   ns,
 
)    int32_t dac_deinit(struct dac *a)

◆ DAC_GET_DEV

#define DAC_GET_DEV (   index)    HAL_GET_DEV(dac, index)

◆ DAC_INIT

#define DAC_INIT (   ns,
  index,
  bits 
)    struct dac *dac_init(uint32_t index, uint8_t bits)

◆ DAC_INIT_DEV

#define DAC_INIT_DEV (   ns)

◆ dac_lock

#define dac_lock (   u,
  w,
 
)

◆ DAC_OPS

#define DAC_OPS (   ns)

◆ DAC_SET

#define DAC_SET (   ns,
  a,
  d,
  waittime 
)    int32_t dac_set(struct dac *a, uint32_t d, TickType_t waittime)

◆ DAC_SET_ISR

#define DAC_SET_ISR (   ns,
  a,
 
)    int32_t dac_setISR(struct dac *a, uint32_t d)

◆ dac_unlock

#define dac_unlock (   u,
 
)

Function Documentation

◆ dac_generic_init()

int32_t dac_generic_init ( struct dac *  dac)

◆ HAL_DEFINE_GLOBAL_ARRAY()

HAL_DEFINE_GLOBAL_ARRAY ( dac  )