Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

flash.h File Reference


Detailed Description

Functions for reading and writing flash ROM.

Author:
Adam Dunkels <adam@sics.se>

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void flash_setup (void)
 Setup function to be called before any of the flash programming functions.

void flash_done (void)
 Function that is to be called after flashing is done.

void flash_write (unsigned short *addr, unsigned short word)
 Write a 16-bit word to flash ROM.

void flash_clear (unsigned short *addr)
 Clear a 16-bit word in flash ROM.


Function Documentation

void flash_clear unsigned short *  addr  ) 
 

Clear a 16-bit word in flash ROM.

This function clears a 16-bit word in flash ROM. The function flash_setup() must have been called first.

Parameters:
addr A pointer to the address in flash ROM which is to be cleared.

void flash_write unsigned short *  addr,
unsigned short  word
 

Write a 16-bit word to flash ROM.

This function writes a 16-bit word to flash ROM. The function flash_setup() must have been called first.

Parameters:
addr A pointer to the address in flash ROM which is to be written.
word The 16-bit word that is to be written.


Generated on Wed Jul 6 01:19:02 2005 for Contiki/ESB by doxygen 1.3.6