NAND Flash Raw Operation Example.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include <string.h>
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
int | main (void) |
Variables | |
static uint32_t | addr_address = BOARD_NF_ADDRESS_ADDR |
static uint32_t | block_size |
static uint32_t | cmd_address = BOARD_NF_COMMAND_ADDR |
static uint32_t | data_address = BOARD_NF_DATA_ADDR |
static uint32_t | mem_size |
static struct nand_flash_raw | nf_raw |
static uint32_t | num_block |
static uint32_t | page_size |
static uint32_t | pages_per_block |
uint8_t | read_buffer [2048] |
uint8_t | write_buffer [2048] |
|
static |
Configure UART console.
References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
int main | ( | void | ) |
References addr_address, block, block_size, board_init(), BOARD_NAME, cmd_address, configure_console(), data_address, mem_size, nand_flash_raw::model, NAND_COMMON_ERROR_BADBLOCK, nand_flash_model_get_block_size_in_bytes(), nand_flash_model_get_block_size_in_pages(), nand_flash_model_get_device_size_in_blocks(), nand_flash_model_get_device_size_in_bytes(), nand_flash_model_get_page_data_size(), nand_flash_raw_erase_block(), nand_flash_raw_initialize(), nand_flash_raw_read_page(), nand_flash_raw_write_page(), nf_raw, num_block, page_size, pages_per_block, read_buffer, sysclk_init(), and write_buffer.
|
static |
Referenced by main().
|
static |
Referenced by hsmci_adtc_start(), main(), membag_alloc(), membag_free(), membag_init(), nand_flash_model_translate_access(), and udi_msc_trans_block().
|
static |
Referenced by main().
|
static |
Referenced by main(), and nand_flash_raw_initialize().
|
static |
Referenced by main().
|
static |
Referenced by main().
|
static |
Referenced by main().
|
static |
Referenced by main(), and nand_flash_model_translate_access().
|
static |
Referenced by main().
uint8_t read_buffer[2048] |
Referenced by main(), run_test_raw_read_write(), and run_test_software_ecc().
uint8_t write_buffer[2048] |
Referenced by main(), qt_write_regs(), run_test_raw_read_write(), and run_test_software_ecc().