#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"
#include "tpa6130.h"
#include "conf_tpa6130.h"
#include "conf_buff_player.h"
#include "sd_mmc_mci.h"
#include "conf_sd_mmc_mci.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... | |
static void | sd_mmc_resources_init (void) |
Initializes SD/MMC resources: GPIO, MCI and SD/MMC. More... | |
Variables | |
return | |
|
static |
Initializes MCU exceptions.
References _evba, Enable_global_exception, and Set_system_register.
|
static |
Initializes the heap.
References __heap_end__, __heap_start__, and DEFAULT_HEAP_INIT_WORD.
Referenced by main().
|
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 FPBA_HZ, gpio_enable_module(), TPA6130_TWI, TPA6130_TWI_ADDRESS, TPA6130_TWI_MASTER_SPEED, TPA6130_TWI_SCL_FUNCTION, TPA6130_TWI_SCL_PIN, TPA6130_TWI_SDA_FUNCTION, TPA6130_TWI_SDA_PIN, twi_master_init, and twi_options_t.
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(), DEFAULT_DAC_BITS_PER_SAMPLE, DEFAULT_DAC_NUM_CHANNELS, DEFAULT_DAC_SAMPLE_RATE_HZ, DEFAULT_DAC_SWAP_CHANNELS, DEFAULT_DACS, FOSC0, init_heap(), init_interrupts(), init_sys_clocks(), init_twi(), sd_mmc_resources_init(), task, and task_init.
|
static |
Initializes SD/MMC resources: GPIO, MCI and SD/MMC.
References FCPU_HZ, FPBB_HZ, gpio_enable_module(), sd_mmc_mci_init(), SD_SLOT, SD_SLOT_4BITS_CLK_FUNCTION, SD_SLOT_4BITS_CLK_PIN, SD_SLOT_4BITS_CMD_FUNCTION, SD_SLOT_4BITS_CMD_PIN, SD_SLOT_4BITS_DATA0_FUNCTION, SD_SLOT_4BITS_DATA0_PIN, SD_SLOT_4BITS_DATA1_FUNCTION, SD_SLOT_4BITS_DATA1_PIN, SD_SLOT_4BITS_DATA2_FUNCTION, SD_SLOT_4BITS_DATA2_PIN, SD_SLOT_4BITS_DATA3_FUNCTION, and SD_SLOT_4BITS_DATA3_PIN.
Referenced by main().
return |