How to make DMA interrupt
Posted: Tue Jun 20, 2017 1:09 am
Using IIS to make a music player . I need a interrupt when DMA send half data of buffer , but i dont find how to set the interrupt with ESP-IDF . I'd appreciate a little help
Code: Select all
//This is in "rom/lldesc.h"
typedef struct lldesc_s {
volatile uint32_t size :12,
length:12,
offset: 5, /* h/w reserved 5bit, s/w use it as offset in buffer */
sosf : 1, /* start of sub-frame */
eof : 1, /* end of frame */
owner : 1; /* hw or sw */
volatile uint8_t *buf; /* point to buffer data */
union{
volatile uint32_t empty;
STAILQ_ENTRY(lldesc_s) qe; /* pointing to the next desc */
};
} lldesc_t;