Microchip® Advanced Software Framework

conf_audio_player.h File Reference
#include "audio_mixer.h"
#include <avr32/io.h>
#include "board.h"

Macros

#define DEFAULT_HEAP_INIT_WORD   0xA5A5A5A5
 Default heap initialization word. More...
 
#define WDT_TIMEOUT_PERIOD_US   15000000
 Time-out period of the WatchDog Timer in microseconds. More...
 
System Clock Frequencies
#define SYS_CLOCK_PLL_MUL   11
 
#define FMCK_HZ   ((SYS_CLOCK_PLL_MUL * FOSC1 + 1) / 2)
 
#define FCPU_HZ   FMCK_HZ
 
#define FHSB_HZ   FCPU_HZ
 
#define FPBB_HZ   FMCK_HZ
 
#define FPBA_HZ   FMCK_HZ
 
Default DAC Settings

Please choose between:

  • AUDIO_MIXER_DAC_AIC23B (external DAC mounted on EVK1105 board)
  • AUDIO_MIXER_DAC_ABDAC (internal ABDAC with external amplifier tap6130 on EVK1105 and EVK1104)
#define DEFAULT_DACS   AUDIO_MIXER_DAC_AIC23B
 
#define DEFAULT_DAC_SAMPLE_RATE_HZ   SPEAKER_FREQUENCY
 
#define DEFAULT_DAC_NUM_CHANNELS   2
 
#define DEFAULT_DAC_BITS_PER_SAMPLE   16
 
#define DEFAULT_DAC_SWAP_CHANNELS   false
 
USB resynchronization methods
#define USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES   1
 
#define USB_RESYNC_METHOD_SOFT_ADAPTIF_SRC   2
 Pseudo adaptive Sampling Rate Conversion. More...
 
#define USB_RESYNC_METHOD_EXT_CLOCK_SYNTHESIZER   8
 Use of an external clock synthesizer (e.g. the CL CS2200). More...
 
Method used for the USB resynchronization

Please choose between:

  • USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES (Add/remove samples on the fly)
  • USB_RESYNC_METHOD_SOFT_ADAPTIF_SRC (Pseudo adaptive Sampling Rate Conversion)
  • USB_RESYNC_METHOD_EXT_CLOCK_SYNTHESIZER (Use of an external clock synthesizer (e.g. the CL CS2200))
#define USB_RESYNC_METHOD   USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES
 

#define DEFAULT_DAC_BITS_PER_SAMPLE   16

Referenced by main().

#define DEFAULT_DAC_NUM_CHANNELS   2

Referenced by main().

#define DEFAULT_DAC_SAMPLE_RATE_HZ   SPEAKER_FREQUENCY

Referenced by main().

#define DEFAULT_DAC_SWAP_CHANNELS   false

Referenced by main().

#define DEFAULT_DACS   AUDIO_MIXER_DAC_AIC23B

Referenced by main().

#define DEFAULT_HEAP_INIT_WORD   0xA5A5A5A5

Default heap initialization word.

#define FHSB_HZ   FCPU_HZ

Referenced by main().

#define FMCK_HZ   ((SYS_CLOCK_PLL_MUL * FOSC1 + 1) / 2)

Referenced by init_sys_clocks().

#define FPBB_HZ   FMCK_HZ

Referenced by main().

#define SYS_CLOCK_PLL_MUL   11

Referenced by init_sys_clocks().

#define USB_RESYNC_METHOD   USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES
#define USB_RESYNC_METHOD_EXT_CLOCK_SYNTHESIZER   8

Use of an external clock synthesizer (e.g. the CL CS2200).

#define USB_RESYNC_METHOD_SOFT_ADAPTIF_SRC   2

Pseudo adaptive Sampling Rate Conversion.

#define USB_RESYNC_METHOD_SOFT_ADD_DEL_SAMPLES   1

Add/remove samples on the fly.

#define WDT_TIMEOUT_PERIOD_US   15000000

Time-out period of the WatchDog Timer in microseconds.

Warning
Do not choose a value smaller than the normal maximal time that can be spent between two consecutive calls of com_task().