#include "startup.h"
#include "pm.h"
#include "intc.h"
#include "board.h"
#include "print_funcs.h"
#include "clocks.h"
Go to the source code of this file.
Functions | |
static void | init_exceptions (void) |
static void | init_hmatrix (void) |
static void | init_interrupts (void) |
void | startup_init (void) |
static void init_exceptions | ( | void | ) | [static] |
Definition at line 36 of file startup.c.
Referenced by startup_init().
00037 { 00038 extern void _evba; 00039 Set_system_register(AVR32_EVBA, (int)&_evba); 00040 Enable_global_exception(); 00041 }
static void init_hmatrix | ( | void | ) | [static] |
Definition at line 43 of file startup.c.
Referenced by startup_init().
00044 { 00045 union { 00046 unsigned long scfg; 00047 avr32_hmatrix_scfg_t SCFG; 00048 } u_avr32_hmatrix_scfg = { 00049 AVR32_HMATRIX.scfg[AVR32_HMATRIX_SLAVE_FLASH] 00050 }; 00051 u_avr32_hmatrix_scfg.SCFG.defmstr_type = 00052 AVR32_HMATRIX_DEFMSTR_TYPE_LAST_DEFAULT; 00053 AVR32_HMATRIX.scfg[AVR32_HMATRIX_SLAVE_FLASH] = 00054 u_avr32_hmatrix_scfg.scfg; 00055 }
static void init_interrupts | ( | void | ) | [static] |
void startup_init | ( | void | ) |
Definition at line 63 of file startup.c.
References FPBA_HZ, init_exceptions(), init_hmatrix(), init_interrupts(), and init_sys_clocks().
Referenced by main().
00064 { 00065 init_exceptions(); 00066 init_hmatrix(); 00067 init_sys_clocks(); 00068 init_interrupts(); 00069 init_dbg_rs232(FPBA_HZ); 00070 }