File nut/arch/avr/dev/spiflash.c


Included Files


Global Function SpiFlashEnable()

int SpiFlashEnable ( void )
Prototyped in: nut/include/dev/spiflash.h
Calls: SpiByte() nut/arch/avr/dev/spiflash.c

Global Function SpiFlashErase()

void SpiFlashErase ( void )
Prototyped in: nut/include/dev/spiflash.h
Calls: SpiByte() nut/arch/avr/dev/spiflash.c
  NutDelay()

Global Function SpiFlashId()

void SpiFlashId ( uint8_t* id )
Prototyped in: nut/include/dev/spiflash.h
Calls: SpiByte() nut/arch/avr/dev/spiflash.c

Global Function SpiFlashWriteByte()

int SpiFlashWriteByte ( uint8_t high, uint16_t addr, uint8_t data )
Prototyped in: nut/include/dev/spiflash.h
Calls: SpiByte() nut/arch/avr/dev/spiflash.c
  NutDelay()
Called by: SpiFlashWriteWord() nut/arch/avr/dev/spiflash.c

Global Function SpiFlashWriteWord()

int SpiFlashWriteWord ( uint16_t addr, uint16_t data )
Prototyped in: nut/include/dev/spiflash.h
Calls: SpiFlashWriteByte() nut/arch/avr/dev/spiflash.c

Local Function SpiByte()

static inline uint8_t SpiByte ( uint8_t c )
Called by: SpiFlashEnable() nut/arch/avr/dev/spiflash.c
  SpiFlashErase() nut/arch/avr/dev/spiflash.c
  SpiFlashId() nut/arch/avr/dev/spiflash.c
  SpiFlashWriteByte() nut/arch/avr/dev/spiflash.c