i2s_dma: Implementation of I2S + DMA wrapper library

This commit is contained in:
sheinz 2016-08-16 10:10:35 +03:00
parent 3dcc4f14a9
commit 27135d6252
6 changed files with 322 additions and 3 deletions

View file

@ -37,6 +37,14 @@
#define VAL2FIELD_M(fieldname, value) (((value) & fieldname##_M) << fieldname##_S)
#define SET_FIELD_M(regbits, fieldname, value) (((regbits) & ~FIELD_MASK(fieldname)) | VAL2FIELD_M(fieldname, value))
/* Set bits in reg with specified mask.
*/
#define SET_MASK_BITS(reg, mask) (reg) |= (mask)
/* Clear bits in reg with specified mask
*/
#define CLEAR_MASK_BITS(reg, mask) (reg) &= ~(mask)
/* Use the IRAM macro to place functions into Instruction RAM (IRAM)
instead of flash (aka irom).