AT25DFx SerialFlash driver quick start.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include "conf_at25dfx.h"
Macros | |
#define | AT25DFX_BUFFER_SIZE (10) |
[buffers] More... | |
Functions | |
static void | at25dfx_init (void) |
[driver_instances] More... | |
int | main (void) |
[init_function] More... | |
Variables | |
struct at25dfx_chip_module | at25dfx_chip |
struct spi_module | at25dfx_spi |
[buffers] More... | |
static uint8_t | read_buffer [AT25DFX_BUFFER_SIZE] |
static uint8_t | write_buffer [AT25DFX_BUFFER_SIZE] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} |
#define AT25DFX_BUFFER_SIZE (10) |
[buffers]
Referenced by main().
|
static |
[driver_instances]
[init_function]
[config_instances]
[config_instances]
[spi_setup]
[spi_setup]
[chip_setup]
[chip_setup]
References at25dfx_chip, at25dfx_chip_init(), at25dfx_spi, at25dfx_spi_get_config_defaults(), spi_master_config::baudrate, at25dfx_chip_config::cs_pin, spi_config::master, spi_config::mode_specific, spi_config::mux_setting, spi_config::pinmux_pad0, spi_config::pinmux_pad1, spi_config::pinmux_pad2, spi_config::pinmux_pad3, spi_enable(), spi_init(), and at25dfx_chip_config::type.
Referenced by main().
int main | ( | void | ) |
[init_function]
[init_calls]
[init_calls]
[use_code] [wake_chip]
[wake_chip]
[check_presence]
[check_presence]
[read_buffer]
[read_buffer]
[unprotect_sector]
[unprotect_sector]
[erase_block]
[erase_block]
[write_buffer]
[write_buffer]
[global_protect]
[global_protect]
[sleep]
[sleep] [use_code]
References AT25DFX_BLOCK_SIZE_4KB, AT25DFX_BUFFER_SIZE, at25dfx_chip, at25dfx_chip_check_presence(), at25dfx_chip_erase_block(), at25dfx_chip_read_buffer(), at25dfx_chip_set_global_sector_protect(), at25dfx_chip_set_sector_protect(), at25dfx_chip_sleep(), at25dfx_chip_wake(), at25dfx_chip_write_buffer(), at25dfx_init(), read_buffer, STATUS_OK, system_init(), and write_buffer.
struct at25dfx_chip_module at25dfx_chip |
struct spi_module at25dfx_spi |
|
static |
|
static |