#include <avr32/io.h>
#include "board.h"
#include "clocks.h"
#include "conf_audio_player.h"
#include "conf_audio_mixer.h"
#include "pm.h"
#include "flashc.h"
#include "gpio.h"
#include "tlv320aic23b.h"
#include "conf_tlv320aic23b.h"
Functions | |
static void | init_codec_gclk (void) |
Sets up generic clock for the audio codec. More... | |
void | init_sys_clocks (void) |
Initializes the MCU system clocks. More... | |
static void | init_usb_clock (void) |
Initializes the USB clock. More... | |
void | set_gclk2_freq (int freq_hz) |
This callback is used to set the frequency of ABDAC clock. More... | |
|
static |
Sets up generic clock for the audio codec.
References gpio_enable_module_pin(), pm_gc_enable(), pm_gc_setup(), TLV320_PM_GCLK_FUNCTION, and TLV320_PM_GCLK_PIN.
Referenced by init_sys_clocks().
void init_sys_clocks | ( | void | ) |
Initializes the MCU system clocks.
References flashc_set_wait_state(), FOSC0, FOSC1, init_codec_gclk(), init_usb_clock(), OSC0_STARTUP, OSC1_STARTUP, pm_cksel(), pm_enable_clk1(), pm_enable_osc1_crystal(), pm_pll_enable(), pm_pll_set_option(), pm_pll_setup(), pm_switch_to_clock(), pm_switch_to_osc0(), and pm_wait_for_pll0_locked().
Referenced by main().
|
static |
void set_gclk2_freq | ( | int | freq_hz | ) |
This callback is used to set the frequency of ABDAC clock.