SimAVR
AVR Simulator
Flash

Data Structures

struct  avr_flash_t
 Handles self-programming subsystem if the core supports it. More...
 

Macros

#define AVR_SELFPROG_HAVE_RWW   (1 << 0)
 Set if the flash supports a Read While Write section. More...
 
#define AVR_IOCTL_FLASH_SPM   AVR_IOCTL_DEF('f','s','p','m')
 
#define AVR_SELFPROG_DECLARE_INTERNAL(_spmr, _spen, _vector)
 
#define AVR_SELFPROG_DECLARE_NORWW(_spmr, _spen, _vector)
 
#define AVR_SELFPROG_DECLARE(_spmr, _spen, _vector)
 

Typedefs

typedef struct avr_flash_t avr_flash_t
 Handles self-programming subsystem if the core supports it. More...
 

Functions

void avr_flash_init (avr_t *avr, avr_flash_t *p)
 

Detailed Description

Macro Definition Documentation

#define AVR_IOCTL_FLASH_SPM   AVR_IOCTL_DEF('f','s','p','m')
#define AVR_SELFPROG_DECLARE (   _spmr,
  _spen,
  _vector 
)
Value:
.selfprog = { \
AVR_SELFPROG_DECLARE_INTERNAL(_spmr, _spen, _vector), \
.rwwsre = AVR_IO_REGBIT(_spmr, RWWSRE), \
.rwwsb = AVR_IO_REGBIT(_spmr, RWWSB), \
}
#define AVR_SELFPROG_HAVE_RWW
Set if the flash supports a Read While Write section.
Definition: avr_flash.h:58
#define AVR_SELFPROG_DECLARE_INTERNAL(_spmr, _spen, _vector)
Definition: avr_flash.h:64
#define AVR_IO_REGBIT(_io, _bit)
Definition: sim_regbit.h:150
#define AVR_SELFPROG_DECLARE_INTERNAL (   _spmr,
  _spen,
  _vector 
)
Value:
.r_spm = _spmr, \
.spm_pagesize = SPM_PAGESIZE, \
.selfprgen = AVR_IO_REGBIT(_spmr, _spen), \
.pgers = AVR_IO_REGBIT(_spmr, PGERS), \
.pgwrt = AVR_IO_REGBIT(_spmr, PGWRT), \
.blbset = AVR_IO_REGBIT(_spmr, BLBSET), \
.flash = { \
.enable = AVR_IO_REGBIT(_spmr, SPMIE), \
.vector = _vector, \
} \
#define AVR_IO_REGBIT(_io, _bit)
Definition: sim_regbit.h:150
#define AVR_SELFPROG_DECLARE_NORWW (   _spmr,
  _spen,
  _vector 
)
Value:
.selfprog = { \
.flags = 0, \
AVR_SELFPROG_DECLARE_INTERNAL(_spmr, _spen, _vector), \
}
#define AVR_SELFPROG_DECLARE_INTERNAL(_spmr, _spen, _vector)
Definition: avr_flash.h:64
#define AVR_SELFPROG_HAVE_RWW   (1 << 0)

Set if the flash supports a Read While Write section.

Typedef Documentation

typedef struct avr_flash_t avr_flash_t

Handles self-programming subsystem if the core supports it.

Function Documentation

void avr_flash_init ( avr_t avr,
avr_flash_t p 
)

Here is the call graph for this function:

Here is the caller graph for this function: