#include "cycle_counter.h"
#include "board.h"
#include "intc.h"
#include "gpio.h"
#include "nf.h"
#include "power_clocks_lib.h"
#include "print_funcs.h"
Functions | |
static void | init_exceptions (void) |
Initializes MCU exceptions. More... | |
static void | init_hmatrix (void) |
Initializes the HSB bus matrix. More... | |
static void | init_interrupts (void) |
Initializes MCU interrupts. More... | |
int | main (void) |
U32 | nf_block_2_page (U16 block_addr) |
Convert a block number into a page number. More... | |
Variables | |
volatile avr32_ecchrs_t * | ecchrs = &AVR32_ECCHRS |
return | |
U16 | valid_block_addr [NF_N_DEVICES] |
|
static |
Initializes MCU exceptions.
References _evba, Enable_global_exception, and Set_system_register.
|
static |
Initializes the HSB bus matrix.
Low-level initialization routine called during startup, before the main function.
|
static |
Initializes MCU interrupts.
References Enable_global_interrupt, and INTC_init_interrupts().
int main | ( | void | ) |
References ecchrs, ecchrs_4bit_check_error(), ecchrs_freeze(), ecchrs_get_cw(), ecchrs_init(), ECCHRS_PAGESIZE_4_BIT_2112_W, ecchrs_reset(), ECCHRS_TYPECORRECT_4_BIT, ecchrs_unfreeze(), FOSC0, G_N_BLOCKS, G_OFST_BLK_STATUS, i, init_dbg_rs232(), j, LSB, M_ID_MICRON, MSB, MSB0, MSB1, nf_block_2_page(), nf_erase_block(), nf_init(), NF_N_DEVICES, nf_open_page_read(), nf_open_page_write(), NF_PAGE_PROGRAM_CMD, NF_RANDOM_DATA_INPUT_CMD, NF_RANDOM_READ_CMD_C1, NF_RANDOM_READ_CMD_C2, nf_rd_data(), nf_read_id(), NF_READ_ID_CMD, nf_reset_nands(), nf_select(), NF_SPARE_POS, nf_unprotect(), nf_wr_addr(), nf_wr_cmd(), nf_wr_data(), PCL_OSC0, pcl_switch_to_osc(), print_dbg(), print_dbg_hex(), print_dbg_ulong(), ecchrs_options_t::typecorrect, val, and valid_block_addr.
volatile avr32_ecchrs_t* ecchrs = &AVR32_ECCHRS |
Referenced by main().
return |
U16 valid_block_addr[NF_N_DEVICES] |
Referenced by main().