#include <pm.h>
#include <flashc.h>
#include <intc.h>
#include <board.h>
#include <gpio.h>
#include <ports/avr32/board_init.h>
#include <spi.h>
#include <usart.h>
Functions | |
void | board_init (void) |
This function initializes the board target resources. More... | |
int | board_putchar (char c) |
static void | init_exceptions (void) |
static void | init_hmatrix (void) |
static void | init_interrupts (void) |
static void | init_printk (void) |
static void | init_rs232 (void) |
static void | init_spi (void) |
static void | init_sys_clocks (void) |
Initializes the MCU system clocks. More... | |
int board_putchar | ( | char | c | ) |
References CONFIG_CONSOLE_PORT, and usart_putchar().
Referenced by printchar().
|
static |
References _evba, Enable_global_exception, and Set_system_register.
Referenced by board_init().
|
static |
Referenced by board_init(), and main().
|
static |
References Enable_global_interrupt, and INTC_init_interrupts().
Referenced by board_init().
|
static |
References usart_options_t::baudrate, CONFIG_CONSOLE_PORT, FPBA_HZ, USART_1_STOPBIT, usart_init_rs232(), USART_NO_PARITY, USART_NORMAL_CHMODE, and usart_options.
Referenced by board_init().
|
static |
References BOARD_RS232_0_RX, BOARD_RS232_0_TX, BOARD_RS232_1_RX, BOARD_RS232_1_TX, and gpio_enable_module().
Referenced by board_init().
|
static |
References gpio_enable_module(), gpio_enable_pin_pull_up(), i, spi_options_t::modfdis, spi_enable(), spi_initMaster(), spi_selectionMode(), WL_SPI, WL_SPI_MISO, WL_SPI_MOSI, WL_SPI_NPCS, WL_SPI_NPCS0, and WL_SPI_SCK.
Referenced by board_init().
|
static |
Initializes the MCU system clocks.
References flashc_set_wait_state(), FOSC0, OSC, PLL_MUL, pm_cksel(), pm_configure_usb_clock(), 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 board_init(), and main().