Microchip® Advanced Software Framework

qs_at25dfx_basic.c File Reference

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 void at25dfx_init ( void  )
static
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 spi_module at25dfx_spi

[buffers]

[driver_instances]

Referenced by at25dfx_init().

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}
static