#ifndef _AUDIO_H_
#define _AUDIO_H_

#include "codec_adc.h"
#include "codec_dac.h"
#include "denoise.h"
#include "codec_src0.h"
#include "codec_src1.h"
#include "codec_iis.h"


typedef enum
{
    PING  = 0,
    PONG  = 1,
} audio_dac_pingpong_type_def;


typedef enum buff_status_def
{
    BUFF_FREE  = 0,
    BUFF_BUSY  = 1,
} buff_status;

typedef struct audio_buff_struct_def
{
    volatile __ALIGNED(4) uint32_t status;
    volatile __ALIGNED(4) uint8_t *addr;
} audio_buff_deal_def;

//#define ADC_USE_SRC1    1
//#define DAC_USE_SRC0    1

#define IIS_TX_USE_SRC
#define IIS_RX_USE_SRC

#define USING_IIS_TX
#define USING_IIS_RX

#define IIS_PORT_NUM                    ASI0

#endif
