#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 "tlv320aic23b.h"
#include "conf_buff_player.h"
#include "spi.h"
#include "sd_mmc_spi.h"
#include "conf_sd_mmc_spi.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) |
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 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, TPA6130_TWI_ADDRESS, TPA6130_TWI_MASTER_SPEED, TPA6130_TWI_SCL_FUNCTION, TPA6130_TWI_SCL_PIN, TPA6130_TWI_SDA_FUNCTION, TPA6130_TWI_SDA_PIN, 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(), 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 |
References FPBA_HZ, gpio_enable_module(), spi_options_t::reg, SD_MMC_SPI, SD_MMC_SPI_BITS, sd_mmc_spi_init(), SD_MMC_SPI_MASTER_SPEED, SD_MMC_SPI_MISO_FUNCTION, SD_MMC_SPI_MISO_PIN, SD_MMC_SPI_MOSI_FUNCTION, SD_MMC_SPI_MOSI_PIN, SD_MMC_SPI_NPCS, SD_MMC_SPI_NPCS_FUNCTION, SD_MMC_SPI_NPCS_PIN, SD_MMC_SPI_SCK_FUNCTION, SD_MMC_SPI_SCK_PIN, spi_enable(), spi_initMaster(), spi_is_enabled(), and spi_selectionMode().
Referenced by main().
return |