Atmel Software Framework

device/conf_tlv320aic23b.h File Reference

TLV320AIC23B stereo audio CODEC driver configuration file for AVR32.

This file contains the possible external configuration of the TLV320AIC23B.

                  can be used.

Copyright (c) 2009 Atmel Corporation. All rights reserved.

#include "tlv320aic23b.h"
#include <avr32/io.h>
#include "intc.h"
#include "board.h"

Macros

#define AIC23B_CTRL_INTERFACE   AIC23B_CTRL_INTERFACE_TWI
 Control interface: AIC23B_CTRL_INTERFACE_TWI or AIC23B_CTRL_INTERFACE_SPI. More...
 
#define AIC23B_INPUT   AIC23B_INPUT_MIC
 
#define AIC23B_MCLK_HZ   11289600
 Master clock (in Hz): 12000000 or 11289600. More...
 
#define AIC23B_MODE   AIC23B_MODE_CODEC
 Mode Selected: AIC23B_MODE_DAC, AIC23B_MODE_ADC or AIC23B_MODE_CODEC. More...
 
TWI Connections
#define AIC23B_TWI   TLV320_TWI
 
#define AIC23B_TWI_ADDRESS   0x1A
 TWI address: 0x1A if /CS state is 0 or 0x1B if /CS state is 1. More...
 
#define AIC23B_TWI_MASTER_SPEED   400000
 
#define AIC23B_TWI_SCL_PIN   TLV320_TWI_SCL_PIN
 
#define AIC23B_TWI_SCL_FUNCTION   TLV320_TWI_SCL_FUNCTION
 
#define AIC23B_TWI_SDA_PIN   TLV320_TWI_SDA_PIN
 
#define AIC23B_TWI_SDA_FUNCTION   TLV320_TWI_SDA_FUNCTION
 
SSC Connections
#define AIC23B_SSC   (&AVR32_SSC)
 
#define AIC23B_SSC_TX_PDCA_PID   AVR32_PDCA_PID_SSC_TX
 
#define AIC23B_SSC_TX_PDCA_CHANNEL   0
 
#define AIC23B_SSC_TX_PDCA_IRQ   AVR32_PDCA_IRQ_0
 
#define AIC23B_SSC_TX_PDCA_INT_LEVEL   AVR32_INTC_INT3
 
#define AIC23B_SSC_TX_CLOCK_PIN   AVR32_SSC_TX_CLOCK_0_PIN
 
#define AIC23B_SSC_TX_CLOCK_FUNCTION   AVR32_SSC_TX_CLOCK_0_FUNCTION
 
#define AIC23B_SSC_TX_DATA_PIN   AVR32_SSC_TX_DATA_0_PIN
 
#define AIC23B_SSC_TX_DATA_FUNCTION   AVR32_SSC_TX_DATA_0_FUNCTION
 
#define AIC23B_SSC_TX_FRAME_SYNC_PIN   AVR32_SSC_TX_FRAME_SYNC_0_PIN
 
#define AIC23B_SSC_TX_FRAME_SYNC_FUNCTION   AVR32_SSC_TX_FRAME_SYNC_0_FUNCTION
 
#define AIC23B_SSC_RX_PDCA_PID   AVR32_PDCA_PID_SSC_RX
 
#define AIC23B_SSC_RX_PDCA_CHANNEL   1
 
#define AIC23B_SSC_RX_PDCA_IRQ   AVR32_PDCA_IRQ_1
 
#define AIC23B_SSC_RX_PDCA_INT_LEVEL   AVR32_INTC_INT3
 
#define AIC23B_SSC_RX_DATA_PIN   AVR32_SSC_RX_DATA_0_PIN
 
#define AIC23B_SSC_RX_DATA_FUNCTION   AVR32_SSC_RX_DATA_0_FUNCTION
 
#define AIC23B_SSC_RX_FRAME_SYNC_PIN   AVR32_SSC_RX_FRAME_SYNC_0_PIN
 
#define AIC23B_SSC_RX_FRAME_SYNC_FUNCTION   AVR32_SSC_RX_FRAME_SYNC_0_FUNCTION
 

#define AIC23B_CTRL_INTERFACE   AIC23B_CTRL_INTERFACE_TWI

Control interface: AIC23B_CTRL_INTERFACE_TWI or AIC23B_CTRL_INTERFACE_SPI.

#define AIC23B_INPUT   AIC23B_INPUT_MIC
#define AIC23B_MCLK_HZ   11289600

Master clock (in Hz): 12000000 or 11289600.

#define AIC23B_MODE   AIC23B_MODE_CODEC

Mode Selected: AIC23B_MODE_DAC, AIC23B_MODE_ADC or AIC23B_MODE_CODEC.

#define AIC23B_SSC   (&AVR32_SSC)
#define AIC23B_SSC_RX_DATA_FUNCTION   AVR32_SSC_RX_DATA_0_FUNCTION
#define AIC23B_SSC_RX_DATA_PIN   AVR32_SSC_RX_DATA_0_PIN
#define AIC23B_SSC_RX_FRAME_SYNC_FUNCTION   AVR32_SSC_RX_FRAME_SYNC_0_FUNCTION
#define AIC23B_SSC_RX_FRAME_SYNC_PIN   AVR32_SSC_RX_FRAME_SYNC_0_PIN
#define AIC23B_SSC_RX_PDCA_CHANNEL   1
#define AIC23B_SSC_RX_PDCA_INT_LEVEL   AVR32_INTC_INT3
#define AIC23B_SSC_RX_PDCA_IRQ   AVR32_PDCA_IRQ_1
#define AIC23B_SSC_RX_PDCA_PID   AVR32_PDCA_PID_SSC_RX
#define AIC23B_SSC_TX_CLOCK_FUNCTION   AVR32_SSC_TX_CLOCK_0_FUNCTION
#define AIC23B_SSC_TX_CLOCK_PIN   AVR32_SSC_TX_CLOCK_0_PIN
#define AIC23B_SSC_TX_DATA_FUNCTION   AVR32_SSC_TX_DATA_0_FUNCTION
#define AIC23B_SSC_TX_DATA_PIN   AVR32_SSC_TX_DATA_0_PIN
#define AIC23B_SSC_TX_FRAME_SYNC_FUNCTION   AVR32_SSC_TX_FRAME_SYNC_0_FUNCTION
#define AIC23B_SSC_TX_FRAME_SYNC_PIN   AVR32_SSC_TX_FRAME_SYNC_0_PIN
#define AIC23B_SSC_TX_PDCA_CHANNEL   0
#define AIC23B_SSC_TX_PDCA_INT_LEVEL   AVR32_INTC_INT3
#define AIC23B_SSC_TX_PDCA_IRQ   AVR32_PDCA_IRQ_0
#define AIC23B_SSC_TX_PDCA_PID   AVR32_PDCA_PID_SSC_TX
#define AIC23B_TWI   TLV320_TWI
#define AIC23B_TWI_ADDRESS   0x1A

TWI address: 0x1A if /CS state is 0 or 0x1B if /CS state is 1.

#define AIC23B_TWI_MASTER_SPEED   400000
#define AIC23B_TWI_SCL_FUNCTION   TLV320_TWI_SCL_FUNCTION
#define AIC23B_TWI_SCL_PIN   TLV320_TWI_SCL_PIN
#define AIC23B_TWI_SDA_FUNCTION   TLV320_TWI_SDA_FUNCTION
#define AIC23B_TWI_SDA_PIN   TLV320_TWI_SDA_PIN