Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# spiflash.c File Reference

## Detailed Description

Definition in file spiflash.c.

`#include "at91sam7s64.h"`
`#include "global.h"`
`#include "spi.h"`
`#include "spiflash.h"`

Go to the source code of this file.

## Defines
#define | SPIFLASH_CONFIG_CS
#define | SPIFLASH_ASSERT_CS AT91C_BASE_PIOA->PIO_CODR = AT91C_PIO_PA30
#define | SPIFLASH_RELEASE_CS AT91C_BASE_PIOA->PIO_SODR = AT91C_PIO_PA30
## Functions
void | spiflashInit (void)
unsigned short | spiflashGetID (void)
void | spiflashChipErase (void)
void | spiflashRead (unsigned long addr, unsigned long nbytes, unsigned char *data)
void | spiflashWrite (unsigned long addr, unsigned long nbytes, unsigned char *data)

## Define Documentation

#define SPIFLASH_CONFIG_CS

| Value:
    AT91C_BASE_PIOA->PIO_PER = AT91C_PIO_PA30; \
                                    AT91C_BASE_PIOA->PIO_OER = AT91C_PIO_PA30
Definition at line 33 of file spiflash.c.