Go to the source code of this file.
Functions | |
uint16_t | flash_read (Flash *flash, int addr) |
void | flash_write (Flash *flash, int addr, uint16_t val) |
void | flash_write_lo8 (Flash *flash, int addr, uint8_t val) |
void | flash_write_hi8 (Flash *flash, int addr, uint8_t val) |
Flash * | flash_new (int size) |
void | flash_construct (Flash *flash, int size) |
void | flash_destroy (void *flash) |
int | flash_load_from_file (Flash *flash, char *file, int format) |
int | flash_get_size (Flash *flash) |
void | flash_dump_core (Flash *flash, FILE *f_core) |
This module provides functions for reading and writing to flash memory. Flash memory is the program (.text) memory in AVR's Harvard architecture. It is completely separate from RAM, which is simulated in the memory.c file.
Definition in file flash.c.
|
Reads a 16-bit word from flash.
Referenced by avr_core_insert_breakpoint(), and flash_dump_core(). |
|
Reads a 16-bit word from flash.
References display_flash(). Referenced by avr_core_insert_breakpoint(), and avr_core_remove_breakpoint(). |
|
Write the low-order byte of an address. AVRs are little-endian, so lo8 bits in odd addresses. Definition at line 98 of file flash.c. |
|
Write the high-order byte of an address. AVRs are little-endian, so hi8 bits in even addresses. Definition at line 109 of file flash.c. |
|
Allocate a new Flash object. Definition at line 117 of file flash.c. References avr_new, class_overload_destroy(), flash_construct(), and flash_destroy(). Referenced by avr_core_construct(). |
|
Constructor for the flash object. Definition at line 131 of file flash.c. References avr_error. Referenced by flash_new(). |
|
Destructor for the flash class. Not to be called directly, except by a derived class. Called via class_unref. Definition at line 153 of file flash.c. Referenced by flash_new(). |
|
Load program data into flash from a file. Definition at line 164 of file flash.c. References avr_warning. Referenced by avr_core_load_program(). |
|
Accessor method to get the size of a flash. Definition at line 210 of file flash.c. Referenced by avr_core_get_sizes(). |
|
Dump the contents of the flash to a file descriptor in text format.
References flash_read(). Referenced by avr_core_dump_core(). |