flash.h File Reference


Detailed Description

Flash operations for AVR Self-programming.

Adapted from AVR109.

Application note:
AVR453: Smart Battery Reference Design
Documentation:
For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html
Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com
Original author: Rob G. Fries - Apt Inc.
$Name$
Revision
$RCSfile$
Date

Definition in file flash.h.

Go to the source code of this file.

Defines

#define _ENABLE_RWW_SECTION()   __DataToR0ByteToSPMCR_SPM( 0x00, 0x11 )
#define _FILL_TEMP_WORD(addr, data)   __AddrToZWordToR1R0ByteToSPMCR_SPM( (void __flash *) (addr), data, 0x01 )
#define _PAGE_ERASE(addr)   __AddrToZByteToSPMCR_SPM( (void __flash *) (addr), 0x03 )
#define _PAGE_WRITE(addr)   __AddrToZByteToSPMCR_SPM( (void __flash *) (addr), 0x05 )
#define _WAIT_FOR_SPM()   while( SPMCSR & (1<<SPMEN) );


Define Documentation

 
#define _ENABLE_RWW_SECTION (  )     __DataToR0ByteToSPMCR_SPM( 0x00, 0x11 )

Definition at line 34 of file flash.h.

Referenced by SMB_CmdInterpreter().

#define _FILL_TEMP_WORD ( addr,
data   )     __AddrToZWordToR1R0ByteToSPMCR_SPM( (void __flash *) (addr), data, 0x01 )

Definition at line 32 of file flash.h.

Referenced by SMB_CmdInterpreter().

#define _PAGE_ERASE ( addr   )     __AddrToZByteToSPMCR_SPM( (void __flash *) (addr), 0x03 )

Definition at line 31 of file flash.h.

Referenced by SMB_CmdInterpreter().

#define _PAGE_WRITE ( addr   )     __AddrToZByteToSPMCR_SPM( (void __flash *) (addr), 0x05 )

Definition at line 33 of file flash.h.

Referenced by SMB_CmdInterpreter().

 
#define _WAIT_FOR_SPM (  )     while( SPMCSR & (1<<SPMEN) );

Definition at line 30 of file flash.h.

Referenced by SMB_CmdInterpreter().


Generated on Mon Nov 12 15:59:58 2007 for AVR453 Smart Battery Reference Design by  doxygen 1.5.3