38 #include "stm32f4xx_dac.h"
76 typedef bool (*
fill_dma_cb)(
void *ctx, uint16_t *buf,
int len);
bool PIOS_DAC_install_callback(dac_dev_t dev, uint8_t priority, fill_dma_cb cb, void *ctx)
static struct flyingpicmd_cfg_fa cfg
int PIOS_DAC_init(dac_dev_t *dev_out, const struct pios_dac_cfg *cfg)
Allocate and initialise DAC device.
DMA_Stream_TypeDef * dma_stream
NVIC_InitTypeDef interrupt
bool(* fill_dma_cb)(void *ctx, uint16_t *buf, int len)
struct dac_dev_s * dac_dev_t
TIM_TimeBaseInitTypeDef clock_cfg
void PIOS_DAC_dma_interrupt_handler(dac_dev_t dev)
Handles a DMA completion interrupt on dma_stream.