#include <stddef.h>
#include <stdio.h>
#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "intc.h"
#include "gpio.h"
#include "twi.h"
#include "com_task.h"
#include "audio_interface.h"
#include "audio_mixer.h"
#include "clocks.h"
#include "conf_audio_mixer.h"
#include "conf_audio_interface.h"
#include "conf_audio_player.h"
Functions | |
static void | init_exceptions (void) |
Initializes MCU exceptions. More... | |
static void | init_heap (void) |
Initializes the heap. More... | |
static void | init_hmatrix (void) |
Initializes the HSB bus matrix. More... | |
static void | init_interrupts (void) |
Initializes MCU interrupts. More... | |
static void | init_twi (void) |
Initializes the two-wire interface. More... | |
int | main (void) |
Main function of the audio player. Refer to AVR32709: AVR32 UC3 Audio Decoder Over USB application note. More... | |
Variables | |
return | |
|
static |
Initializes MCU exceptions.
References _evba, Enable_global_exception, and Set_system_register.
|
static |
|
static |
Initializes the HSB bus matrix.
Low-level initialization routine called during startup, before the main function.
|
static |
Initializes MCU interrupts.
References cpu_irq_enable, and irq_initialize_vectors.
Referenced by main().
|
static |
Initializes the two-wire interface.
References AIC23B_TWI, AIC23B_TWI_ADDRESS, AIC23B_TWI_MASTER_SPEED, AIC23B_TWI_SCL_FUNCTION, AIC23B_TWI_SCL_PIN, AIC23B_TWI_SDA_FUNCTION, AIC23B_TWI_SDA_PIN, FPBA_HZ, gpio_enable_module(), twi_options_t::pba_hz, twi_options_t::speed, TPA6130_TWI_ADDRESS, TPA6130_TWI_MASTER_SPEED, and twi_master_init().
Referenced by main().
int main | ( | void | ) |
Main function of the audio player. Refer to AVR32709: AVR32 UC3 Audio Decoder Over USB application note.
References ai_init(), ai_task(), audio_mixer_dacs_start, audio_mixer_enable_dacs, BUFF_INIT, com_task(), com_task_init(), cs2200_setup(), DEFAULT_DAC_BITS_PER_SAMPLE, DEFAULT_DAC_NUM_CHANNELS, DEFAULT_DAC_SAMPLE_RATE_HZ, DEFAULT_DAC_SWAP_CHANNELS, FOSC0, init_heap(), init_interrupts(), init_sys_clocks(), init_twi(), NULL, and sd_mmc_resources_init().
return |