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 "avr/io.h"`
`#include "global.h"`
`#include "spi.h"`
`#include "spiflash.h"`

Go to the source code of this file.

## Defines
#define | SPIFLASH_CONFIG_CS DDRB |= (1<<0)
#define | SPIFLASH_ASSERT_CS PORTB &= (1<<0)
#define | SPIFLASH_RELEASE_CS PORTB |= (1<<0)
## 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)