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)


Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by  doxygen 1.4.2