Atmel Software Framework

host/audio_example.h File Reference
#include "audio_mixer.h"
#include "conf_audio_mixer.h"
#include <avr32/io.h>
#include "board.h"

Macros

#define AUDIO_DEMO_STRING   "USB Audio Host demo v1.0.1"
 
Speaker sampling rate frequency.

Please choose between:

  • 44100 In KHz. The OSC1 frequency must be 11289600 Hz.
  • 48000 In KHz. The OSC1 frequency must be 12288000 Hz.
#define SPEAKER_FREQUENCY   44100
 
#define USB_SPEAKER_VOL_MIN   0x0
 
#define USB_SPEAKER_VOL_MAX   0x1000
 
#define USB_SPEAKER_VOL_RES   0x50
 
#define MICRO_VOL_MIN   0x7000
 
#define MICRO_VOL_MAX   0x7000
 
#define MICRO_VOL_RES   0x1000
 
#define APPLI_FG_COLOR   WHITE
 Default foreground color. More...
 
#define APPLI_BG_COLOR   -1
 Default background color. More...
 
USART Used for STDIO
#define STDIO_USART   (&AVR32_USART0)
 
#define STDIO_USART_RX_PIN   AVR32_USART0_RXD_0_0_PIN
 
#define STDIO_USART_RX_FUNCTION   AVR32_USART0_RXD_0_0_FUNCTION
 
#define STDIO_USART_TX_PIN   AVR32_USART0_TXD_0_0_PIN
 
#define STDIO_USART_TX_FUNCTION   AVR32_USART0_TXD_0_0_FUNCTION
 
#define STDIO_USART_IRQ   AVR32_USART0_IRQ
 
#define STDIO_USART_BAUDRATE   57600
 

#define APPLI_BG_COLOR   -1

Default background color.

#define APPLI_FG_COLOR   WHITE

Default foreground color.

#define AUDIO_DEMO_STRING   "USB Audio Host demo v1.0.1"

Referenced by main(), and mmi_display().

#define MICRO_VOL_MAX   0x7000

Referenced by audio_micro_get_vol_max().

#define MICRO_VOL_MIN   0x7000

Referenced by audio_micro_get_vol_min().

#define MICRO_VOL_RES   0x1000

Referenced by audio_micro_get_vol_res().

#define SPEAKER_FREQUENCY   44100
#define STDIO_USART   (&AVR32_USART0)

Referenced by init_stdio().

#define STDIO_USART_BAUDRATE   57600

Referenced by init_stdio().

#define STDIO_USART_IRQ   AVR32_USART0_IRQ
#define STDIO_USART_RX_FUNCTION   AVR32_USART0_RXD_0_0_FUNCTION

Referenced by init_stdio().

#define STDIO_USART_RX_PIN   AVR32_USART0_RXD_0_0_PIN

Referenced by init_stdio().

#define STDIO_USART_TX_FUNCTION   AVR32_USART0_TXD_0_0_FUNCTION

Referenced by init_stdio().

#define STDIO_USART_TX_PIN   AVR32_USART0_TXD_0_0_PIN

Referenced by init_stdio().

#define USB_SPEAKER_VOL_MAX   0x1000
#define USB_SPEAKER_VOL_MIN   0x0
#define USB_SPEAKER_VOL_RES   0x50